RecyclerOnScrollListener mOnScrollListener = new RecyclerOnScrollListener(){
@Override publicvoidonBottom(){
LoadingFooter.State state = RecyclerViewUtils.getFooterViewState(mRecyclerView); if(state == LoadingFooter.State.Loading){ Log.d(TAG, "the state is Loading, just wait..."); return; }
//scroll down to up public abstrsct voidonScrollUp(); //scroll from up to down public abstrsct voidonScrollDown(); //load next page publid abstrsct voidonBottom(); //moving state,you can get the move distance public abstrsct voidonScrolled(int distanceX, int distenceY);