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

Vivek Sharma

11/27/2020, 2:06 PM
Is there a way to disable the ripple animation, just curious, I saw there is class regarding it RippleIndication, but how to use it on any view click or any use case
k

Kaustubh Patange

11/27/2020, 2:17 PM
There is a property called
Indication
in
Modifiers.clickable
which allows you to indicate when something is pressed. What I did, I set that property to
RippleIndication(radius = 0.dp)
which is not a ideal imo but it works.
z

Zach Klippenstein (he/him) [MOD]

11/27/2020, 2:35 PM
Just pass a null Indication to disable the ripple.
k

Kaustubh Patange

11/27/2020, 2:35 PM
This*
v

Vivek Sharma

11/27/2020, 2:52 PM
Thanks, passing null works
3 Views