[Android] Fix list's background on old devices

Sébastien Toque git at videolan.org
Sun Jul 28 09:51:54 CEST 2013


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun Jul 28 09:42:34 2013 +0200| [96ceb3f1efbfe070e853955e1b451275d7fd821f] | committer: Sébastien Toque

Fix list's background on old devices

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

 vlc-android/res/drawable/background_item.xml |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/drawable/background_item.xml b/vlc-android/res/drawable/background_item.xml
index 7b0863a..866bb1f 100644
--- a/vlc-android/res/drawable/background_item.xml
+++ b/vlc-android/res/drawable/background_item.xml
@@ -1,9 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     <item android:state_pressed="true">
-        <color android:color="@color/orange" />
+        <shape android:shape="rectangle">
+            <solid android:color="@color/orange" />
+        </shape>
     </item>
     <item android:state_selected="true">
-        <color android:color="@color/darkorange"/>
+        <shape android:shape="rectangle">
+            <solid android:color="@color/darkorange" />
+        </shape>
     </item>
 </selector>



More information about the Android mailing list