Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Icon color is not changing even after changing the fill color in xml file

enter image description here

This is the code of like icon svg and I have changed the color to pink from black, but when I try to display the icon using compose it’s appearing as black only as u can see down

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The compose code is

Icon(painter = painterResource(id = R.drawable.liked), contentDescription =null )

>Solution :

Try this?

Icon(painter = painterResource(id = R.drawable.liked), contentDescription = null, 
    tint = Color(0xFFE91E63))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading