[Android] Audio GUI: ellipsize the textviews on the middle

Adrien Maglo git at videolan.org
Mon Mar 17 10:45:01 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 17 10:08:59 2014 +0100| [6b1036d33cbd4c307169264ae2f85e15bb9c71d8] | committer: Adrien Maglo

Audio GUI: ellipsize the textviews on the middle

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

 vlc-android/res/layout/audio_browser_item.xml        |    6 ++++--
 vlc-android/res/layout/audio_media_switcher_item.xml |    2 ++
 vlc-android/res/layout/audio_playlist_item.xml       |    2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index 238c6ca..051f166 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -28,7 +28,8 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:ellipsize="marquee"
+                android:singleLine="true"
+                android:ellipsize="middle"
                 android:maxLines="1"
                 android:text="@string/title"
                 android:textColor="?attr/list_title"
@@ -38,7 +39,8 @@
                 android:id="@+id/subtitle"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:ellipsize="marquee"
+                android:singleLine="true"
+                android:ellipsize="middle"
                 android:maxLines="1"
                 android:text="@string/artist"
                 android:textColor="?attr/list_subtitle"
diff --git a/vlc-android/res/layout/audio_media_switcher_item.xml b/vlc-android/res/layout/audio_media_switcher_item.xml
index d5207be..62d20e6 100644
--- a/vlc-android/res/layout/audio_media_switcher_item.xml
+++ b/vlc-android/res/layout/audio_media_switcher_item.xml
@@ -24,6 +24,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:singleLine="true"
+            android:ellipsize="middle"
             android:text="@string/title"
             android:textColor="?attr/font_default"
             android:textSize="16sp" />
@@ -33,6 +34,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:singleLine="true"
+            android:ellipsize="middle"
             android:text="@string/artist"
             android:textColor="?attr/font_light"
             android:textSize="14sp" />
diff --git a/vlc-android/res/layout/audio_playlist_item.xml b/vlc-android/res/layout/audio_playlist_item.xml
index 69bffed..8c4e8d6 100644
--- a/vlc-android/res/layout/audio_playlist_item.xml
+++ b/vlc-android/res/layout/audio_playlist_item.xml
@@ -63,6 +63,7 @@
                         android:layout_marginRight="5dip"
                         android:layout_marginTop="5dip"
                         android:singleLine="true"
+                        android:ellipsize="middle"
                         android:text="@string/title"
                         android:textColor="?attr/list_title"
                         android:textSize="16sp" />
@@ -75,6 +76,7 @@
                         android:layout_marginLeft="5dip"
                         android:layout_marginRight="5dip"
                         android:singleLine="true"
+                        android:ellipsize="middle"
                         android:text="@string/artist"
                         android:textColor="?attr/list_subtitle"
                         android:textSize="11sp" />



More information about the Android mailing list