Android Question Get Border Width?

mangojack

Expert
Licensed User
Longtime User
Possible solution from snippets I found using Java Object.
Cast your b4xView (I'm presuming this as you mention SetColorAndBorder) ... back to a Label , then set the background to a ColorDrawable.

B4X:
    Dim LabelBorder As ColorDrawable = lbl.As(Label).Background
    Dim jo As JavaObject = LabelBorder
    Log(jo.GetField("borderWidth"))
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…