[Android] [PATCH] UI Directory : Fix the scrolling text issue

Alexandre Perraud 4leyx4ndre at gmail.com
Mon Jul 7 14:55:56 CEST 2014


---
 vlc-android/res/layout/directory_view_item.xml             | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/directory_view_item.xml b/vlc-android/res/layout/directory_view_item.xml
index 3b27879..9283613 100644
--- a/vlc-android/res/layout/directory_view_item.xml
+++ b/vlc-android/res/layout/directory_view_item.xml
@@ -26,7 +26,8 @@
             android:layout_height="wrap_content"
             android:layout_gravity="center_vertical"
             android:ellipsize="marquee"
-            android:maxLines="1"
+            android:marqueeRepeatLimit="marquee_forever"
+            android:singleLine="true"
             android:text="@string/title"
             android:textColor="?attr/list_title"
             android:textSize="20sp" />
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
index d421308..7961494 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -303,6 +303,7 @@ public class DirectoryAdapter extends BaseAdapter {
             holder = new DirectoryViewHolder();
             holder.layout = v.findViewById(R.id.layout_item);
             holder.title = (TextView) v.findViewById(R.id.title);
+            holder.title.setSelected(true);
             holder.text = (TextView) v.findViewById(R.id.text);
             holder.icon = (ImageView) v.findViewById(R.id.dvi_icon);
             v.setTag(holder);
-- 
1.9.1



More information about the Android mailing list