Hi. How can I implement this button? I can implement the gradient of the button, but I don’t know how to implement the gradient shadow at the bottom.
z
Zach Klippenstein (he/him) [MOD]
11/30/2022, 11:30 PM
Compose, and Android in general, doesn’t have native support for gradient shadows. You could probably simulate it by rendering the gradient in a layer with a blur effect and some transparency, but unless you pre-render it that will only work on newer android versions and might not be very performant.