android - AppCompat ActionBar menu background not working -


i've styled action bar change background:

<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> 

(i placed different styles on values, values-v11 , values-v14).

i'm trying change menu background when state pressed. i'm doing this:

<item name="actionbuttonstyle">@drawable/actionbar_item</item> 

and

<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> 

but not working, still same.

how can this?

thanks.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -