Reputation: 8911
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?
Upvotes: 7
Views: 5981
Reputation: 40370
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
Upvotes: 7