[Android] Fix popup menu theme
Geoffrey Métais
git at videolan.org
Fri Mar 6 17:10:16 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 6 17:09:32 2015 +0100| [fa13fbacfdfa92c5dd30f709f16720db9033d79f] | committer: Geoffrey Métais
Fix popup menu theme
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=fa13fbacfdfa92c5dd30f709f16720db9033d79f
---
vlc-android/res/layout/toolbar.xml | 1 +
vlc-android/res/values/attrs.xml | 1 +
vlc-android/res/values/styles.xml | 3 +++
3 files changed, 5 insertions(+)
diff --git a/vlc-android/res/layout/toolbar.xml b/vlc-android/res/layout/toolbar.xml
index f40ae7e..eff8050 100644
--- a/vlc-android/res/layout/toolbar.xml
+++ b/vlc-android/res/layout/toolbar.xml
@@ -7,5 +7,6 @@
android:layout_height="?attr/actionBarSize"
app:navigationContentDescription="@string/abc_action_bar_up_description"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
+ app:popupTheme="?attr/toolbar_popup_style"
android:background="?attr/background_actionbar"
app:navigationIcon="?attr/homeAsUpIndicator"/>
\ No newline at end of file
diff --git a/vlc-android/res/values/attrs.xml b/vlc-android/res/values/attrs.xml
index 86d6310..3ca6da2 100644
--- a/vlc-android/res/values/attrs.xml
+++ b/vlc-android/res/values/attrs.xml
@@ -61,6 +61,7 @@
<attr name="ic_move_media" format="reference" />
<attr name="ic_trash_small_normal" format="reference" />
<attr name="gridview_progressbar" format="reference" />
+ <attr name="toolbar_popup_style" 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 5177bd3..8df568c 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -18,12 +18,14 @@
<style name="Theme.VLC.Apearance" parent="Theme.AppCompat.Light.NoActionBar">
<item name="marginTopContent">50dp</item>
+ <item name="toolbar_popup_style">@style/ThemeOverlay.AppCompat.Light</item>
<item name="android:listViewStyle">@style/Theme.VLC.List</item>
<item name="android:gridViewStyle">@style/Theme.VLC.List</item>
<item name="android:expandableListViewStyle">@style/Theme.VLC.List</item>
<item name="android:dropDownListViewStyle">@style/Theme.VLC.List</item>
+
<item name="item_common_pressed">@color/item_common_pressed</item>
<item name="item_common_selected">@color/item_common_selected</item>
<item name="item_footer">@color/item_footer</item>
@@ -93,6 +95,7 @@
<style name="Theme.VLC.Apearance.Black" parent="Theme.AppCompat.NoActionBar">
<item name="marginTopContent">50dp</item>
+ <item name="toolbar_popup_style">@style/ThemeOverlay.AppCompat.Dark</item>
<item name="android:listViewStyle">@style/Theme.VLC.List</item>
<item name="android:gridViewStyle">@style/Theme.VLC.List</item>
More information about the Android
mailing list