I have a Custom View which contains 3 labels. The contents resizes the height of the control based on the contents of the labels.
The custom view works fine on B4a and B4i but on B4j the labels are not resized.
Attached is a sample program which demonstrates the problem. In the real program I am reading the strings from a remote database.
I am using the code from here to MeasureMultiheightText in B4j.
Any ideas what I am doing wrong here.
Android output
B4j Output
The custom view works fine on B4a and B4i but on B4j the labels are not resized.
Attached is a sample program which demonstrates the problem. In the real program I am reading the strings from a remote database.
I am using the code from here to MeasureMultiheightText in B4j.
Measure Multiline Text Height
Measuring the length of multiline text is simple in B4A with StringUtils.MeasureMultilineTextHeight and in B4i by setting the width of a multiline Label and calling SizeToFit. There is no similar method available in B4J. One option is to add a label to an AnchorPane and wait for the layout to...
www.b4x.com
Any ideas what I am doing wrong here.
Android output
B4j Output