[Android] Set media track description multilines

Geoffrey Métais git at videolan.org
Fri Oct 27 16:02:41 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct 27 12:02:07 2017 +0200| [229b15ee985bce91b604cd646b392cc66d9cf2a7] | committer: Geoffrey Métais

Set media track description multilines

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

 vlc-android/res/layout/info_item.xml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/layout/info_item.xml b/vlc-android/res/layout/info_item.xml
index dbf510882..579077ec6 100644
--- a/vlc-android/res/layout/info_item.xml
+++ b/vlc-android/res/layout/info_item.xml
@@ -1,10 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/layout_item"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:layout_gravity="center_vertical"
     android:orientation="horizontal"
+    android:focusable="true"
     android:clickable="true" >
 
     <ImageView
@@ -28,7 +30,8 @@
             android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
             android:textSize="16sp"
-            android:scrollHorizontally="true"/>
+            android:scrollHorizontally="true"
+            tools:targetApi="jelly_bean" />
         <TextView
             android:id="@+id/subtitle"
             android:layout_width="wrap_content"
@@ -38,9 +41,8 @@
             android:layout_marginRight="@dimen/half_default_margin"
             android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle"
-            android:ellipsize="start"
-            android:singleLine="true"
-            android:maxLines="1" />
+            android:maxLines="2"
+            tools:targetApi="jelly_bean" />
     </LinearLayout>
 
 </LinearLayout>
\ No newline at end of file



More information about the Android mailing list