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

pavi2410

11/09/2020, 5:36 PM
How do I draw the icon as is, in the top app bar's title? I tried using navigationIcon, changed content color, emphasis to no avail
✔️ 1
n

nrobi

11/09/2020, 5:39 PM
TopAppBar
has a
navigationIcon
parameter
p

pavi2410

11/09/2020, 5:39 PM
I tried that as well... it had the same effect
n

nrobi

11/09/2020, 5:41 PM
How does your drawable look like? If it’s not a vector, maybe
imageResource
could work 🤔
p

pavi2410

11/09/2020, 5:43 PM
It's a Whatsapp icon as you can see in the guttter at line 50
Nope. It doesn't work for imageResource either
Oops. My bad. I used Icon instead of Image
Thanks @nrobi
3 Views