home: add play/shuffle to song list

Re-add the play/shuffle options to the song list, now as a header. This
seems to be the best option UX-wise, but the implementation is really
I think the best option regarding that is to extend this idiom to all
lists or split these fragments up. Both are reasonable.
This commit is contained in:
OxygenCobalt
2021-09-26 19:48:44 -06:00
parent 3ab425839c
commit b3156941d4
11 changed files with 242 additions and 75 deletions
+1 -1
View File
@@ -49,6 +49,6 @@
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
tools:layout="@layout/fragment_home_list" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="@dimen/spacing_medium"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/play_button"
style="@style/Widget.Auxio.Button.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginEnd="@dimen/spacing_small"
android:text="@string/lbl_play" />
<com.google.android.material.button.MaterialButton
android:id="@+id/shuffle_button"
style="@style/Widget.Auxio.Button.Primary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="@dimen/spacing_small"
android:text="@string/lbl_shuffle" />
</LinearLayout>
</layout>