[Android] Update audio & browsers list items layout

Geoffrey Métais git at videolan.org
Thu May 31 17:59:26 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu May 31 17:58:16 2018 +0200| [eefa5fb396f390fe7a1a9c0f61979d4a8bb22097] | committer: Geoffrey Métais

Update audio & browsers list items layout

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

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

diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index 2d9132a40..65bcfd932 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -58,16 +58,16 @@
             vlc:layout_constraintTop_toTopOf="parent"
             vlc:layout_constraintStart_toEndOf="@+id/media_cover"
             vlc:layout_constraintEnd_toStartOf="@+id/item_more"
-            android:layout_marginStart="@dimen/half_default_margin"
-            android:layout_marginLeft="@dimen/half_default_margin"
+            android:layout_marginStart="@dimen/default_margin"
+            android:layout_marginLeft="@dimen/default_margin"
             vlc:layout_constraintBottom_toTopOf="@+id/subtitle"
             android:maxLines="2"
             android:gravity="center_vertical"
             vlc:alignMode="@{alignMode}"
             android:text="@{item.title}"
-            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
-            android:textSize="16sp" />
+            android:textSize="16sp"
+            android:lineSpacingMultiplier="1.2" />
 
         <TextView
             android:id="@+id/subtitle"
@@ -81,8 +81,8 @@
             android:maxLines="1"
             android:ellipsize="middle"
             android:text="@{item.description}"
-            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle"
+            android:textSize="12sp"
             android:visibility="@{TextUtils.isEmpty(item.description) ? View.GONE : View.VISIBLE}"/>
 
         <ImageView
diff --git a/vlc-android/res/layout/browser_item.xml b/vlc-android/res/layout/browser_item.xml
index d478ee337..8d8ee6471 100644
--- a/vlc-android/res/layout/browser_item.xml
+++ b/vlc-android/res/layout/browser_item.xml
@@ -75,8 +75,8 @@
             android:layout_width="0dp"
             android:layout_height="wrap_content"
             app:layout_goneMarginBottom="2dp"
-            android:layout_marginLeft="5dp"
-            android:layout_marginStart="5dp"
+            android:layout_marginLeft="@dimen/default_margin"
+            android:layout_marginStart="@dimen/default_margin"
             app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintStart_toEndOf="@+id/dvi_icon"
             app:layout_constraintVertical_chainStyle="packed"
@@ -86,18 +86,18 @@
             android:singleLine="true"
             android:maxLines="1"
             android:text="@{item.title}"
-            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
-            android:textSize="16sp" />
+            android:textSize="16sp"
+            android:lineSpacingMultiplier="1.2" />
 
         <TextView
             android:id="@+id/text"
             android:layout_width="0dp"
             android:layout_height="wrap_content"
-            android:fontFamily="sans-serif-light"
             android:maxLines="1"
             android:text="@{item.description}"
             android:textColor="?attr/list_subtitle"
+            android:textSize="12sp"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toStartOf="@+id/item_more"
             app:layout_constraintStart_toStartOf="@+id/title"



More information about the Android mailing list