mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
Added a shuffle button in the artist's fragment
This commit is contained in:
@@ -29,12 +29,21 @@
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_collapseMode="parallax" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/appbar_header_height"
|
||||
android:layout_gravity="top"
|
||||
android:fitsSystemWindows="true"
|
||||
android:background="@drawable/gradient_backdrop_background_image"/>
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/artist_page_fab_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:src="@drawable/ic_shuffle"
|
||||
app:backgroundTint="@color/colorAccent"
|
||||
app:tint="@android:color/white"
|
||||
app:fabSize="normal"
|
||||
app:layout_anchor="@id/app_bar_layout"
|
||||
app:layout_anchorGravity="bottom|end"
|
||||
android:layout_margin="16dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:contentDescription="Shuffle"/>
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/anim_toolbar"
|
||||
@@ -47,6 +56,7 @@
|
||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
|
||||
<dimen name="appbar_header_height">384dp</dimen>
|
||||
<dimen name="appbar_header_height">296dp</dimen>
|
||||
|
||||
<dimen name="activity_margin_content">24dp</dimen>
|
||||
|
||||
<dimen name="bottom_sheet_peek_height">56dp</dimen>
|
||||
|
||||
Reference in New Issue
Block a user