In connection with using the MeasureStringWidth function, I need to correct the calculation of Padding and Border Width that are set on the Label. I get the current padding values from lbl.Padding. I haven't found any function to get the current Border value. The opposite function for SetColorAndBorder. Is it possible to get these values?
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"))