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?
Asked
Active
Viewed 479 times
1 Answers
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,248
- 2
- 24
- 45