Here is my first contribution to the B4i community. It's a port of my B4a code module.
There are three examples two of which are examples that Erel posted with Fast scroll added.
TableFastScroll, adds a horizontal and vertical fast scroll bar to the Table.
CustomListViewFastScroll adds a vertical scroll bar to the custom listview
TableAsListViewFastScroll is a single column table acting as a list view. For large lists this is much quicker to load than customscrollview thanks to it's caching.
Porting was a breeze, even using UI objects. I've marked the amendments made so you can see how to add the fast scroll to a project.
The scroll button is an image view, so you can change it to whatever you please, it is currently just coloured with a border.
As usual, if you make improvements, please let us know and repost.
In Debug mode you can occasionally see the scrollview's panel while the list is scrolling if you make a large jump, this is almost imperceptible in release mode (at least on my Ipad mini 2).
It is actually 3 modules, GS is just a static globals module the contents of which you can move to your main module if you prefer.
I hope you find this useful.
There are three examples two of which are examples that Erel posted with Fast scroll added.
TableFastScroll, adds a horizontal and vertical fast scroll bar to the Table.
CustomListViewFastScroll adds a vertical scroll bar to the custom listview
TableAsListViewFastScroll is a single column table acting as a list view. For large lists this is much quicker to load than customscrollview thanks to it's caching.
Porting was a breeze, even using UI objects. I've marked the amendments made so you can see how to add the fast scroll to a project.
The scroll button is an image view, so you can change it to whatever you please, it is currently just coloured with a border.
As usual, if you make improvements, please let us know and repost.
In Debug mode you can occasionally see the scrollview's panel while the list is scrolling if you make a large jump, this is almost imperceptible in release mode (at least on my Ipad mini 2).
It is actually 3 modules, GS is just a static globals module the contents of which you can move to your main module if you prefer.
I hope you find this useful.
Attachments
Last edited: