If there is no description/lyrics of the media, show the image

This commit is contained in:
antonio 2022-03-25 22:33:20 +01:00
parent cbacb417ab
commit ebcc7cb37f
4 changed files with 219 additions and 8 deletions

View file

@ -1,12 +1,46 @@
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
android:id="@+id/now_playing_song_lyrics_text_view"
style="@style/BodyLarge"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="24dp"
android:paddingEnd="24dp" />
android:layout_height="match_parent">
<TextView
android:id="@+id/now_playing_song_lyrics_text_view"
style="@style/BodyLarge"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="24dp"
android:paddingEnd="24dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<ImageView
android:id="@+id/empty_description_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:maxWidth="240dp"
android:maxHeight="240dp"
android:paddingTop="64dp"
android:scaleType="centerInside"
android:src="@drawable/ui_empty_description"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<TextView
android:id="@+id/title_empty_description_label"
style="@style/LabelMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:text="@string/description_empty_title"
app:layout_constraintTop_toBottomOf="@+id/empty_description_image_view"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>