Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elevation on Android 5.0 (Lollipop) not working

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?

like image 555
Boris Avatar asked Oct 29 '14 16:10

Boris


1 Answers

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

like image 82
Pointer Null Avatar answered Nov 20 '22 06:11

Pointer Null