I want to add the elevation animation to my android.support.v7.widget.CardView, just like the material style Buttons do. I\'ve tried to set a Sta
android.support.v7.widget.CardView
Button
Sta
I've tried your code, maybe you have simply add the state to second selector element.
So change this line
with this
The complete code will be