On Fri, Apr 16, 2010 at 7:29 AM, Pal <[email protected]> wrote:

> Please, advice if you have any ideas


Here's one idea. Implement a custom adapter and have the getCount() (or
whatever) function return 1,000,000 or something equally ridiculous.
Then implement getView() to do a mod operation on the actual number of items
in the list.
So if the list view was trying to show item at index 14 or 984, you would
return the actual item at index 4 (14 % 10, 984 % 10), etc.
You would probably have to add or subtract 1 somewhere to account for
0-based indexing.
Also, this would only work scrolling down the list - scrolling back up to 0
would stop the list from wrapping around. I think you'd probably have to
extend or replace ListView completely to do that.

Hope that helps some.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to