Skip to content Skip to sidebar Skip to footer

Attribute Android:colorforeground Not Working In Api 23

By setting android:colorForeground in the theme, the main text colours are calculated based on this setting, i.e. android:textColorPrimary and android:textColorSecondary. I have te

Solution 1:

As far as I can tell this is rather an issue of Android Studio. The Layout Editor is showing a color calculation behaviour for API 23, wich seems to be available from API 26 onwards.

The color requires an attribute primaryContentAlpha which is available for API 26.

I still have to find out, how the fallback behaves for lower API and if I can fix this by a support library.

See: Support library for text color behaviour of API 26?

Post a Comment for "Attribute Android:colorforeground Not Working In Api 23"