Android Question Text Truncated in scrollview

Giusy

Active Member
Licensed User
Hi,
this is my code:

B4X:
    scvImages.panel.AddView(lb1, 0,0,BWidth,BHeight)
    scvImages.Panel.Height=???
Lb1 contains variable-length text (including chr (10) and chr (13))
How can I calculate the length to be applied in panel.height?

Thanks
 

Brandsum

Well-Known Member
Licensed User
Hi,
this is my code:

B4X:
    scvImages.panel.AddView(lb1, 0,0,BWidth,BHeight)
    scvImages.Panel.Height=???
Lb1 contains variable-length text (including chr (10) and chr (13))
How can I calculate the length to be applied in panel.height?

Thanks
I would recommend using xCustomListView, AddTextItem will automatically adjust the height based on the text. Though you can use StringUtils as @Jeffrey Cameron said.
 
Top