[Android] redesign seekbar thumb
Sébastien Toque
git at videolan.org
Sun Dec 15 21:50:41 CET 2013
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun Dec 15 20:06:55 2013 +0100| [34908e9d095fbf59ca08f2a0cde7a191414c80b6] | committer: Sébastien Toque
redesign seekbar thumb
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=34908e9d095fbf59ca08f2a0cde7a191414c80b6
---
vlc-android/res/drawable-hdpi/seekbar_thumb_normal.png | Bin 0 -> 517 bytes
vlc-android/res/drawable-hdpi/seekbar_thumb_pressed.png | Bin 0 -> 525 bytes
vlc-android/res/drawable-ldpi/seekbar_thumb_normal.png | Bin 0 -> 289 bytes
vlc-android/res/drawable-ldpi/seekbar_thumb_pressed.png | Bin 0 -> 297 bytes
vlc-android/res/drawable-mdpi/seekbar_thumb_normal.png | Bin 0 -> 353 bytes
vlc-android/res/drawable-mdpi/seekbar_thumb_pressed.png | Bin 0 -> 365 bytes
vlc-android/res/drawable-xhdpi/seekbar_thumb_normal.png | Bin 0 -> 657 bytes
vlc-android/res/drawable-xhdpi/seekbar_thumb_pressed.png | Bin 0 -> 670 bytes
vlc-android/res/drawable/ic_seekbar_thumb.png | Bin 2087 -> 0 bytes
vlc-android/res/drawable/seekbar_thumb.xml | 6 ++++++
vlc-android/res/layout/audio_player.xml | 6 +++---
vlc-android/res/layout/equalizer.xml | 2 +-
vlc-android/res/layout/equalizer_bar.xml | 2 +-
vlc-android/res/layout/player.xml | 6 +++---
14 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/vlc-android/res/drawable-hdpi/seekbar_thumb_normal.png b/vlc-android/res/drawable-hdpi/seekbar_thumb_normal.png
new file mode 100644
index 0000000..00cf388
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/seekbar_thumb_normal.png differ
diff --git a/vlc-android/res/drawable-hdpi/seekbar_thumb_pressed.png b/vlc-android/res/drawable-hdpi/seekbar_thumb_pressed.png
new file mode 100644
index 0000000..defd3a2
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/seekbar_thumb_pressed.png differ
diff --git a/vlc-android/res/drawable-ldpi/seekbar_thumb_normal.png b/vlc-android/res/drawable-ldpi/seekbar_thumb_normal.png
new file mode 100644
index 0000000..fe7e66c
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/seekbar_thumb_normal.png differ
diff --git a/vlc-android/res/drawable-ldpi/seekbar_thumb_pressed.png b/vlc-android/res/drawable-ldpi/seekbar_thumb_pressed.png
new file mode 100644
index 0000000..c235a06
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/seekbar_thumb_pressed.png differ
diff --git a/vlc-android/res/drawable-mdpi/seekbar_thumb_normal.png b/vlc-android/res/drawable-mdpi/seekbar_thumb_normal.png
new file mode 100644
index 0000000..a9a79f3
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/seekbar_thumb_normal.png differ
diff --git a/vlc-android/res/drawable-mdpi/seekbar_thumb_pressed.png b/vlc-android/res/drawable-mdpi/seekbar_thumb_pressed.png
new file mode 100644
index 0000000..ad37050
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/seekbar_thumb_pressed.png differ
diff --git a/vlc-android/res/drawable-xhdpi/seekbar_thumb_normal.png b/vlc-android/res/drawable-xhdpi/seekbar_thumb_normal.png
new file mode 100644
index 0000000..f79b883
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/seekbar_thumb_normal.png differ
diff --git a/vlc-android/res/drawable-xhdpi/seekbar_thumb_pressed.png b/vlc-android/res/drawable-xhdpi/seekbar_thumb_pressed.png
new file mode 100644
index 0000000..8df7246
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/seekbar_thumb_pressed.png differ
diff --git a/vlc-android/res/drawable/ic_seekbar_thumb.png b/vlc-android/res/drawable/ic_seekbar_thumb.png
deleted file mode 100644
index 522c522..0000000
Binary files a/vlc-android/res/drawable/ic_seekbar_thumb.png and /dev/null differ
diff --git a/vlc-android/res/drawable/seekbar_thumb.xml b/vlc-android/res/drawable/seekbar_thumb.xml
new file mode 100644
index 0000000..c980144
--- /dev/null
+++ b/vlc-android/res/drawable/seekbar_thumb.xml
@@ -0,0 +1,6 @@
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/seekbar_thumb_normal" android:state_focused="true" android:state_pressed="false"/>
+ <item android:drawable="@drawable/seekbar_thumb_pressed" android:state_focused="true" android:state_pressed="true"/>
+ <item android:drawable="@drawable/seekbar_thumb_pressed" android:state_focused="false" android:state_pressed="true"/>
+ <item android:drawable="@drawable/seekbar_thumb_normal"/>
+</selector>
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 432ea83..b069b2c 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -115,10 +115,10 @@
android:focusable="true"
android:maxHeight="4dip"
android:minHeight="4dip"
- android:paddingLeft="15dip"
- android:paddingRight="15dip"
+ android:paddingLeft="16dip"
+ android:paddingRight="16dip"
android:progressDrawable="@drawable/po_seekbar"
- android:thumb="@drawable/ic_seekbar_thumb" />
+ android:thumb="@drawable/seekbar_thumb" />
<TextView
android:id="@+id/length"
diff --git a/vlc-android/res/layout/equalizer.xml b/vlc-android/res/layout/equalizer.xml
index a35bf8d..0df0029 100644
--- a/vlc-android/res/layout/equalizer.xml
+++ b/vlc-android/res/layout/equalizer.xml
@@ -27,7 +27,7 @@
android:maxHeight="4dip"
android:minHeight="4dip"
android:progressDrawable="@drawable/po_seekbar"
- android:thumb="@drawable/ic_seekbar_thumb" />
+ android:thumb="@drawable/seekbar_thumb" />
<HorizontalScrollView
android:id="@+id/equalizer_scroll"
diff --git a/vlc-android/res/layout/equalizer_bar.xml b/vlc-android/res/layout/equalizer_bar.xml
index e30a4d6..5e86a99 100644
--- a/vlc-android/res/layout/equalizer_bar.xml
+++ b/vlc-android/res/layout/equalizer_bar.xml
@@ -14,7 +14,7 @@
android:maxHeight="4dip"
android:minHeight="4dip"
android:progressDrawable="@drawable/po_seekbar"
- android:thumb="@drawable/ic_seekbar_thumb" />
+ android:thumb="@drawable/seekbar_thumb" />
<TextView
android:id="@+id/equalizer_band"
diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 7f8079b..dba59d1 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -164,10 +164,10 @@
android:layout_toRightOf="@+id/player_overlay_time"
android:maxHeight="2dip"
android:minHeight="2dip"
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
+ android:paddingLeft="12dp"
+ android:paddingRight="12dp"
android:progressDrawable="@drawable/po_seekbar"
- android:thumb="@drawable/ic_seekbar_thumb" />
+ android:thumb="@drawable/seekbar_thumb" />
<TextView
android:id="@+id/player_overlay_length"
More information about the Android
mailing list