[Android] Style: change the default fast scroll thumb to a custom orange one.
Adrien Maglo
git at videolan.org
Wed Dec 4 11:42:08 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Dec 4 11:41:42 2013 +0100| [37b5d721247854e686987cc044cd6b8eb4dd648d] | committer: Adrien Maglo
Style: change the default fast scroll thumb to a custom orange one.
This only works on API >= 11.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=37b5d721247854e686987cc044cd6b8eb4dd648d
---
vlc-android/res/drawable-v11/fastscroll_thumb.xml | 6 ++++++
vlc-android/res/drawable-v11/fastscroll_thumb_default.png | Bin 0 -> 165 bytes
vlc-android/res/drawable-v11/fastscroll_thumb_pressed.png | Bin 0 -> 192 bytes
vlc-android/res/values-v11/styles.xml | 1 +
4 files changed, 7 insertions(+)
diff --git a/vlc-android/res/drawable-v11/fastscroll_thumb.xml b/vlc-android/res/drawable-v11/fastscroll_thumb.xml
new file mode 100644
index 0000000..9cc6b3a
--- /dev/null
+++ b/vlc-android/res/drawable-v11/fastscroll_thumb.xml
@@ -0,0 +1,6 @@
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/fastscroll_thumb_pressed" android:state_pressed="true"/>
+ <item android:drawable="@drawable/fastscroll_thumb_default"/>
+
+</selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable-v11/fastscroll_thumb_default.png b/vlc-android/res/drawable-v11/fastscroll_thumb_default.png
new file mode 100644
index 0000000..faf653a
Binary files /dev/null and b/vlc-android/res/drawable-v11/fastscroll_thumb_default.png differ
diff --git a/vlc-android/res/drawable-v11/fastscroll_thumb_pressed.png b/vlc-android/res/drawable-v11/fastscroll_thumb_pressed.png
new file mode 100644
index 0000000..2ac1b52
Binary files /dev/null and b/vlc-android/res/drawable-v11/fastscroll_thumb_pressed.png differ
diff --git a/vlc-android/res/values-v11/styles.xml b/vlc-android/res/values-v11/styles.xml
index d8b0b58..a8d4570 100644
--- a/vlc-android/res/values-v11/styles.xml
+++ b/vlc-android/res/values-v11/styles.xml
@@ -8,6 +8,7 @@
<item name="android:gridViewStyle">@style/Theme.VLC.List</item>
<item name="android:expandableListViewStyle">@style/Theme.VLC.List</item>
<item name="android:dropDownListViewStyle">@style/Theme.VLC.List</item>
+ <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item>
<item name="item_divider">@color/item_divider</item>
<item name="item_common_pressed">@color/item_common_pressed</item>
More information about the Android
mailing list