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

Tony Kazanjian

01/14/2021, 7:28 PM
Is it possible to create an Icon composable with a Resource ID? If not, what's the best way to do it with a vector drawable?
a

alorma

01/14/2021, 7:31 PM
using
vectorResource
?
m

Matt Lien

01/14/2021, 7:32 PM
Icon(imageVector = vectorResource(id = R.drawable.*)
t

Tony Kazanjian

01/14/2021, 7:36 PM
Thanks @Matt Lien, that was all I needed 👍