Update album items/details

Update the ArtistDetailFragment album item to show the year instead of song count. Update AlbumDetailFragment to show year, song count, and total duration.
This commit is contained in:
OxygenCobalt
2020-09-26 13:57:15 -06:00
parent f754a82ba7
commit 5191220bc0
13 changed files with 123 additions and 191 deletions
@@ -86,13 +86,14 @@
tools:text="Artist Name" />
<TextView
android:id="@+id/album_year"
android:id="@+id/album_other_details"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_medium"
android:text="@{album.year != 0 ? String.valueOf(album.year) : @string/placeholder_no_date}"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/textColorSecondary"
app:albumDetails="@{album}"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/artist_name"
tools:text="2020" />
@@ -111,7 +112,7 @@
android:text="@string/label_songs"
android:textAppearance="@style/TextAppearance.MaterialComponents.Overline"
android:textSize="16sp"
app:layout_constraintTop_toBottomOf="@+id/album_year" />
app:layout_constraintTop_toBottomOf="@+id/album_other_details" />
<ImageButton
android:id="@+id/sort_button"
@@ -128,7 +129,7 @@
tools:src="@drawable/ic_sort_numeric_down"
app:layout_constraintBottom_toTopOf="@+id/song_recycler"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/album_year" />
app:layout_constraintTop_toBottomOf="@+id/album_other_details" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/song_recycler"