[Android] Styles: add a style for the audio player menu button
Adrien Maglo
git at videolan.org
Mon Mar 3 16:44:34 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 3 16:27:51 2014 +0100| [c1af1d91fde796e50499e9fa8161cf3cd6bef3c6] | committer: Adrien Maglo
Styles: add a style for the audio player menu button
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c1af1d91fde796e50499e9fa8161cf3cd6bef3c6
---
vlc-android/res/layout/audio_player.xml | 2 +-
vlc-android/res/values/attrs.xml | 1 +
vlc-android/res/values/styles.xml | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 2b50e71..96f4766 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -53,7 +53,7 @@
android:background="#00000000"
android:focusable="true"
android:scaleType="fitXY"
- android:src="@drawable/dots_dark" />
+ android:src="?attr/ic_audio_player_dots" />
<TextView
android:id="@+id/header_time"
diff --git a/vlc-android/res/values/attrs.xml b/vlc-android/res/values/attrs.xml
index f6e7084..a81d99b 100644
--- a/vlc-android/res/values/attrs.xml
+++ b/vlc-android/res/values/attrs.xml
@@ -35,6 +35,7 @@
<attr name="ic_repeat_one" format="reference" />
<attr name="ic_shuffle_normal" format="reference" />
<attr name="ic_shuffle_pressed" format="reference" />
+ <attr name="ic_audio_player_dots" format="reference" />
<attr name="mini_player_top_shadow" format="reference" />
<attr name="audio_playlist_shadow" format="reference" />
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 5fae791..12f7bb3 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -51,6 +51,7 @@
<item name="ic_repeat_one">@drawable/ic_repeat_one</item>
<item name="ic_shuffle_normal">@drawable/ic_shuffle_normal</item>
<item name="ic_shuffle_pressed">@drawable/ic_shuffle_pressed</item>
+ <item name="ic_audio_player_dots">@drawable/dots_dark</item>
</style>
<style name="Theme.VLC.Black" parent="Theme.VLC">
@@ -73,6 +74,7 @@
<item name="ic_playlist_normal">@drawable/ic_playlist_normal_w</item>
<item name="ic_repeat_normal">@drawable/ic_repeat_normal_w</item>
<item name="ic_shuffle_normal">@drawable/ic_shuffle_normal_w</item>
+ <item name="ic_audio_player_dots">@drawable/dots</item>
</style>
<style name="Theme.VLC.List">
More information about the Android
mailing list