Android Question xCustomListView loop infinite horizontal

scsjc

Well-Known Member
Licensed User
Longtime User
I am trying to make an infinite horizontal loop.
what would be the best way?

my idea is... with a only 5 add items (1,2,3,4,5)
when you scroll through the customlist be: .....1234543212345432123454321... and never stop on "end right side" or "start left side"

thanks :)
 

scsjc

Well-Known Member
Licensed User
Longtime User
Don't work hard, work smart.

Add 10,000 items with PreoptimizedCLV and jump to the middle.
See the attached project.
very good idea :) of course why get complicated having such logical solutions. thanks erel
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Add 10,000 items with PreoptimizedCLV and jump to the middle.
Based on the size of the actual customlistview, is there a way to determine how many items you create (in this case 10000) to ensure endless loop without sacrificing memory by using a very large number like 10000. For instance, if I have 100 actual size, what is a best guess scenario for the endless size.
 
Upvote 0
Top