If GetType(Label1.Background) = "anywheresoftware.b4a.objects.drawable.ColorDrawable$GradientDrawableWithCorners" Then
Dim cd As ColorDrawable = Label1.Background
Dim jo As JavaObject = cd
Log($"Radius = ${jo.GetField("cornerRadius")}, BorderWidth = ${jo.GetField("borderWidth")}"$)
End If
We are checking the view's background type. It can be a different type if for example you use GradientDrawable in the designer.One question, why do you need to check the view type?