[Android] Audio card items: move the overflow icon to the bottom
Nicolas Pomepuy
git at videolan.org
Tue Jan 18 12:23:24 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan 18 13:08:52 2022 +0100| [dc256c8a9881bc03c5976b11cd08d65e9a202d7e] | committer: Nicolas Pomepuy
Audio card items: move the overflow icon to the bottom
> https://code.videolan.org/videolan/vlc-android/commit/dc256c8a9881bc03c5976b11cd08d65e9a202d7e
---
.../res/layout/audio_browser_card_item.xml | 33 +++++++++++-----------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/application/vlc-android/res/layout/audio_browser_card_item.xml b/application/vlc-android/res/layout/audio_browser_card_item.xml
index 0880a785a..6c56b7fdb 100644
--- a/application/vlc-android/res/layout/audio_browser_card_item.xml
+++ b/application/vlc-android/res/layout/audio_browser_card_item.xml
@@ -127,20 +127,6 @@
vlc:layout_constraintEnd_toEndOf="parent"
vlc:srcCompat="@drawable/ic_play_circle_card" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/item_more"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- android:layout_marginEnd="4dp"
- android:background="?attr/selectableItemBackground"
- android:contentDescription="@string/more_actions"
- android:onClick="@{holder::onMoreClick}"
- android:scaleType="center"
- android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.GONE}"
- vlc:layout_constraintEnd_toEndOf="parent"
- vlc:layout_constraintTop_toTopOf="parent"
- vlc:srcCompat="@drawable/ic_more_w" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -199,7 +185,7 @@
tools:text="Title"
vlc:asyncText="@{item.title}"
vlc:ellipsizeMode="@{true}"
- vlc:layout_constraintEnd_toEndOf="parent"
+ vlc:layout_constraintEnd_toStartOf="@+id/item_more"
vlc:layout_constraintStart_toStartOf="parent"
vlc:layout_constraintTop_toBottomOf="@id/media_cover_container"
vlc:placeholder="@{item}" />
@@ -216,11 +202,26 @@
tools:text="Subitle"
vlc:asyncText="@{item}"
vlc:layout_constraintBottom_toBottomOf="parent"
- vlc:layout_constraintEnd_toEndOf="parent"
+ vlc:layout_constraintEnd_toStartOf="@+id/item_more"
vlc:layout_constraintStart_toStartOf="parent"
vlc:layout_constraintTop_toBottomOf="@+id/title"
vlc:placeholder="@{item}" />
+ <androidx.appcompat.widget.AppCompatImageView
+ android:id="@+id/item_more"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="8dp"
+ android:layout_marginBottom="8dp"
+ android:background="?attr/selectableItemBackground"
+ android:contentDescription="@string/more_actions"
+ android:onClick="@{holder::onMoreClick}"
+ android:scaleType="center"
+ android:visibility="@{isPresent && !inSelection ? View.VISIBLE : View.GONE}"
+ vlc:layout_constraintBottom_toBottomOf="parent"
+ vlc:layout_constraintEnd_toEndOf="parent"
+ vlc:srcCompat="@drawable/ic_more" />
+
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/selected_check"
android:layout_width="wrap_content"
More information about the Android
mailing list