I have a rounded rectangle with elevation that casts a shadow, just like in the example here: http://developer.android.com/preview/material/views-shadows.html#shadows
<
click here for complete source code
Create button.xml in drawable folder
Create button.xml in drawable-v21 folder
you can set button.xml as background of your view.
if you want custom color for ripple effect instead of default gray, then you can archive it by adding colorControlHighlight in your style.