Added Artist song sort order in Artist details fragment
This commit is contained in:
parent
cd933b56dc
commit
7a2d14e061
7 changed files with 139 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<code.name.monkey.retromusic.views.insets.InsetsConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -79,9 +79,22 @@
|
|||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textStyle="bold"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/song_sort_order"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/albumRecyclerView" />
|
||||
app:layout_constraintTop_toBottomOf="@id/albumRecyclerView"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/song_sort_order"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@null"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_sort"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/songTitle"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/songTitle"
|
||||
app:layout_constraintTop_toTopOf="@id/songTitle" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
|
@ -193,4 +206,4 @@
|
|||
android:layout_height="72dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/listeners" />
|
||||
</code.name.monkey.retromusic.views.insets.InsetsConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
20
app/src/main/res/menu/menu_artist_song_sort_order.xml
Normal file
20
app/src/main/res/menu/menu_artist_song_sort_order.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<group android:checkableBehavior="single">
|
||||
<item
|
||||
android:id="@+id/action_sort_order_title"
|
||||
android:title="@string/sort_order_a_z" />
|
||||
<item
|
||||
android:id="@+id/action_sort_order_title_desc"
|
||||
android:title="@string/sort_order_z_a" />
|
||||
<item
|
||||
android:id="@+id/action_sort_order_album"
|
||||
android:title="@string/sort_order_album" />
|
||||
<item
|
||||
android:id="@+id/action_sort_order_year"
|
||||
android:title="@string/sort_order_year" />
|
||||
<item
|
||||
android:id="@+id/action_sort_order_song_duration"
|
||||
android:title="@string/song_duration" />
|
||||
</group>
|
||||
</menu>
|
Loading…
Add table
Add a link
Reference in a new issue