Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: What would it be to build a pagination? #49

Open
amadeu01 opened this issue Nov 1, 2018 · 3 comments
Open

Question: What would it be to build a pagination? #49

amadeu01 opened this issue Nov 1, 2018 · 3 comments

Comments

@amadeu01
Copy link

amadeu01 commented Nov 1, 2018

On the screen that shows the members

image

If I want to fetch the network on the pagination event, like while the user is scrolling.
What would it be the best aproach?

@acrrono
Copy link

acrrono commented Nov 7, 2018

i have the same question

@arohim
Copy link

arohim commented Mar 15, 2019

@amadeu01 @acrrono I have the same question!

my solution is in the domain layer you can add some parameters, I just add page parameter to the use case class along to remote and load more when reached the end of recycler view.

@piotrek1543
Copy link

piotrek1543 commented Apr 22, 2019

I think there is no easy answer to this problem for now and it won't be.

For now - personally - I am observing Android Components paging library as it seems promising for the nearest future, but it might affect few modules in this exact implementation of clean architecture, so it definitely won't be not good if you want make multi-platform app

Check: https://github.com/googlesamples/android-architecture-components

@arohim solution is pretty fine and similar to a solution implemented in GithubSample in the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants