For some reason if you set a solid color with a transparency, the elevation shadow does not show up.
In your example, I changed #7d0073ff to #0073ff and I got a shadow.
This is probably a bug, as in their documentation it gives a similar example using a translucent background color.
More Related Contents:
- The setMobileDataEnabled method is no longer callable as of Android L and later
- RecyclerView header and footer
- Android statusbar icons color
- Android 5.0 android:elevation Works for View, but not Button?
- No ActionBar in PreferenceActivity after upgrade to Support Library v21
- Android Lollipop, AppCompat ActionBar custom view doesn’t take up whole screen width
- No shadow by default on Toolbar?
- How do I prevent the status bar and navigation bar from animating during an activity scene animation transition?
- How to get recent tasks on Android “L”?
- How to `getTopActivity` name or get currently running application package name in lollipop?
- Toolbar and Contextual ActionBar with AppCompat-v7
- Android 5.0 material design style navigation drawer for KitKat
- Camera preview image data processing with Android L and Camera2 API
- Error inflating class and android.support.v7.widget.CardView
- How to record screen and take screenshots, using Android API?
- CardView not showing Shadow in Android L
- How do I get MediaProjectionManager without disturbing the current foreground process, except to ask for permission?
- Failure [INSTALL_FAILED_OLDER_SDK] Android-L
- Android Lollipop, add popup menu from title in toolbar
- Ripple effect on Android Lollipop CardView
- Using android.support.v7.widget.CardView in my project (Eclipse)
- Alternative to getRunningTasks in Android L
- How to create ripple effect in simple layout
- Heads-up Notification – Android Lollipop
- Android v21 Theme.Appcompat color accent is ignored, no padding on dialogs
- Android L ripple touch effect on shape?
- Cardview shadow not appearing in lollipop devices?
- Position Independent Executables and Android
- How to use setOutlineProvider instead of setOutline in Lollipop
- Android Material Design Inline Datepicker issue