Cyanea icon indicating copy to clipboard operation
Cyanea copied to clipboard

ColorPrimary doesnt work in targetSdk 29+

Open ricrebelo opened this issue 3 years ago • 3 comments

If you set the targetSdk to 29+ the colorPrimary will not be applyed.

This can be observed in the Java Demo provided, if you change the targetSdk to 29+, the ToolBar will not change its color

ricrebelo avatar Jan 07 '21 16:01 ricrebelo

After a few more research, the bug is with Drawables, in XML if you use android:background="?colorPrimary", it will use the app primary color and not the one from Cyanea. The workarround is to force the color programmatically from a Cyanea instance

ricrebelo avatar Jan 11 '21 16:01 ricrebelo

After a few more research, the bug is with Drawables, in XML if you use android:background="?colorPrimary", it will use the app primary color and not the one from Cyanea. The workarround is to force the color programmatically from a Cyanea instance you can use ### android:background="@color/cyanea_primary_reference" tested and worked on api 29+

kklolo avatar Nov 21 '21 20:11 kklolo

Still not solved

HeroBarry avatar Mar 30 '23 14:03 HeroBarry