How to change the background color of the app's popup menu

1

I would like to know how I change the background color from when I open the menu of an application I'm creating.

Follow style.xml

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

How do I change this color?

    
asked by anonymous 19.04.2016 / 15:52

1 answer

2

For this you should change the AppTheme.PopupOverlay

Here's an example:

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light">
   <item name="android:background">@color/colorAccent</item>
</style>
    
19.04.2016 / 17:54