Arsmn1996 Arsmn1996 - 1 year ago 85
Android Question

How to create an image button with raise effect?

I have some Button with background that support press state and normal state but raise effect remove when i set background for it.
How to enable raise effect with background?

Answer Source

The thing you are calling raised is actually known as elevation in android devlpment enviroment terms. You can set the elevation for the view in the XML like below


NOTE : This was introduced from API 21 lollipop.

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