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.
29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?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>
|