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

Tristan

02/20/2021, 3:32 AM
Hello, is it possible to tint an icon to only a certain percent of its size? Something like half filled from left to right. I am trying to do a rating bar with stars, and would like to have the last star only filled at the certain percent (depending on the rate)
m

martinsumera

02/20/2021, 9:56 AM
If you won’t be able to solve it you can create two overlapping icons with different tints and with the top one icon not fully drawn.
t

Tristan

02/20/2021, 2:55 PM
That’s an interesting idea 💡 How can à prevent the icon to be fully drawn? When I à change its side, it scales the content 😅
2 Views