Wish xCustomListView - SetVerticalScrollBarEnabled

Harris

Expert
Licensed User
Longtime User
B4X:
Public Sub SetVerticalScrollBarEnabled(Enabled As Boolean)
    Dim r As Reflector
    r.Target = sv
    r.RunMethod2("setVerticalScrollBarEnabled", Enabled, "java.lang.boolean")
End Sub
A bit confused here..
Is this the way it works - or you wish to make it work this way?

If a xCustomListView has more items than one can see - why disable it? The scrollview is enabled by default?
 

Harris

Expert
Licensed User
Longtime User
I'm suggesting to add the method I posted.

Its name confuses; it does not lock the scrollbar but set it to visible/invisible.
I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility.
Ok, I see.

But why? Is the handle bar so intrusive? One only sees it when one scrolls...

I am missing something here obviously - yet curious.
 

LucaMs

Expert
Licensed User
Longtime User
Its name confuses; it does not lock the scrollbar but set it to visible/invisible.
upload_2018-5-2_5-6-57.png
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
But why? Is the handle bar so intrusive? One only sees it when one scrolls...

I am missing something here obviously - yet curious.
I added to my project a xCLV which has a transparent background; the vertical scroll bar is ugly, here ;)

[I have already added that method to my version of xCLV, of course]
 
Last edited:
Top