```rememberRipple(bounded = false)``` How do I cre...
# compose
z
Copy code
rememberRipple(bounded = false)
How do I create a
bounded = false
indication, now that rememberRipple has been deprecated? My goal is simply to have it extend beyond the layout bounds like a circle, instead of being cut off like a square.
1
This works.. 🤦🏽‍♂️
Copy code
remember { ripple(bounded = false) }
a
Just
ripple(bounded = false)
.
👍🏽 1
c
FWIW, found the docs here: https://developer.android.com/develop/ui/compose/touch-input/user-interactions/migrate-indication-ripple#migrate-remember-ripple and they say
Note that ripple() is no longer a composable function and does not need to be remembered. It can also be reused across multiple components, similar to modifiers, so consider extracting the ripple creation to a top-level value to save allocations.
👍🏽 1
160 Views