CymChad / CymChad/BaseRecyclerViewAdapterHelper

GridLayoutManager设置空布局setEmpty

Open
#3,735 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
24.6k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

  1. 尝试在历史问题搜索答案。
  2. 尝试阅读文档找到答案。
  3. 尝试阅读Demo找到答案。
  4. 尝试自己检查或试验以找到答案。
  5. 尝试阅读源代码以找到答案。
  6. 请勿将产品的一些特殊交互需求 和 该库暂不支持作为bug混为一谈,请您仔细甄别

如果以上都尝试过了请提一个新的issues
参考提問的智慧

如果还是没有找到答案,提问请带上这几个必要信息

  1. 当前使用的版本号
  2. 复现操作描述
  3. 使用代码
  4. crash日志
  5. gif复现效果
  6. 抽取demo
    将你出现的问题代码抽出来成一个可直接运行的项目。(最好fork本库修改)
    在本地修改demo,然后把commit push到github上,在issue里贴下demo的地址。

有详细的描述才能使得我们更快速的定位问题并解决问题,感谢配合!

使用 implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.10'
实现GridLayoutManager 设置空布局是没问题的
020912051512_0QQ截图20230209114936
使用implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper:4.0.0-beta04"
实现GridLayoutManager 设置空布局 如下图
QQ截图20230209120349
是不是4.0也可以isEmptyViewEnable这个默认值为true

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing GridLayoutManager empty-layout behavior between versions 3.0.10 and 4.0.0-beta04, using the reported screenshots and the empty-view configuration as the entry point. Inspect the library's GridLayoutManager and empty-view handling, then reproduce the difference in an Android demo; done means the expected empty layout appears consistently with the newer version.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.