BaseRecyclerViewAdapterHelper
BaseRecyclerViewAdapterHelper copied to clipboard
GridLayoutManager设置空布局setEmpty
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
- 尝试在历史问题搜索答案。
- 尝试阅读文档找到答案。
- 尝试阅读Demo找到答案。
- 尝试自己检查或试验以找到答案。
- 尝试阅读源代码以找到答案。
- 请勿将产品的一些特殊交互需求 和 该库暂不支持作为bug混为一谈,请您仔细甄别
如果还是没有找到答案,提问请带上这几个必要信息
- 当前使用的版本号
- 复现操作描述
- 使用代码
- crash日志
- gif复现效果
- 抽取demo 将你出现的问题代码抽出来成一个可直接运行的项目。(最好fork本库修改) 在本地修改demo,然后把commit push到github上,在issue里贴下demo的地址。
有详细的描述才能使得我们更快速的定位问题并解决问题,感谢配合!
使用 implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.10'
实现GridLayoutManager 设置空布局是没问题的
使用implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper:4.0.0-beta04"
实现GridLayoutManager 设置空布局 如下图
是不是4.0也可以isEmptyViewEnable这个默认值为true
空视图在4.0文档中这里有提及,“如果你使用 GridLayoutManager ,请切换至 QuickGridLayoutManager,否则空布局无法铺满”。
我这边使用3.0.10一样会出现空视图布局不能铺满的问题,更新到3.0.14也是一样,QuickGridLayoutManager是在4.0上新增的,目前还是使用3.0+版本,能否在3.0+版本上也处理一下这个问题?