How would I go about getting ripple effects for ic...
# glance
q
How would I go about getting ripple effects for icons that implement the clickable modifier? Or even some kind of response to a button/icon being clicked?
c
Copy code
Modifier.clickable(
   onClick = { },
   indication = rememberRipple(bounded = true)
)
q
That's exactly what I'm looking for, but in the Glance widget library. Currently it only has the clickable action and nothing else.
m
The ripple you will get by default for the compound buttons and list items clicks but not for other views. Otherwise you might need to implement your own selector drawables. Although I am not entirly sure if that would work across older Android APIs
q
Thanks Marcel, will look into using selectors 👍
👍 1