Android AppCompat 22.1.1 default text color and ActionMode style

I am updating my application to use version 22.1.1 in the Android Support Library. My app theme is inherited 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 a light background (default background color). I had no problems with version 22.0.0.

I tried following in my topic, but it doesn't seem to work:

 <item name="android:textColor">@color/black</item> <item name="android:textColorPrimary">@color/black</item> <item name="android:textColorPrimaryInverse">@color/black</item> 

In addition, ActionMode now has a black background instead of white, as before, with 22.0.0.

Any idea on how to change this?

+6
source share
1 answer

I used the theme attribute in my theme to set the Toolbar theme. This is mistake. The Toolbar theme must be defined directly in the Toolbar tag.

For the background color of the ActionMode , it looks like I was making a profit error without knowing it.

+1
source

Source: https://habr.com/ru/post/986104/


All Articles