[Android] Fix item selection layout issue

Nicolas Pomepuy git at videolan.org
Thu Sep 16 11:53:12 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Sep 16 07:13:29 2021 +0200| [7c892e5f23e16ef65d2161f434db90df1825875a] | committer: Nicolas Pomepuy

Fix item selection layout issue

Fixes #2179

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

 application/vlc-android/res/layout/audio_browser_item.xml | 2 +-
 application/vlc-android/res/layout/video_list_card.xml    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/res/layout/audio_browser_item.xml b/application/vlc-android/res/layout/audio_browser_item.xml
index a88a31696..130798803 100644
--- a/application/vlc-android/res/layout/audio_browser_item.xml
+++ b/application/vlc-android/res/layout/audio_browser_item.xml
@@ -201,7 +201,7 @@
                 android:onClick="@{holder::onMoreClick}"
                 android:scaleType="center"
                 vlc:srcCompat="@drawable/ic_more"
-                android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.GONE}"
+                android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.INVISIBLE}"
                 android:background="?attr/selectableItemBackgroundBorderless"
                 vlc:layout_constraintBottom_toBottomOf="@+id/subtitle"
                 vlc:layout_constraintEnd_toEndOf="parent"
diff --git a/application/vlc-android/res/layout/video_list_card.xml b/application/vlc-android/res/layout/video_list_card.xml
index 2cfb84fa0..9e48651d7 100644
--- a/application/vlc-android/res/layout/video_list_card.xml
+++ b/application/vlc-android/res/layout/video_list_card.xml
@@ -217,7 +217,7 @@
                 android:contentDescription="@string/more_actions"
                 android:onClick="@{holder::onMoreClick}"
                 android:scaleType="center"
-                android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.GONE}"
+                android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.INVISIBLE}"
                 vlc:layout_constraintBottom_toBottomOf="parent"
                 vlc:layout_constraintEnd_toEndOf="parent"
                 vlc:layout_constraintTop_toTopOf="parent"



More information about the Android mailing list