[Android] Add a slight shadow under the action bar

Ludovic Fauvet git at videolan.org
Fri Aug 17 18:53:02 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Aug 17 18:11:10 2012 +0200| [7dcb1f5f4f32cdece0da0faab5230ef97d30af3f] | committer: Ludovic Fauvet

Add a slight shadow under the action bar

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

 vlc-android/res/drawable-hdpi/actionbar_shadow.png |  Bin 0 -> 178 bytes
 vlc-android/res/values-v14/styles.xml              |    8 ++++++++
 vlc-android/res/values/styles.xml                  |    1 +
 3 files changed, 9 insertions(+)

diff --git a/vlc-android/res/drawable-hdpi/actionbar_shadow.png b/vlc-android/res/drawable-hdpi/actionbar_shadow.png
new file mode 100644
index 0000000..5da6b2b
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/actionbar_shadow.png differ
diff --git a/vlc-android/res/values-v14/styles.xml b/vlc-android/res/values-v14/styles.xml
new file mode 100644
index 0000000..0cdb954
--- /dev/null
+++ b/vlc-android/res/values-v14/styles.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+    <style name="Theme.VLC" parent="Theme.Sherlock">
+        <item name="android:actionBarStyle">@style/ActionBar</item>
+        <item name="actionBarStyle">@style/ActionBar</item>
+        <item name="android:windowContentOverlay">@drawable/actionbar_shadow</item>
+    </style>
+</resources>
\ No newline at end of file
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 670b522..a527d54 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -11,6 +11,7 @@
     <style name="Theme.VLC" parent="Theme.Sherlock">
         <item name="android:actionBarStyle">@style/ActionBar</item>
         <item name="actionBarStyle">@style/ActionBar</item>
+        <item name="windowContentOverlay">@drawable/actionbar_shadow</item>
     </style>
 
     <style name="ActionBar" parent="Widget.Sherlock.ActionBar">



More information about the Android mailing list