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如何快速使缺省状态 空布局,错误布局 无法下拉刷新 #292

Closed
1Ezreal opened this issue Nov 16, 2022 · 6 comments
Labels
提议 New feature or request

Comments

@1Ezreal
Copy link

1Ezreal commented Nov 16, 2022

PageRefreshLayout如何快速使缺省状态 空布局,错误布局 无法下拉刷新

@1Ezreal
Copy link
Author

1Ezreal commented Nov 16, 2022

还有一个问题,我设置了全局缺省处理
image
然后在使用的地方有调用了
image
发现全局配置的东西失效了,这个是正常的吗

@liangjingkanji
Copy link
Owner

这是正常的, 任何单例都可以覆盖全局, 参见文档

@liangjingkanji
Copy link
Owner

liangjingkanji commented Nov 16, 2022

PageRefreshLayout如何快速使缺省状态 空布局,错误布局 无法下拉刷新

实现StateChangedHandler接口(在里面判断status状态)不会被单例onError()等方法覆盖全局

多看文档和方法列表吧, 我也是需要看方法文档才能确定解决方法的

@1Ezreal
Copy link
Author

1Ezreal commented Nov 16, 2022

现在是这样的,PageRefreshLayout在onErro()和onEmpty()的时候默认可以下拉刷新,可否增加方法控制是否允许下拉刷新

@liangjingkanji
Copy link
Owner

liangjingkanji commented Nov 16, 2022

我认为可以采纳这个提议, 但是默认可以下拉刷新我认为还算合理

欢迎你发起关于这个提议的pr, 如果你不想亲自参与本开源项目可以等待发布新版本

代码/注释质量高还是很欢迎更多人参与其中, 三人必有我师

@liangjingkanji
Copy link
Owner

添加文档: 缺省页禁止下拉刷新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
提议 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants