C CidTek Active Member Licensed User Longtime User Oct 29, 2013 #1 Wordwrap=0 property in native Listview Is this possible?
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2013 #2 What do you mean with Wordwrap=0?
C CidTek Active Member Licensed User Longtime User Oct 30, 2013 #3 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2013 #4 You can decrease the label height to make it show a single line. Another option is to use CustomListView class. Calling AddText will add a label that will show the complete text.
You can decrease the label height to make it show a single line. Another option is to use CustomListView class. Calling AddText will add a label that will show the complete text.
C CidTek Active Member Licensed User Longtime User Oct 30, 2013 #5 You can decrease the label height to make it show a single line. Click to expand... 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 decrease the label height to make it show a single line. Click to expand... 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?
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2013 #6 It can be implemented. However only in a future version of Basic4android as it is implemented in the core library.
It can be implemented. However only in a future version of Basic4android as it is implemented in the core library.
Informatix Expert Licensed User Longtime User Oct 31, 2013 #7 CidTek said: 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? Click to expand... You can use the Reflection library to set a single line for your label: Code: R.Target = your_label R.RunMethod2("setSingleLine", True, "java.lang.boolean")
CidTek said: 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? Click to expand... You can use the Reflection library to set a single line for your label: Code: R.Target = your_label R.RunMethod2("setSingleLine", True, "java.lang.boolean")
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2013 #8 The above code will work with a regular label. Not with ListView labels.
C CidTek Active Member Licensed User Longtime User Oct 31, 2013 #9 Erel said: It can be implemented. However only in a future version of Basic4android as it is implemented in the core library. Click to expand... Could you please consider adding this to the next release?
Erel said: It can be implemented. However only in a future version of Basic4android as it is implemented in the core library. Click to expand... Could you please consider adding this to the next release?
M Mahares Expert Licensed User Longtime User Oct 31, 2013 #12 @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")
@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")
C CidTek Active Member Licensed User Longtime User Oct 31, 2013 #13 Is Marquee the same as replacing last few characters with an ellipses?
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2013 #14 Note that you unless your lists are longer than 1000 items then you can simply switch to CustomListView class and make all the changes you need.
Note that you unless your lists are longer than 1000 items then you can simply switch to CustomListView class and make all the changes you need.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2015 #15 It might be implemented in the future.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2015 #16 You can use CustomListView instead.