Dim s As String=$"I am porting a code from B4A and I should measure the height of a multiline text. I cannot use label.SizeToFit because I have to fix the width and determine the height.I am so sorry but I don't understand your suggestion. I am porting the baloon library for B4A in B4i. It extensively uses MeasureMultilineTextHeight to determi ne the right height once the width is defined. Moreover I modified this library to allow the user to resize the width of the ballons. SizeToFit doesn't appear to me able to lock the width. In CustomListView I find this code:"$ Log("s height:"&s.MeasureHeight(Font.DEFAULT)) Label1.Text=s Dim txth As Double=Label1.Text.MeasureHeight(Label1.Font) Log("lbl height:"&txth) Label1.Height=txth Label2.Text=s Label2.SizeToFit
Copying updated assets files (1) Application_Start s height:116.9492 lbl height:116.94921875 Application_Active label2Height:320'this one is log by topright btn click(after sizetofit excute)
what's wrong with this problem please?