android - Change ActionBar title color and background using appCompat v7:22.1.1 -
i have read other stack overflow answers question reason not work.
i want change titlecolor , action bar background using version of appcompat:
appcompat-v7:22.1.1
and these styles:
<style name="theme.myapptheme" parent="@style/theme.appcompat.light"> <item name="actionbarstyle">@style/actionbar.solid.mystyle</item> <item name="actionbaritembackground">@drawable/selectable_background_mystyle</item> <item name="textappearancelargepopupmenu">@style/myactionmenutextappearance.large</item> <item name="textappearancesmallpopupmenu">@style/myactionmenutextappearance.small</item> <item name="colorprimary">@color/white</item> <item name="colorprimarydark">@color/black</item> <item name="coloraccent">@color/iroko_pink</item> </style> <style name="actionbar.solid.mystyle" parent="@style/widget.appcompat.light.actionbar.solid"> <item name="background">@drawable/mybackground</item> <item name="titletextstyle">@style/mytheme.actionbar.titletextstyle</item> <item name="subtitletextstyle">@style/mytheme.actionbar.subtitletextstyle</item> </style> <style name="mytheme.actionbar.titletextstyle" parent="@style/textappearance.appcompat.widget.actionbar.title" > <item name="android:textcolor">@color/green</item> </style>
what seeing on gingerbread above solution works, on jellybean, kit kat , lollipop action bar remains unaffected.
how should done work on versions gingerbread on up?
Comments
Post a Comment