[Android] UI Directory : Fix the scrolling text issue
Alexandre Perraud
git at videolan.org
Tue Jul 8 18:25:46 CEST 2014
vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Jul 7 14:55:56 2014 +0200| [5bd4a336b71ee3a99f32284ba3db805070bf90b2] | committer: Adrien Maglo
UI Directory : Fix the scrolling text issue
Signed-off-by: Adrien Maglo <magsoft at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5bd4a336b71ee3a99f32284ba3db805070bf90b2
---
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);
More information about the Android
mailing list