Search code examples
javaandroidandroid-layout

Android how change background options menu


i have trouble! My options menu (popup menu) background doesn't change.

My Code Style:

<style name="AppTheme" parent="AppBaseTheme">
    <item name="android:popupMenuStyle">@style/PopupMenu</item>
</style>

<style name="PopupMenu" parent="@android:style/Widget.Holo.ListPopupWindow">
    <item name="android:popupBackground">@drawable/menu_dropdown_panel
</style>

And i generate background image

https://i.sstatic.net/ukdTk.png

But my background still has a dark color


Solution

  • There is an easy way to change the colors in Actionbar. Use "ActionBar Generator" and copy paste all file in your res folder and change your theme in Android.manifest file.