I have a recycler and inside of it there are cardviews where I fetch information from a REST service, I\'m trying to implement an endless scroll, It\'s supposed that user wi
Make a static boolean variable named "ready" and initialize it to false.
Add the if ready condition in the onLoadMore method as below.
public boolean onLoadMore(int page, int totalItemsCount) {
if (ready) {
//load more from API
}
return false;
}
set ready to true in onBindViewHolder when the position of item is last.