How to set the background of Android PopupMenu to White [duplicate]

ⅰ亾dé卋堺 提交于 2019-11-28 09:27:14

For instance, try something like this:

<style name="Theme.MyAppTheme" parent="@style/Theme.Holo.Light">
    <item name="popupMenuStyle">@style/PopupMenu.MyAppTheme</item>
</style>

And then on the style itself:

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

That is the way it's done via ActionBarStyleGenerator and some old references here on the Developer Site.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!