[Android] Audio browser: display only one line of text in the item and ellipsize it if it is too long

Adrien Maglo git at videolan.org
Mon Nov 25 15:22:45 CET 2013


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Nov 25 15:22:35 2013 +0100| [552f4a9989a7c4619a3c59fd69bf464e84782dd0] | committer: Adrien Maglo

Audio browser: display only one line of text in the item and ellipsize it if it is too long

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=552f4a9989a7c4619a3c59fd69bf464e84782dd0
---

 vlc-android/res/layout/audio_browser_item_simple.xml |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/res/layout/audio_browser_item_simple.xml b/vlc-android/res/layout/audio_browser_item_simple.xml
index f600246..0e87ac4 100644
--- a/vlc-android/res/layout/audio_browser_item_simple.xml
+++ b/vlc-android/res/layout/audio_browser_item_simple.xml
@@ -29,6 +29,8 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
+                android:ellipsize="marquee"
+                android:maxLines="1"
                 android:text="@string/title"
                 android:textColor="@color/list_title"
                 android:textSize="20sp" />
@@ -37,6 +39,8 @@
                 android:id="@+id/subtitle"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
+                android:ellipsize="marquee"
+                android:maxLines="1"
                 android:text="@string/artist"
                 android:textColor="@color/list_subtitle"
                 android:textSize="14sp" />



More information about the Android mailing list