B4J Question [solved] xCustomListView - scrollbar width

udg

Expert
Licensed User
Longtime User
Hi all,

a customer of mine changed its monitor to a touchscreen model and asks for a wider scrollbar (xCustomListView).
I guess that using JavaObject on the inner sv component could do the trick, but where do I find which method to use?
CSS could be another way.

ps: I'm using the CLV from the XUI Views lib and a solutin limited to B4J is in this case acceptable.

TIA
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1675765567160.png


Step 1: increase the font size of the CLV with the designer. Set it to 50.
Step 2: if you are using AddTextItem then you will need to set the font size of the DesignerLabel like this:
B4X:
CSSUtils.SetStyleProperty(CustomListView1.DesignerLabel, "-fx-font-size", 16)
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
I too have touch screen monitor, and I can scroll the clv by touching it with two fingers and scrolling. Just like Android screen.
Never felt for scrollbar size limit.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Thank you for reporting first-hand experience.
I was told by the customer that the standard width is uncomfortable for them so to try to increment it.
Maybe it's the problem of a single user..who knows? Anyway, Erel solution is easy to implement. Let's see if it makes the customer happy..heheh
 
Upvote 0
Top