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
Can we call next page with Paging Module to load without scrolling #41
Comments
Hi @palVikas9 |
Hi @idanatz , Yeah, sure.
It is a functionality that when I get the response from API call for page 1, then API call for the page 2 should be trigged by PagingModule of oneAdapter without scrolling of the recyclerview. Right now, is there any existing way that we can do that ?` |
You are right, it's a bug and will be fixed in the next version - the onLoad will be triggered automatically when the conditions for paging are met after each data submission. Regarding a quick-fix, But, you can try and trigger your logic manually when detecting this usecase by using the getVisibleItems() and verifing it's the same number as Items you got in your API response. |
Thanks. For the time being, I have added a workaround in my code. If the condition for next api call is satisfied then it is called and in the loadmore, I call currentPage+2 instead of 1. It is a lovely library to work with. Have made my life so much easier. |
Thanks for the kind words! |
Hi @ironsrc,
Thanks for the library. Have been using it quite a number of my projects but have recently ran into a problem that the API response has only 10 items and the UI doesn't cover whole page and due to that the scroll event of recyclerview is not called.
Is there any way or function can make the Paging module load the next page without scrolling.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: