How can this be used to set the length of its view in B4a?
I have text in 2 labels that fit the labels just fine and the text is butted together when a phone is set to large font size but when someone uses small font size the the view width doesn't change to match the small text length and I get a large gap between text1 and text2.
(It took me 7 years to get this one right.) XUI v1.60 includes a new method named B4XCanvas.MeasureText. This method accurately measures single line strings. It returns a B4XRect object with the width and height of the measured string. The Top field returns the highest point relative to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.