Since upgrading to SDK 21, I have been trying to use the elevation property, but it never works.
I want to raise the frame above the others, so I set the following
android:elevation="4dp"
but no shadow. I tried buttons and frames but got no value.
So the full tag
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/panel_card" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffffff" android:elevation="4dp" >
I missed something else I need to add
source share