Wish Wordwrap property in native Listview

CidTek

Active Member
Licensed User
Longtime User
A new setting that would prevent word wrapping when the text is too long for the width so I don't have to extend the LV label widths beyond the activity width.
 

CidTek

Active Member
Licensed User
Longtime User
You can decrease the label height to make it show a single line.

I suppose so but that works against the aesthetics of my app with the use of whitespace and my choices of font sizes across many device types and different screen ppi. It just would be simpler to never have to worry about word wrapping (or even just hints of it being visible) with some devices.

Can this be implemented or is there an obstacle to it being done?
 

Informatix

Expert
Licensed User
Longtime User
I suppose so but that works against the aesthetics of my app with the use of whitespace and my choices of font sizes across many device types and different screen ppi. It just would be simpler to never have to worry about word wrapping (or even just hints of it being visible) with some devices.

Can this be implemented or is there an obstacle to it being done?
You can use the Reflection library to set a single line for your label:
B4X:
R.Target = your_label
R.RunMethod2("setSingleLine", True, "java.lang.boolean")
 

Mahares

Expert
Licensed User
Longtime User
@Erel: Could you please also consider a MARQUEE effect for native listview labels when the line is too long? Something like:
SetEllipsize(ListView.SingleLineLayout.Label, "MARQUEE")
 
Top