B4J Question How to scroll horizontally with xCustomListView ?

Martin D.

Member
Licensed User
I set Orientation to Horizontal, fill the listview with more than can be seen, but I can't scroll unless I do it programatically (ScrollToItem).

It also works when I use vertical orientation + mouse wheel.
 
Solution
To make it clear, this is equivalent to:

B4X:
Dim sp As ScrollPane = CustomListViewH.sv
sp.Pannable = True

@Martin D. you should click on the V button on the right side of the answer, to mark it as the solution.

Star-Dust

Expert
Licensed User
Rotate your phone 90 degrees (clockwise and counterclockwise is the same)
 
Upvote 0

Star-Dust

Expert
Licensed User
By design

1593733178701-png.96518
 
Upvote 0

Martin D.

Member
Licensed User
The view is small in height, a scrollbar would be bad visual design.

I hope rotating my screen isn't a serious answer ? I'll take it as humor.
 
Upvote 0

Star-Dust

Expert
Licensed User
The view is small in height, a scrollbar would be bad visual design.

I hope rotating my screen isn't a serious answer ? I'll take it as humor.
in fact, rotating the screen is complicated
 
Upvote 0

Martin D.

Member
Licensed User
Do we agree this is a bug that needs to be fixed eventually ? After all this is an internal library. Should I report this in "Bugs & Wishlist" ?
 
Upvote 0

Martin D.

Member
Licensed User
BTW I happen to have a mouse that can scroll horizontally and it works when I use that. I don't think this axis should be the default input for horizontal scrolling though (it's logical but not practical / user-friendly).
 

Attachments

  • B4J xCustomListView Test.zip
    178.5 KB · Views: 29
Last edited:
Upvote 0

klaus

Expert
Licensed User
You can make it pannable with:
B4X:
CustomListViewH.sv.As(ScrollPane).Pannable = True
I am afraid that I would never had come to this.
I had tried something similar in that direction but with no success.
This shows the power of the new As method.
 
Upvote 0
Top