On Wed, Sep 1, 2010 at 11:24 AM, Mark Murphy <[email protected]> wrote: > You could look at the code for ListView (and AbsListView) to see how > they do what they do. That's a few thousand lines of code and, I > suspect, took a few engineer-months to get to its current state.
Another strategy, if you can settle for a "page at a time" metaphor, would be to use ViewFlipper. Set up horizontal swipe animations to move between pages. You then only need 3 pages at one time: -- Load in 3 pages and show the user the middle one -- On a flip, remove the outlier page (one that is two away from the current page) and add another page in the direction of the flip, if applicable I should be releasing a ViewSwiper component shortly that demonstrates how to use a GestureLibrary to swipes to flip between children of a ViewFlipper. I'll ponder adding a PagedViewSwiper subclass that handles the pattern I outline here. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

