How would you detect when the RecyclerView is near the bottom? Right now it only detects when it's at the absolute bottom and can't scroll anymore:
mGridRecycler.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {
super.onScrollStateChanged(recyclerView, newState);
if(!mGridRecycler.canScrollVertically(1) && newState==RecyclerView.SCROLL_STATE_IDLE){
//Make network call here
}
}
});