[Android] [PATCH 5/5] Video player: modify focus behavior for keyboard navigation

Alexandre Perraud 4leyx4ndre at gmail.com
Wed Oct 1 17:38:56 CEST 2014


---
 vlc-android/res/drawable/ic_audio_circle.xml    | 4 ++--
 vlc-android/res/drawable/ic_backward_w.xml      | 4 ++--
 vlc-android/res/drawable/ic_crop_circle.xml     | 4 ++--
 vlc-android/res/drawable/ic_forward_w.xml       | 4 ++--
 vlc-android/res/drawable/ic_navmenu_circle.xml  | 4 ++--
 vlc-android/res/drawable/ic_pause_circle.xml    | 4 ++--
 vlc-android/res/drawable/ic_play_circle.xml     | 4 ++--
 vlc-android/res/drawable/ic_subtitle_circle.xml | 4 ++--
 8 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/vlc-android/res/drawable/ic_audio_circle.xml b/vlc-android/res/drawable/ic_audio_circle.xml
index 75256e2..1462fa7 100644
--- a/vlc-android/res/drawable/ic_audio_circle.xml
+++ b/vlc-android/res/drawable/ic_audio_circle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_audio_circle_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_audio_circle_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_audio_circle_pressed" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_audio_circle_normal" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_audio_circle_pressed" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_audio_circle_normal"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_backward_w.xml b/vlc-android/res/drawable/ic_backward_w.xml
index 4bd29a0..b561a3d 100644
--- a/vlc-android/res/drawable/ic_backward_w.xml
+++ b/vlc-android/res/drawable/ic_backward_w.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_backward_normal_w" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_backward_pressed_w" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_backward_pressed_w" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_backward_normal_w" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_backward_pressed_w" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_backward_normal_w"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_crop_circle.xml b/vlc-android/res/drawable/ic_crop_circle.xml
index 02f6ca1..9e9e6e8 100644
--- a/vlc-android/res/drawable/ic_crop_circle.xml
+++ b/vlc-android/res/drawable/ic_crop_circle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_crop_circle_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_crop_circle_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_crop_circle_pressed" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_crop_circle_normal" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_crop_circle_pressed" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_crop_circle_normal"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_forward_w.xml b/vlc-android/res/drawable/ic_forward_w.xml
index b6bfa0a..583e501 100644
--- a/vlc-android/res/drawable/ic_forward_w.xml
+++ b/vlc-android/res/drawable/ic_forward_w.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_forward_normal_w" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_forward_pressed_w" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_forward_pressed_w" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_forward_normal_w" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_forward_pressed_w" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_forward_normal_w"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_navmenu_circle.xml b/vlc-android/res/drawable/ic_navmenu_circle.xml
index 1950fdf..669d18b 100644
--- a/vlc-android/res/drawable/ic_navmenu_circle.xml
+++ b/vlc-android/res/drawable/ic_navmenu_circle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_navmenu_circle_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_navmenu_circle_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_navmenu_circle_pressed" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_navmenu_circle_normal" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_navmenu_circle_pressed" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_navmenu_circle_normal"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_pause_circle.xml b/vlc-android/res/drawable/ic_pause_circle.xml
index f4e587a..0265b29 100644
--- a/vlc-android/res/drawable/ic_pause_circle.xml
+++ b/vlc-android/res/drawable/ic_pause_circle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_pause_circle_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_pause_circle_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_pause_circle_pressed" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_pause_circle_normal" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_pause_circle_pressed" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_pause_circle_normal"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_play_circle.xml b/vlc-android/res/drawable/ic_play_circle.xml
index c7fa19e..dce9c67 100644
--- a/vlc-android/res/drawable/ic_play_circle.xml
+++ b/vlc-android/res/drawable/ic_play_circle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_play_circle_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_play_circle_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_play_circle_pressed" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_play_circle_normal" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_play_circle_pressed" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_play_circle_normal"/>
 </selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_subtitle_circle.xml b/vlc-android/res/drawable/ic_subtitle_circle.xml
index 5041178..efdf843 100644
--- a/vlc-android/res/drawable/ic_subtitle_circle.xml
+++ b/vlc-android/res/drawable/ic_subtitle_circle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/ic_subtitle_circle_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/ic_subtitle_circle_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/ic_subtitle_circle_pressed" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/ic_subtitle_circle_normal" android:state_focused="true" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_subtitle_circle_pressed" android:state_focused="false" android:state_pressed="true"/>
     <item android:drawable="@drawable/ic_subtitle_circle_normal"/>
 </selector>
\ No newline at end of file
-- 
1.9.1



More information about the Android mailing list