airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.51k stars 728 forks source link

Suggestions on building a "view pager with long lists" screen (epoxy n00b here) #549

Closed lucamtudor closed 5 years ago

lucamtudor commented 6 years ago

I'm apologising in advance for the spammy nature of this 😬.

I'm evaluating mvrx & epoxy for a feature I'm working on and I would love some guidance. What should my approach look like if I want to build a screen that has a "ViewPager" with a few pages with long lists of items?

It's something like Play Store's Top Charts section:

epoxy_play_store_tabs

As a sidenote, I'm using Realm for persistence, so I don't need the new arch paging lib.

elihart commented 6 years ago

I believe it would be fairly straightforward to use a fragment pager to represent each tab with a fragment, then use mvrx to structure the fragment state, and Epoxy to render the UI

lucamtudor commented 6 years ago

That's what I started doing, it didn't make a lot of sense to make everything a "huge recyclerview". Thanks for your input!