I am updating my application to use the version 22.1.1 of the Android Support Library. My application theme inherits from Theme.AppCompat.Light.DarkActionBar
.
It works fine, except that all texts are white if the TextView
style is set to one of the predefined style. So I end up with white texts on light background (default background color). With version 22.0.0, I had no issue.
I tried the follow in my theme, but it does not seem to work:
<item name="android:textColor">@color/black</item>
<item name="android:textColorPrimary">@color/black</item>
<item name="android:textColorPrimaryInverse">@color/black</item>
Moreover, the ActionMode
now has a black background instead of white, as it used to be with 22.0.0.
Any idea on how to change this?
I was using the theme
attribute in my theme to set the Toolbar
theme. That's a mistake. The Toolbar
theme has to be defined on the Toolbar
tag directly.
For the ActionMode
background color, it looks like I was taking profit of a bug without knowing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With