Google has shown some nice ways that elevation effect are shown on Lollipop here.
android:elevation=\"2dp\"
for buttons,
an
to add @Ranjith Kumar answer
To add background color to the drawable (example button background color), we need to get drawable programatically.
first get the drawable
Drawable drawable = getResources().getDrawable(android.R.drawable.dialog_holo_light_frame);
set the color
drawable.setColorFilter(new PorterDuffColorFilter(getResources().getColor(R.color.color_primary), PorterDuff.Mode.MULTIPLY));
then set it to the view.
view.setBackgroundDrawable(drawable);
in case anyone searching.