AndroidDev AndroidDev - 10 months ago 68
Android Question

How to implement the Material-design Elevation for Pre-lollipop

Google has shown some nice ways that elevation effect are shown on Lollipop here.


for buttons,


How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library?

Answer Source

You can mimic the elevation on pre-Lollipop with a official method.

I achieve same effect using,


My tested output:

enter image description here

reference -

Thanks to user @Repo..