https://kotlinlang.org logo
#compose
Title
# compose
y

Yingding Wang

01/06/2023, 1:31 AM
How can I use vector drawable with the original
android:fillColor
in compose? `painterResource`seems to override these fillColor with Theme Colors.
a

Albert Chang

01/06/2023, 1:55 AM
painterResource
doesn't do this. If you are using
Icon
, you need to specify
tint = Color.Unspecified
.
y

Yingding Wang

01/06/2023, 2:14 AM
Thanks
tint = Color.Unspecified
in Icon is exactly what i need. You saved my day.
5 Views