Android AppCompat操作栏菜单背景不工作

Android AppCompat操作栏菜单背景不工作,android,android-actionbar,android-appcompat,Android,Android Actionbar,Android Appcompat,我设计了动作栏的样式以更改其背景: <style name="ColoredActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> <item name="android:background">@color/main_background_color</item> <item name="background">@color/main_b

我设计了动作栏的样式以更改其背景:

<style name="ColoredActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
    <item name="android:background">@color/main_background_color</item>
    <item name="background">@color/main_background_color</item>
</style>

<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">
    <item name="actionBarStyle">@style/ColoredActionBar</item>
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
</style>

@颜色/主背景颜色
@颜色/主背景颜色
@样式/彩色操作栏
(我在values、values-v11和values-v14上放置了不同的样式)

我试图在按下状态时更改菜单背景。我正在这样做:

<item name="actionButtonStyle">@drawable/actionbar_item</item>
@drawable/actionbar\u项目


但这不起作用,还是一样

我该怎么做

谢谢。

该链接可能会对您有所帮助。
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:state_pressed="true"
        android:drawable="@color/secundary_background_color" />
    <item
        android:drawable="@color/main_background_color" />
</selector>