[Android] UI : fix mini-player shadow previous commit
Alexandre Perraud
git at videolan.org
Wed Apr 8 11:28:49 CEST 2015
vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Apr 8 11:26:05 2015 +0200| [88b2e72b4512e2fe38a9ea9d6b48e028195179c3] | committer: Alexandre Perraud
UI : fix mini-player shadow previous commit
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=88b2e72b4512e2fe38a9ea9d6b48e028195179c3
---
vlc-android/res/drawable/progress_mini_player.xml | 2 +-
vlc-android/res/drawable/progress_mini_player_dark.xml | 16 ++++++++++++++++
vlc-android/res/layout/audio_player.xml | 2 +-
vlc-android/res/values/attrs.xml | 1 +
vlc-android/res/values/styles.xml | 2 ++
5 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/vlc-android/res/drawable/progress_mini_player.xml b/vlc-android/res/drawable/progress_mini_player.xml
index 192af1a..91b5d22 100644
--- a/vlc-android/res/drawable/progress_mini_player.xml
+++ b/vlc-android/res/drawable/progress_mini_player.xml
@@ -2,7 +2,7 @@
<item android:id="@android:id/background">
<shape>
- <solid android:color="?attr/background_default" />
+ <solid android:color="@color/grey50" />
</shape>
</item>
<item android:id="@android:id/progress">
diff --git a/vlc-android/res/drawable/progress_mini_player_dark.xml b/vlc-android/res/drawable/progress_mini_player_dark.xml
new file mode 100644
index 0000000..8845445
--- /dev/null
+++ b/vlc-android/res/drawable/progress_mini_player_dark.xml
@@ -0,0 +1,16 @@
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item android:id="@android:id/background">
+ <shape>
+ <solid android:color="@color/grey850" />
+ </shape>
+ </item>
+ <item android:id="@android:id/progress">
+ <clip>
+ <shape>
+ <solid android:color="@color/orange500" />
+ </shape>
+ </clip>
+ </item>
+
+</layer-list>
\ No newline at end of file
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 49fee19..cfcff27 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -15,7 +15,7 @@
android:minHeight="2dip"
android:paddingLeft="0px"
android:paddingRight="0px"
- android:progressDrawable="@drawable/progress_mini_player" />
+ android:progressDrawable="?attr/progress_mini_player" />
<LinearLayout
android:id="@+id/header"
diff --git a/vlc-android/res/values/attrs.xml b/vlc-android/res/values/attrs.xml
index 4d7a0f0..c80ffe3 100644
--- a/vlc-android/res/values/attrs.xml
+++ b/vlc-android/res/values/attrs.xml
@@ -60,6 +60,7 @@
<attr name="ic_trash_small_normal" format="reference" />
<attr name="gridview_progressbar" format="reference" />
<attr name="toolbar_popup_style" format="reference" />
+ <attr name="progress_mini_player" format="reference" />
<attr name="shadow_top_9patch" format="reference"/>
<attr name="shadow_bottom_9patch" format="reference"/>
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index c5795cb..ab7eb90 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -68,6 +68,7 @@
<item name="shadow_top_9patch">@drawable/shadow_top</item>
<item name="shadow_bottom_9patch">@drawable/shadow_bottom</item>
<item name="gridview_progressbar">@drawable/gridview_progressbar_w</item>
+ <item name="progress_mini_player">@drawable/progress_mini_player</item>
<item name="advanced_options_style">@style/Theme.VLC.AdvancedOptionsLight</item>
</style>
@@ -138,6 +139,7 @@
<item name="shadow_top_9patch">@drawable/shadow_top_dark</item>
<item name="shadow_bottom_9patch">@drawable/shadow_bottom_dark</item>
<item name="gridview_progressbar">@drawable/gridview_progressbar</item>
+ <item name="progress_mini_player">@drawable/progress_mini_player_dark</item>
<item name="advanced_options_style">@style/Theme.VLC.AdvancedOptionsBlack</item>
</style>
More information about the Android
mailing list