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
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")
 

CidTek

Active Member
Licensed User
Longtime User
It can be implemented. However only in a future version of Basic4android as it is implemented in the core library.

Could you please consider adding this to the next release?
 

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")
 

CidTek

Active Member
Licensed User
Longtime User
Is Marquee the same as replacing last few characters with an ellipses?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…