I am trying to color the popup menu (when clicking the overflow three vertical dots), but it doesn't work:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="android:popupMenuStyle">@style/MyPopupMenu</item>
<!-- None of these work either -->
<item name="android:windowBackground">@color/white</item>
<item name="android:popupBackground">@color/white</item>
<item name="android:actionModeBackground">@color/white</item>
<item name="android:dropDownListViewStyle">@style/MyPopupMenu</item>
<item name="android:actionBarWidgetTheme">@style/MyPopupMenu</item>
</style>
<!-- Popup Menu Background Color styles -->
<!--
I also tried parent as:
android:Widget.Holo.Light.ListPopupWindow
@style/Widget.AppCompat.Light.ListPopupWindow
@android:style/Widget.Holo.ListPopupWindow
-->
<style name="MyPopupMenu"
parent="@android:style/Widget.PopupMenu">
<item name="android:popupBackground">@android:color/white</item>
</style>
</resources>
And in my AndroidManifest.xml:
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
Why is it still showing with the default black background?