I tried this code but an error occurs
B4X:
Dim target As Object = Button1
If GetType(target.As(View).Background) = "android.graphics.drawable.StateListDrawable" Then
Dim sld As StateListDrawable
sld = target.As(View).Background
Dim jo As JavaObject = sld
Dim drawable As Object = jo.RunMethod("getStatDrawable", Array(sld.State_Enabled)) ' error - java.lang.RuntimeException: Method: getStatDrawable not found in: android.graphics.drawable.StateListDrawable
Private cd As ColorDrawable
cd = drawable
Dim jo1 As JavaObject = cd
Log(jo1.GetField("cornerRadius"))
End If