AndroidDev AndroidDev - 1 year ago 93
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..

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download