B4J Question xCustomListView is Wrapping Text when "Wrap Text" is unchecked

cklester

Well-Known Member
Licensed User
Using the Designer, I've added an xCustomListView to my window. I've left the "Wrap Text" checkbox unchecked. However, the xCustomListView still wraps the text (see screenshot below).

I'm using clv_Messages.InsertAtTextItem( ... ) to insert the items.

There also does not seem to be a way to toggle the "Wrap Text" setting in code, and I couldn't find any threads discussing this functionality or my issue.

How do I keep the text from wrapping in an xCustomListView?

The image below shows a regular ListView above the xCustomListView at the bottom.

 

mangojack

Expert
Licensed User
Longtime User
I've left the "Wrap Text" checkbox unchecked.

Are you using the latest xCustomListView lib (1.72) ? The current xCLV only shows a "Single Line" property.


Anyway , try this ... (requires Refection lib)
B4X:
Dim p As B4XView = clv_Messages.GetPanel(index)
Dim r As Reflector
R.Target = p.GetView(0)
R.RunMethod2("setSingleLine", True, "java.lang.boolean")
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Upvote 0

cklester

Well-Known Member
Licensed User
As you can see, I'm trying to build a log output. I've gone from a ListView to xCustomListView, but I might should use a B4XTable.

Any opinions on this matter?

Here's what it looks like at the moment:



Obviously, I'll pretty that up, but if anybody has suggestions! I always create a logging system for any language I start using. Is there one already built for B4X?

Ooh! Found this ([B4X] Log Server by @stevel05 )! Maybe that'll do!

And this.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…