In android button elevation is setted by default using statelist. I use this code to delete button shadow
but if i want to use a state list drawable to change button color, i'm not able to change elevation and remove the shadow in first drawable.
How can i do this?
B4X:
Sub RemoveShadow(Button1 As Button)
Dim sdk As Phone
If sdk.SdkVersion < 21 Then Return
Dim jo As JavaObject
jo = Button1
jo.RunMethod("setStateListAnimator", Array(Null))
End Sub
but if i want to use a state list drawable to change button color, i'm not able to change elevation and remove the shadow in first drawable.
How can i do this?