1

Possible Duplicate:
How to create a closed (circular) ListView?

I would like to develop a listview which can loop the elements such as,

if the listview detected is the end element, then it will get the first element at the end. "1,2,3,4,5,6,7,1,2,3,4,5......."

if the listview detected is the first element, then it will get the end element at the top. "6,7,1,2,3,4,5,6,7,1,2,3,4,5......"

I found that has some solutions about the circular listview, but I think it is not fit for my case.

Is it possible to implement the looping adapter on android?

Community
  • 1
  • 1
Rebecca
  • 85
  • 1
  • 8
  • But the solutions always set the Integer.MAX_VALUE. I don't wanna set the limit because I want the list can looping no matter I am scrolling to top / down. – Rebecca Mar 09 '12 at 02:27
  • How long will it take you to scroll through several billion items? I unless you plan on scrolling for a week straight (or maybe longer?) I think Integer.MAX_VALUE will work just fine. – Matt Wolfe Mar 09 '12 at 21:02
  • I don't know how long will it scroll..., because I should be implement it can scroll in a loop automatically. – Rebecca Mar 13 '12 at 01:02
  • thats what it does.. why don't you try it and see if it works for you.. should take all of about 20 minutes to implement. – Matt Wolfe Mar 13 '12 at 15:37
  • @Rebecca: Better you try to add and remove items when u scroll(means-> when u reach extreme end of right means add first items simultaneously remove first child,like this process for left scroll too. – Surej May 12 '12 at 08:21
  • @Rebecca: Have u got idea?Do u implemented that..Let me know once – Surej May 14 '12 at 13:45

0 Answers0