Skip to content
New issue

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

PageRefreshLayout的setnomoredata出现的底部文字不对 #399

Closed
lwz339 opened this issue Nov 3, 2023 · 2 comments
Closed

PageRefreshLayout的setnomoredata出现的底部文字不对 #399

lwz339 opened this issue Nov 3, 2023 · 2 comments

Comments

@lwz339
Copy link

lwz339 commented Nov 3, 2023

东哥,求助一个问题
if(binding.homeRecyclerView.adapter!!.itemCount>=homeViewModel.total){ binding.page.setNoMoreData(true) }我在fragment重建的时候判断是否已经加载完成所有数据,然后设置不再加载,为什么这时候再次上拉,底部显示的不是no more data而是pull up to load more?而且只是显示文字有问题,不会触发onloadmore。其他正常情况的加载完成会显示no more data,是我设置有问题吗?

@liangjingkanji
Copy link
Owner

liangjingkanji commented Nov 3, 2023

临时解决办法: finishLoadMoreWithNoMoreData()取代setNoMoreData(true)

我尝试debug的确存在该问题

@liangjingkanji
Copy link
Owner

已在最新版本修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants