1

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?

arsmn
  • 421
  • 2
  • 6
  • 12

1 Answers1

0

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

android:elevation="4dp"

NOTE : This was introduced from API 21 lollipop.

Gaurav Sarma
  • 2,128
  • 2
  • 21
  • 40