Android Question Find label's optimized height

JohnC

Expert
Licensed User
Longtime User
Maybe you can use this code:

B4X:
    Dim SU As StringUtils
    Dim ItemHeight As Int = SU.MeasureMultilineTextHeight(MyLabel, MyLabel.Text)

To find out the required height for the label, then calculate the scrollview.panel.height based on that.
 
Upvote 0
Top