• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

RecyclerView or another view?

NaztyBoard

Lurker
Hello,

I'm trying to understand different views for a list of ViewPagers. The idea is to have a list of scrollable images.
Each row has a select amount of images to view. I am told list view is not as adequate since RecyclerView "recycles" rows. Is RecyclerView the only optimal view type for a list of ViewPagers?

I'm more or so trying to replicate AirBnb's list of rentable rooms. Notice for each room you can scroll through a set of images. I'm just not sure on how to go about this.
 
RecyclerView is the best approach.
If you need just scroll bunch of images on page, List<> of RecyclerView as a source for ViewPager will be enough.
For more complicated processing of images on page, you can consider Fragments with RecyclerView.
In this case ViewPager is used with FragmentStatePagerAdapter https://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html

If you are not sure how to implement your project, provide something to discuss.
 
Last edited:
Back
Top Bottom