官方地址 https://www.jianshu.com/p/b343fcff51b0/
1.第一次进来会自动加载更多的问题
设置阈值,当到达阈值时,baseQuickAdapter.setEnableLoadMore(false);
baseQuickAdapter.setEnableLoadMore(true);
ryv.setAdapter(baseQuickAdapter);
baseQuickAdapter.openLoadAnimation(BaseQuickAdapter.ALPHAIN);
baseQuickAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
if (pageCount > page) {
_loadMore();
} else {
baseQuickAdapter.setEnableLoadMore(false);
}
}
}, ryv);