[Android] video_grid: prevent focus loss

Mik Amchislavsky git at videolan.org
Mon Oct 6 15:55:15 CEST 2014


vlc-ports/android | branch: master | Mik Amchislavsky <hailmikhail at hotmail.com> | Sun Oct  5 14:29:01 2014 -0700| [8f63ac4694b858c3e500d7044d3ed1f61ff47acd] | committer: Geoffrey Métais

video_grid: prevent focus loss

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

 vlc-android/res/layout/video_grid.xml |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/video_grid.xml b/vlc-android/res/layout/video_grid.xml
index 1f6f386..ce1aafd 100644
--- a/vlc-android/res/layout/video_grid.xml
+++ b/vlc-android/res/layout/video_grid.xml
@@ -14,7 +14,11 @@
         android:numColumns="auto_fit"
         android:fastScrollEnabled="true"
         android:fadingEdge="none"
-        android:gravity="center" />
+        android:gravity="center"
+        android:nextFocusUp="@+id/ml_menu_search"
+        android:nextFocusDown="@id/android:list"
+        android:nextFocusLeft="@id/android:list"
+        android:nextFocusRight="@id/android:list" />
 
     <LinearLayout
         android:id="@id/android:empty"



More information about the Android mailing list