-
Notifications
You must be signed in to change notification settings - Fork 330
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无法设置多个空缺省页 #422
Comments
一般情况我都会根据Fragment的arguments来在代码中动态赋值当前Fragment的缺省页, 这种似乎更加合理和简单直接 如果你有更好的处理方式可以提出 |
我这个页面不是那种一个Tab对应一个Fragment的,就是一个Activity里PageRefreshLayout套一个RecyclerView,切换Tab就调接口刷新列表,接口里的某个参数根据tab赋值。 我这边目前想到的方案,就是如果不动框架的话: 如果动框架的话,目前想到几种方式,可能不是最佳的:
} |
联系我,我有完美解决的方案 |
为 |
问题描述
PageRefreshLayout只能设置一个空缺省页,如果我是一个带Tab标签的列表,不同标签的Tab要显示不同的空缺省页。
如下图所示
期望结果
1.PageRefreshLayout的addData方法里的showEmpty支持传tag
2.PageRefreshLayout的onEmpty每次显示都能回调
截图
版本
The text was updated successfully, but these errors were encountered: