I've tried to reproduce Google's elevation example presented here:
https://developer.android.com/training/material/shadows-clipping.html
But for me no shadows are showing up. Not in the Android Studio designer, not on the AVD emulator. I'm using all the latest versions of Android Studio, the SDK and the emulator image.
What am I missing?
It looks like bug in Docs. Background with alpha doesn't drop shadow. Make the background color without alpha, and it will work. Related question: Elevation on Android Lollipop not working
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With