Pull up to loadMore - AllenCoder/BaseRecyclerViewAdapterHelper GitHub Wiki
Show

Getting started
Register RequestLoadMoreListener ,the sliding back when the last call onLoadMoreRequested Item method.
mQuickAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
// to update data
mRecyclerView.post(new Runnable() {
@Override
public void run() {
if (mCurrentCounter >= TOTAL_COUNTER) {
// loadComplete
mQuickAdapter.loadComplete();
} else {
// addData
mQuickAdapter.addData(DataServer.getSampleData(PAGE_SIZE));
mCurrentCounter = mQuickAdapter.getData().size();
}
}
});
}
});
Set custom loading layout
mQuickAdapter.setLoadingView(customView);
Add exception tips
Call fails to load showLoadMoreFailedView () failed to load footer can be displayed, and click on the footer will reload.
mQuickAdapter.showLoadMoreFailedView();
Custom exception tips
If you want to customize the load failed footer, needs showLoadMoreFailedView () call setLoadMoewFailedView (customView) before passing defined View.
mQuickAdapter.setLoadMoewFailedView(customView);