I have searched and tryed all found solutions to this. I need to remove the shadow from a button in android. Most of the solutions i found involve using an imagebutton and setti
In my case, simply adding..
android:shadowRadius="0"
..in the xml file did the trick.
How about
<Button
..<code>
android:stateListAnimator="@null"
..<code>
</Button>
Alternative for Attribute stateListAnimator used in API level 21 - I wrapped button inside a linear layout, both having same dimensions. Worked for my case.
Set Style Attribute for Button in xml
style="?android:attr/borderlessButtonStyle"
It Works.