CymChad / CymChad/BaseRecyclerViewAdapterHelper

刷新数据每个item会增加空白处

Open
#3,443 1 comment 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

我用的版本是2.9.44
问题如图,逻辑就是点击泥工辅材左边的勾 改变里面recyclerview item 的勾状态,每点一次都会增加里面item空白项
image

正常的列表是这样
image

贴上代码:
fragment部分
image

第一层adapter
image

第二层adapter
image

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.