[Android] show focused items in lists
Sébastien Toque
git at videolan.org
Wed Jun 20 23:10:00 CEST 2012
android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Jun 20 23:09:44 2012 +0200| [a6d615f1443b418d2a92e218b4869ecd64b9853e] | committer: Sébastien Toque
show focused items in lists
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=a6d615f1443b418d2a92e218b4869ecd64b9853e
---
vlc-android/res/drawable/background_item1.xml | 9 +++++++++
vlc-android/res/drawable/background_item2.xml | 9 +++++++++
2 files changed, 18 insertions(+)
diff --git a/vlc-android/res/drawable/background_item1.xml b/vlc-android/res/drawable/background_item1.xml
index 3a04558..de915c5 100644
--- a/vlc-android/res/drawable/background_item1.xml
+++ b/vlc-android/res/drawable/background_item1.xml
@@ -9,6 +9,15 @@
android:startColor="@color/item_common" />
</shape>
</item>
+ <item android:state_selected="true">
+ <shape>
+ <gradient
+ android:angle="270"
+ android:centerColor="@color/orange"
+ android:endColor="@color/item_common"
+ android:startColor="@color/item_common" />
+ </shape>
+ </item>
<item>
<shape>
<gradient
diff --git a/vlc-android/res/drawable/background_item2.xml b/vlc-android/res/drawable/background_item2.xml
index 6831831..ebaedf6 100644
--- a/vlc-android/res/drawable/background_item2.xml
+++ b/vlc-android/res/drawable/background_item2.xml
@@ -9,6 +9,15 @@
android:startColor="@color/item_common" />
</shape>
</item>
+ <item android:state_selected="true">
+ <shape>
+ <gradient
+ android:angle="270"
+ android:centerColor="@color/orange"
+ android:endColor="@color/item_common"
+ android:startColor="@color/item_common" />
+ </shape>
+ </item>
<item>
<shape>
<gradient
More information about the Android
mailing list