Hello,
I created a custom scrolling text box in B4A using a label embedded in a scroll view.
I used strUtils to calculate the correct height for the label to enable scolling by setting the internal panel height of the scrollview.
I want to create a similar view in B4I using scrollview.ContentHeight but I cannot calculate the height of the text. I cannot use string.MeasureHeight as it does not take text "wraps" in the label into account. I cannot use SizeToFit because I need to control the width of the label.
Does anyone know a way I can get the real height of multi line text so that I can set the correct label height ?
Thanks
I created a custom scrolling text box in B4A using a label embedded in a scroll view.
I used strUtils to calculate the correct height for the label to enable scolling by setting the internal panel height of the scrollview.
I want to create a similar view in B4I using scrollview.ContentHeight but I cannot calculate the height of the text. I cannot use string.MeasureHeight as it does not take text "wraps" in the label into account. I cannot use SizeToFit because I need to control the width of the label.
Does anyone know a way I can get the real height of multi line text so that I can set the correct label height ?
Thanks
Last edited: