[Android] Update extension items layout

Geoffrey Métais git at videolan.org
Tue Mar 6 14:22:14 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar  6 14:21:34 2018 +0100| [1e351805ad11e71f2d74dee519f61ac930dd2091] | committer: Geoffrey Métais

Update extension items layout

Fixes image display and subtitle alignment

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

 vlc-android/res/layout/extension_item_view.xml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/extension_item_view.xml b/vlc-android/res/layout/extension_item_view.xml
index 484e3ccc3..cc7fb8a8b 100644
--- a/vlc-android/res/layout/extension_item_view.xml
+++ b/vlc-android/res/layout/extension_item_view.xml
@@ -12,7 +12,7 @@
             name="item"
             type="org.videolan.vlc.extensions.api.VLCExtensionItem"/>
         <variable
-            name="image"
+            name="cover"
             type="android.graphics.drawable.BitmapDrawable"/>
     </data>
 
@@ -36,6 +36,7 @@
             android:layout_marginEnd="8dp"
             android:layout_marginRight="8dp"
             android:visibility="@{item.imageUri == null || TextUtils.isEmpty(item.imageUri.toString()) ? View.GONE : View.VISIBLE}"
+            android:src="@{cover}"
             tools:src="@drawable/icon"/>
 
         <TextView
@@ -73,7 +74,7 @@
             android:layout_marginTop="2dp"
             vlc:layout_constraintEnd_toStartOf="@id/item_more"
             vlc:layout_constraintTop_toBottomOf="@+id/title"
-            vlc:layout_constraintStart_toEndOf="@id/extension_image"
+            vlc:layout_constraintStart_toStartOf="@id/title"
             vlc:layout_constraintBottom_toBottomOf="parent"
             android:visibility="@{TextUtils.isEmpty(item.subTitle) ? View.GONE : View.VISIBLE}"
             tools:text="Author"



More information about the Android mailing list