Centered the image of the song lyrics

This commit is contained in:
antonio 2022-08-26 18:39:42 +02:00
parent 1e5bb289e2
commit 4eca9cec74

View file

@ -1,22 +1,9 @@
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
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_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingStart="24dp" android:paddingStart="24dp"
android:paddingEnd="24dp" android:paddingEnd="24dp">
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<ImageView <ImageView
android:id="@+id/empty_description_image_view" android:id="@+id/empty_description_image_view"
@ -25,12 +12,13 @@
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:maxWidth="240dp" android:maxWidth="240dp"
android:maxHeight="240dp" android:maxHeight="240dp"
android:paddingTop="96dp"
android:scaleType="centerInside" android:scaleType="centerInside"
android:src="@drawable/ui_empty_description" android:src="@drawable/ui_empty_description"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/title_empty_description_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/> app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed" />
<TextView <TextView
android:id="@+id/title_empty_description_label" android:id="@+id/title_empty_description_label"
@ -39,8 +27,22 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="12dp" android:paddingTop="12dp"
android:text="@string/description_empty_title" android:text="@string/description_empty_title"
app:layout_constraintTop_toBottomOf="@+id/empty_description_image_view" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/> app:layout_constraintTop_toBottomOf="@+id/empty_description_image_view" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
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"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>