George2456
George2456

Reputation: 340

Horizontal RecylcerView inside RecyclerView vs ViewPager inside RecyclerView

I have a recyclerview consists of cards, each card/item has pictures that need to be scrolled horizontally. Which is a better to implement? I have done it with a viewpager but I'm not sure if I should rather go with RecyclerView instead of a viewpager? Any tips?

Upvotes: 0

Views: 375

Answers (1)

 Ekalips
Ekalips

Reputation: 1491

It really depends on what kind of scroll do you want. ViewPager will scroll whole page, where RecyclerView will allow you to scroll only part of view.

Upvotes: 1

Related Questions