We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RecyclerViewFinal中executeLoadMore():
void executeLoadMore() { if(!mLoadMoreLock && mHasLoadMore) { if (mOnLoadMoreListener != null) { mOnLoadMoreListener.loadMore(); } mLoadMoreLock = true;//上锁 showLoadingUI(); } }
loadMore()是数据加载业务,在完成数据加载后,一般会调用RecyclerViewFinal.setHasLoadMore(true)去释放锁。但是如果 loadMore() 很快就结束,那么 mLoadMoreLock 就始终为 true. 下次再 load more 的时候,就会只显示加载动画,不会执行。
RecyclerViewFinal.setHasLoadMore(true)
loadMore()
建议更改:
mLoadMoreLock = true;//上锁 if (mOnLoadMoreListener != null) { mOnLoadMoreListener.loadMore(); } showLoadingUI();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
RecyclerViewFinal中executeLoadMore():
loadMore()是数据加载业务,在完成数据加载后,一般会调用
RecyclerViewFinal.setHasLoadMore(true)
去释放锁。但是如果loadMore()
很快就结束,那么 mLoadMoreLock 就始终为 true.下次再 load more 的时候,就会只显示加载动画,不会执行。
建议更改:
The text was updated successfully, but these errors were encountered: