[Android] Albums: fix margin between title and media overlay

Duncan McNamara git at videolan.org
Fri Jul 1 10:29:11 UTC 2022


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Fri Jul  1 11:50:43 2022 +0200| [343d7e37062ffb48cb2f542aa21eb34312e44a26] | committer: Duncan McNamara

Albums: fix margin between title and media overlay

> https://code.videolan.org/videolan/vlc-android/commit/343d7e37062ffb48cb2f542aa21eb34312e44a26
---

 .../vlc-android/res/layout/audio_album_track_item.xml      | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/application/vlc-android/res/layout/audio_album_track_item.xml b/application/vlc-android/res/layout/audio_album_track_item.xml
index f0c63e593..1bb0d0880 100644
--- a/application/vlc-android/res/layout/audio_album_track_item.xml
+++ b/application/vlc-android/res/layout/audio_album_track_item.xml
@@ -93,7 +93,7 @@
                 android:text="@{item.title}"
                 tools:text="Like A Rolling Stone"
                 vlc:layout_constraintBottom_toTopOf="@id/subtitle"
-                vlc:layout_constraintEnd_toStartOf="@id/item_more"
+                vlc:layout_constraintEnd_toStartOf="@id/media_absent"
                 vlc:layout_constraintStart_toEndOf="@id/track_number"
                 vlc:layout_constraintTop_toTopOf="parent" />
 
@@ -109,7 +109,7 @@
                 android:contentDescription="@{TalkbackUtil.INSTANCE.getTimeAndArtist(context, item)}"
                 tools:text="6:13 - Bob Dylan"
                 vlc:layout_constraintBottom_toBottomOf="parent"
-                vlc:layout_constraintEnd_toStartOf="@id/item_more"
+                vlc:layout_constraintEnd_toEndOf="@id/title"
                 vlc:layout_constraintStart_toStartOf="@id/title"
                 vlc:layout_constraintTop_toBottomOf="@id/title"
                 vlc:layout_constraintVertical_chainStyle="packed" />
@@ -118,13 +118,11 @@
                 android:id="@+id/media_network"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginEnd="8dp"
                 android:background="@drawable/rounded_corners_black_more_transparent"
                 android:padding="3dp"
                 android:visibility="@{isNetwork ? View.VISIBLE : View.GONE}"
                 vlc:layout_constraintBottom_toBottomOf="parent"
                 vlc:layout_constraintEnd_toStartOf="@id/item_more"
-                vlc:layout_constraintStart_toEndOf="@id/title"
                 vlc:layout_constraintTop_toTopOf="parent"
                 vlc:srcCompat="@drawable/ic_emoji_network" />
 
@@ -132,13 +130,11 @@
                 android:id="@+id/media_sd"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginEnd="8dp"
                 android:background="@drawable/rounded_corners_black_more_transparent"
                 android:padding="3dp"
                 android:visibility="@{isSD ? View.VISIBLE : View.GONE}"
                 vlc:layout_constraintBottom_toBottomOf="parent"
                 vlc:layout_constraintEnd_toStartOf="@id/item_more"
-                vlc:layout_constraintStart_toEndOf="@id/title"
                 vlc:layout_constraintTop_toTopOf="parent"
                 vlc:srcCompat="@drawable/ic_emoji_sd" />
 
@@ -146,13 +142,11 @@
                 android:id="@+id/otg_media"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginEnd="8dp"
                 android:background="@drawable/rounded_corners_black_more_transparent"
                 android:padding="3dp"
                 android:visibility="@{isOTG ? View.VISIBLE : View.GONE}"
                 vlc:layout_constraintBottom_toBottomOf="parent"
                 vlc:layout_constraintEnd_toStartOf="@id/item_more"
-                vlc:layout_constraintStart_toEndOf="@id/title"
                 vlc:layout_constraintTop_toTopOf="parent"
                 vlc:srcCompat="@drawable/ic_emoji_otg" />
 
@@ -160,13 +154,11 @@
                 android:id="@+id/media_absent"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginEnd="8dp"
                 android:background="@drawable/rounded_corners_black_more_transparent"
                 android:padding="3dp"
-                android:visibility="@{!isPresent ? View.VISIBLE : View.GONE}"
+                android:visibility="@{!isPresent ? View.VISIBLE : View.INVISIBLE}"
                 vlc:layout_constraintBottom_toBottomOf="parent"
                 vlc:layout_constraintEnd_toStartOf="@id/item_more"
-                vlc:layout_constraintStart_toEndOf="@id/title"
                 vlc:layout_constraintTop_toTopOf="parent"
                 vlc:srcCompat="@drawable/ic_emoji_media_absent" />
 



More information about the Android mailing list