Wish CLV with Infinete support (Load Items on Real Time)

Douglas Farias

Expert
Licensed User
Longtime User
Hi All.
this is important update for clv class/lib.

its possible make the CLV, load the items in real time, infinite scroll?

I love use clv, because is simple, is easy to customize etc...
but the problem of clv is when you load more then 50 images or items, the clv is slow (lag) with much items, slow moviment .

its possible add this function to clv? load itens on real time moviment?
if yes can you make a update of clv? or post a example on the forum?
it will help a lot of peoples using clv.

for now i m using pagination on my apps, load 15 items, later on the bottom have a button (next)
when i press load i clear the clv and load more itens etc...

if i can load 100+ items on clv will be perfect.


Here is one example of what i m talking about (This is for unity, but i think is possible make on b4a)




thx.
 

Douglas Farias

Expert
Licensed User
Longtime User
yes, add more items i know, but how unload the items on top when user scroll down and load again when the user scroll to top again?
its possible?

exist a way to detect items on screen only ?

for example on screen is the number

(on the top not visible is the 1 2 3 4)
5
6
7
8
(on the bottom not visible is the 9 10 11 12)

how can i unload the images on the 1 2 3 4 , 9 10 11 12 and load the images only when is showing on the screen?

Have a way to detect this?
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
In my UPNP Browser example code I use a custom list view and bump scroll the items (as many as you like). There is a very minor momentary delay which is hardly noticeable while the next items are loaded. The biggest difficulty was detecting when nearing the ends of the list and making sure to load the correct number of items.
The code is probably pretty messy, I did this a long time ago. But the code is in there and your welcome to adapt to your needs.....

https://www.b4x.com/android/forum/threads/upnp-browser-source-files-included.48960/



 

RandomCoder

Well-Known Member
Licensed User
Longtime User
Sorry @Erel I must have been compiling my reply and didn't see your new request to add to the questions forum. Please move my post above of required.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…