[Android] [PATCH] video_grid: prevent focus loss

Mik Amchislavsky hailmikhail at gmail.com
Sun Oct 5 23:29:01 CEST 2014


From: Mik Amchislavsky <hailmikhail at hotmail.com>

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

diff --git a/vlc-android/res/layout/video_grid.xml b/vlc-android/res/layout/video_grid.xml
index 1f6f386..fa3b628 100644
--- a/vlc-android/res/layout/video_grid.xml
+++ b/vlc-android/res/layout/video_grid.xml
@@ -14,7 +14,12 @@
         android:numColumns="auto_fit"
         android:fastScrollEnabled="true"
         android:fadingEdge="none"
-        android:gravity="center" />
+        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"
-- 
1.7.9.5



More information about the Android mailing list