CymChad / CymChad/BaseRecyclerViewAdapterHelper
刷新数据每个item会增加空白处
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
我用的版本是2.9.44
问题如图,逻辑就是点击泥工辅材左边的勾 改变里面recyclerview item 的勾状态,每点一次都会增加里面item空白项

正常的列表是这样

贴上代码:
fragment部分

第一层adapter

第二层adapter

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the fragment and first- and second-level adapter code shown in the issue, then reproduce the problem on version 2.9.44 by toggling the parent checkbox repeatedly. Trace how the nested RecyclerView data is refreshed and verify that repeated toggles no longer create blank items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100