[Android] Fix browser items size

Geoffrey Métais git at videolan.org
Mon May 23 17:29:36 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 23 17:28:39 2016 +0200| [60a9c7f3254101b3c449333b3d546532cd96483f] | committer: Geoffrey Métais

Fix browser items size

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

 vlc-android/res/layout/directory_view_item.xml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/layout/directory_view_item.xml b/vlc-android/res/layout/directory_view_item.xml
index 49afcf4..c71db83 100644
--- a/vlc-android/res/layout/directory_view_item.xml
+++ b/vlc-android/res/layout/directory_view_item.xml
@@ -72,9 +72,10 @@
         <LinearLayout
             android:layout_width="0dp"
             android:layout_height="wrap_content"
-            android:layout_marginBottom="5dp"
-            android:layout_marginTop="5dp"
+            android:layout_marginBottom="2dp"
+            android:layout_marginTop="2dp"
             android:layout_weight="1"
+            android:minHeight="52dp"
             android:gravity="center_vertical"
             android:orientation="vertical"
             android:paddingLeft="15dp" >
@@ -83,12 +84,10 @@
                 android:id="@+id/title"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_gravity="center_vertical|start"
                 android:ellipsize="marquee"
                 android:marqueeRepeatLimit="marquee_forever"
                 android:singleLine="true"
                 android:text="@{storage.name ?? media.title}"
-                android:gravity="center_vertical"
                 android:fontFamily="sans-serif-light"
                 android:textColor="?attr/list_title"
                 android:textSize="16sp"/>



More information about the Android mailing list