Skip to content Skip to sidebar Skip to footer

How To Change Color Of Actionbar's Title Text On Android 4.3 Api 18

I am using appcompat v7 library to support action bars in api level 8 and up. I am trying to change the color of title text of action bar. Color of title text is changing in Ginge

Solution 1:

Found Solution to my own problem :

I have to use android:actionBarStyle , android:titleTextStyle and android:textColor for api level 14 and up.

So the styles.xml for v-11 will be:

<resources><stylename="AppBaseTheme"parent="@style/Theme.AppCompat.Light"><itemname="android:actionBarStyle">@style/ActionBarStyle</item></style><stylename="ActionBarStyle"parent="@style/Widget.AppCompat.Light.ActionBar.Solid"><itemname="android:titleTextStyle">@style/TitleBarTextColor</item></style><stylename="TitleBarTextColor"parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"><itemname="android:textColor">@color/red</item></style><!-- Application theme. --><stylename="AppTheme"parent="AppBaseTheme"><!-- All customizations that are NOT specific to a particular API-level can go here. --></style></resources>

Solution 2:

I'll use the following within my styles for the current theme in order to update the text color in the ActionBar:

<itemname="android:actionMenuTextColor">@color/Red</item>

which seems to work for me across the latest OS releases.

Post a Comment for "How To Change Color Of Actionbar's Title Text On Android 4.3 Api 18"