[Android] add a glow icon for the dropdown menu in video list

Sébastien Toque git at videolan.org
Mon Dec 10 20:05:39 CET 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Dec 10 11:22:30 2012 +0100| [67e8b435d8ac0a28b67295398b81fe49bf918d2f] | committer: Sébastien Toque

add a glow icon for the dropdown menu in video list

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

 vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml             |    7 +++++++
 vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png        |  Bin 0 -> 378 bytes
 .../{dropdown_ic_arrow.png => dropdown_ic_arrow_normal.png}     |  Bin 405 -> 405 bytes
 vlc-android/res/layout/video_list_item.xml                      |    3 +--
 4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml
new file mode 100644
index 0000000..f539bb9
--- /dev/null
+++ b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="@drawable/dropdown_ic_arrow_normal" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/dropdown_ic_arrow_glow" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/dropdown_ic_arrow_glow" android:state_focused="false" android:state_pressed="true"/>
+    <item android:drawable="@drawable/dropdown_ic_arrow_normal"/>
+</selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png
new file mode 100644
index 0000000..a7476e8
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png differ
diff --git a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.png b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_normal.png
similarity index 100%
rename from vlc-android/res/drawable-hdpi/dropdown_ic_arrow.png
rename to vlc-android/res/drawable-hdpi/dropdown_ic_arrow_normal.png
diff --git a/vlc-android/res/layout/video_list_item.xml b/vlc-android/res/layout/video_list_item.xml
index 5d1bc6d..4e34e8c 100644
--- a/vlc-android/res/layout/video_list_item.xml
+++ b/vlc-android/res/layout/video_list_item.xml
@@ -60,6 +60,5 @@
         android:src="@drawable/dropdown_ic_arrow"
         android:layout_alignParentBottom="true"
         android:layout_alignParentRight="true"
-        android:clickable="true"
-        android:background="@android:drawable/list_selector_background"/>
+        android:clickable="true" />
 </RelativeLayout>
\ No newline at end of file



More information about the Android mailing list