6

I'd like to make a looping ListView. That means, it behaves a bit like the picker widget on iOs, so when the user scrolls either up or down, the list just keeps looping its contents. I'd guess that one needs to write some fancy custom adapter for this, but I'm not sure if it's possible.

Afaik, the ListView needs to know the number of elements containted in the adapter in advance. That would be a problem in this case, for example.

Do you have any tips on this matter?

Thanks

Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
  • Have you tried returning 1000000 for `getCount` in your custom adapter, then set the listview to start scrolling in the middle and in every `getView` return the view which is appropriate to the virtual position? Remove scrollbars.. :-) – Sebastian Roth Nov 18 '10 at 08:05

1 Answers1

3

Do you mean a circular ListView? A similar question has been asked in the past.

Community
  • 1
  • 1
kgiannakakis
  • 103,016
  • 27
  • 158
  • 194