ViewPager + recycling views?

Posted by user291701 on Stack Overflow See other posts from Stack Overflow or by user291701
Published on 2012-06-29T00:29:02Z Indexed on 2012/06/29 3:16 UTC
Read the original article Hit count: 643

I'd like to create a gallery of photos that swipe left and right. At first I took a look at Gallery, but it's marked as deprecated.

http://developer.android.com/reference/android/widget/Gallery.html

We're told to try ViewPager instead. But the PagerAdapter class doesn't handle recycling of views for us (like a standard ListView), does it?

http://developer.android.com/reference/android/support/v4/view/PagerAdapter.html

Is it up to us to build the recycling mechanism?

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about android-viewpager