Can't change ActionBar title text color
I am using this and it works for me
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="titleTextColor">@android:color/white</item>
<item name="subtitleTextColor">@android:color/white</item>
</style>
titleTextColor
is an attribute available for v23 only.
Check that in your layout xml file you don't have an
android:theme
attribute specified for your<Toolbar>
, which would have priority over the main themeOverride your
actionBarStyle
attribute as pointed out everywhere over the internets.
<style name="Theme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="actionBarStyle">@style/ActionBarStyle</item> </style> <style name="ActionBarStyle" parent="Theme.AppCompat.Light.DarkActionBar" > <item name="android:titleTextStyle">@style/ActionBarTitle</item> </style> <style name="ActionBarTitle" parent="Widget.AppCompat.ActionBar"> <item name="android:textColor">@android:color/black</item> </style>
This line of code works for me
app:titleTextColor="@android:color/white"
Image Showing the implementation of a Toolbar