Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorPrimary doesnt work in targetSdk 29+ #89

Open
ricrebelo opened this issue Jan 7, 2021 · 3 comments
Open

ColorPrimary doesnt work in targetSdk 29+ #89

ricrebelo opened this issue Jan 7, 2021 · 3 comments

Comments

@ricrebelo
Copy link

ricrebelo commented Jan 7, 2021

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 ricrebelo changed the title ?ColorPrimary doesnt work in targetSdk 29+ ColorPrimary doesnt work in targetSdk 29+ Jan 7, 2021
@ricrebelo
Copy link
Author

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

@kklolo
Copy link

kklolo commented Nov 21, 2021

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+

@HeroBarry
Copy link

Still not solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants