android - Text colour of action bar is not getting changed -
android - Text colour of action bar is not getting changed -
i trying alter text colour of action bar. able alter background colour text colour not getting changed. changing white still is coming default black.
here style xml :
<resources> <style name="apptheme" parent="@android:style/theme.holo.light"> <item name="android:actionbarstyle">@style/apptheme.actionbar</item> <item name="android:textallcaps">false</item> </style> <style name="apptheme.actionbar" parent="@android:style/widget.holo.light.actionbar"> <item name="android:background">#000000</item> <item name="android:textcolor">#ffffff</item> </style> </resources>
kindly help me wrong
try set textstyle
<style name="apptheme.actionbar" parent="@android:style/widget.holo.light.actionbar"> <item name="android:titletextstyle">@style/mytitletextstyle</item> </style>
and create mytitletextstyle
<style name="mytitletextstyle" parent="@style/textappearance.appcompat.widget.actionbar.title"> <item name="android:textcolor">@color/wheat</item> <item name="android:textsize">21sp</item> <item name="android:textstyle">bold</item> </style>
and @ last
<style name="apptheme" parent="@android:style/theme.holo.light"> <item name="android:actionbarstyle">@style/apptheme.actionbar</item> <item name="android:textallcaps">false</item> <item name="android:actionbartabtextstyle">@style/mytitletextstyle</item> </style>
android android-actionbar
Comments
Post a Comment