java - Android Action Bar Style Generator : Change text color of action bar -
java - Android Action Bar Style Generator : Change text color of action bar -
i utilize "android action bar style generator" website generate styles actionbar. want alter text color of action bar white , tried <item name="android:textcolor">#fff</item>
in manifest didn't work. can 1 help me ? test this way didn't answer. used appcompat in project. style generator give me values,drawable folder , other folder. style generator gives me
<resources> <style name="theme.example" parent="@style/theme.appcompat"> <item name="actionbaritembackground">@drawable/selectable_background_example</item> <item name="popupmenustyle">@style/popupmenu.example</item> <item name="dropdownlistviewstyle">@style/dropdownlistview.example</item> <item name="actionbartabstyle">@style/actionbartabstyle.example</item> <item name="actiondropdownstyle">@style/dropdownnav.example</item> <item name="actionbarstyle">@style/actionbar.solid.example</item> <item name="actionmodebackground">@drawable/cab_background_top_example</item> <item name="actionmodesplitbackground">@drawable/cab_background_bottom_example</item> <item name="actionmodeclosebuttonstyle">@style/actionbutton.closemode.example</item> </style> <style name="actionbar.solid.example" parent="@style/widget.appcompat.actionbar.solid"> <item name="background">@drawable/ab_solid_example</item> <item name="backgroundstacked">@drawable/ab_stacked_solid_example</item> <item name="backgroundsplit">@drawable/ab_bottom_solid_example</item> <item name="progressbarstyle">@style/progressbar.example</item> </style> <style name="actionbar.transparent.example" parent="@style/widget.appcompat.actionbar"> <item name="background">@drawable/ab_transparent_example</item> <item name="progressbarstyle">@style/progressbar.example</item> </style> <style name="popupmenu.example" parent="@style/widget.appcompat.popupmenu"> <item name="android:popupbackground">@drawable/menu_dropdown_panel_example</item> </style> <style name="dropdownlistview.example" parent="@style/widget.appcompat.listview.dropdown"> <item name="android:listselector">@drawable/selectable_background_example</item> </style> <style name="actionbutton.closemode.example" parent="@style/widget.appcompat.actionbutton.closemode"> <item name="android:background">@drawable/btn_cab_done_example</item> </style>
i add together 2 line style
<style name="example" parent="@android:style/theme.holo.light"> <item name="android:actionmenutextcolor">#fff</item> </style> <style name="example.actionbar.text" parent="@android:style/textappearance"> <item name="android:textcolor">#fff</item> </style>
but still not working.
you should have custom actionbar
style in theme
. think actionbar style generator creates theme already.
what should add together below theme.
<resources> <style name="theme.example" parent="@style/theme.appcompat"> ...... <item name="actionbarstyle">@style/mytheme.actionbar</item> <item name="actionmenutextcolor">@color/actionbartext</item> </style> <style name="actionbar.solid.example" parent="@style/widget.appcompat.actionbar.solid"> <item name="titletextstyle">@style/mytheme.actionbar.text</item> </style> <style name="mytheme.actionbar.text" parent="@android:style/textappearance"> <item name="android:textcolor">@color/actionbartext</item> </style> </resources>
java android android-actionbar
Comments
Post a Comment