I'm trying to change ActionBar text color like this.
<style name="AppTheme" parent="Theme.AppCompat.Light">
<item name="actionBarStyle">@style/MyTheme.ActionBarStyle</item>
</style>
<style name="MyTheme.ActionBarStyle" parent="@style/Widget.AppCompat.ActionBar">
<item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item>
</style>
<style name="MyTheme.ActionBar.TitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
</style>
According to a lot of similar topics (another one) this should work, but none of that changes text color and also my ActionBar is becoming transparent when I try this. I can change it's text color by changing textColorPrimary in AppTheme, but it also changes a lot of stuff.
Also I'd like to see any links about how styling works in android cause it and it's hierarchy kinda confuses me