I need to add a shadow to a Button with these attributes \"from zelplin\":
and this is the design
I tried this code
Thanks to Taras I have solution. You can use this library for creating colored shadow to button. Just place your view element inside shadow layout. Of course basic layout is ConstraintLayout. Some pieces of code for example
Button shape :
Result: