[Android] UI: Cosmetic fixes when some elements are focused

Alexandre Perraud git at videolan.org
Thu Oct 2 18:53:47 CEST 2014


vlc-ports/android | branch: tv | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Oct  1 17:38:55 2014 +0200| [32ce29fdd6a8c3836a2f21bff2d42279496c1971] | committer: Geoffrey Métais

UI: Cosmetic fixes when some elements are focused

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 vlc-android/res/drawable/background_item.xml |    6 +++++-
 vlc-android/res/values/styles.xml            |    1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/drawable/background_item.xml b/vlc-android/res/drawable/background_item.xml
index 866bb1f..8ad2fad 100644
--- a/vlc-android/res/drawable/background_item.xml
+++ b/vlc-android/res/drawable/background_item.xml
@@ -10,4 +10,8 @@
             <solid android:color="@color/darkorange" />
         </shape>
     </item>
-</selector>
+    <item android:state_focused="true">
+        <shape android:shape="rectangle">
+            <solid android:color="@color/orange" />
+        </shape>
+    </item></selector>
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index c4b3ff6..6d69293 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -165,6 +165,7 @@
 
     <style name="ActionBar.OverflowButton">
         <item name="android:src">@drawable/ic_menu_overflow</item>
+        <item name="android:background">@drawable/abc_item_background_holo_light</item>
     </style>
 
     <!-- Advanced options menu styles -->



More information about the Android mailing list