[Android] Change Popup anchor on Lollipop

Geoffrey Métais git at videolan.org
Fri Feb 27 11:02:22 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 27 10:41:23 2015 +0100| [f68d97b2552830b043ff9fb3ad6a26c7e7a3b01f] | committer: Geoffrey Métais

Change Popup anchor on Lollipop

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

 vlc-android/res/values-v21/styles.xml |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/vlc-android/res/values-v21/styles.xml b/vlc-android/res/values-v21/styles.xml
index 5f692dc..b57d119 100644
--- a/vlc-android/res/values-v21/styles.xml
+++ b/vlc-android/res/values-v21/styles.xml
@@ -7,9 +7,11 @@
 
     <style name="Theme.VLC.21" parent="Theme.VLC.17">
         <item name="android:statusBarColor">@color/darkerorange</item>
+        <item name="android:popupMenuStyle">@style/PopupMenuStyle.Light</item>
     </style>
     <style name="Theme.VLC.Black.21" parent="Theme.VLC.Black.17">
         <item name="android:statusBarColor">@color/black3</item>
+        <item name="android:popupMenuStyle">@style/PopupMenuStyle</item>
     </style>
     <style name="Theme.VLC.Player.21" parent="Theme.VLC.Player.19">
         <item name="android:windowTranslucentStatus">false</item>">
@@ -17,4 +19,12 @@
         <item name="android:navigationBarColor">@android:color/transparent</item>
         <item name="android:statusBarColor">@android:color/transparent</item>
     </style>
+
+    <style name="PopupMenuStyle.Light" parent="@style/Widget.AppCompat.Light.PopupMenu">
+        <item name="android:overlapAnchor">true</item>
+    </style>
+    <style name="PopupMenuStyle" parent="@style/Widget.AppCompat.PopupMenu">
+        <item name="android:overlapAnchor">true</item>
+    </style>
+
 </resources>



More information about the Android mailing list