[Android] Audio list item: increase the overflow height to prevent mis-clicks

Nicolas Pomepuy git at videolan.org
Mon Sep 19 05:48:44 UTC 2022


vlc-android | branch: ui_fixes | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Sep 19 07:48:41 2022 +0200| [b92420ce49aea3e2c0aab360c1e82dd24c8ee87e] | committer: Nicolas Pomepuy

Audio list item: increase the overflow height to prevent mis-clicks

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

 application/vlc-android/res/layout/audio_browser_item.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/application/vlc-android/res/layout/audio_browser_item.xml b/application/vlc-android/res/layout/audio_browser_item.xml
index 8011bd7dc..e408d9d59 100644
--- a/application/vlc-android/res/layout/audio_browser_item.xml
+++ b/application/vlc-android/res/layout/audio_browser_item.xml
@@ -226,17 +226,17 @@
         <ImageView
                 android:id="@+id/item_more"
                 android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:padding="8dp"
+                android:layout_height="0dp"
+                android:background="?attr/selectableItemBackgroundBorderless"
                 android:contentDescription="@string/more_actions"
                 android:onClick="@{holder::onMoreClick}"
+                android:padding="8dp"
                 android:scaleType="center"
-                vlc:srcCompat="@drawable/ic_more"
                 android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.INVISIBLE}"
-                android:background="?attr/selectableItemBackgroundBorderless"
-                vlc:layout_constraintBottom_toBottomOf="@+id/subtitle"
+                vlc:layout_constraintBottom_toBottomOf="parent"
                 vlc:layout_constraintEnd_toEndOf="parent"
-                vlc:layout_constraintTop_toTopOf="@+id/title" />
+                vlc:layout_constraintTop_toTopOf="parent"
+                vlc:srcCompat="@drawable/ic_more" />
 
         <ImageView
                 android:id="@+id/selected_check"



More information about the Android mailing list