CymChad / CymChad/BaseRecyclerViewAdapterHelper

BaseMultiItemQuickAdapter展开收缩出现的问题

Open
#3,373 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

现象:当展开一个列表时,不收缩列表,在点开第二个列表需要点击两次,视频中数据会重复,感觉也是跟点击两次重复添加数据有关
我是一个RV的adapter里嵌套了一个RV,以便实现展开的布局是网格布局,因为是老项目,未使用AndroidX.
在线演示请点击

demo地址请点击

BaseRecyclerViewAdapterHelper版本:2.9.44

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 linked MultiltemDemo reproduction and inspect BaseMultiItemQuickAdapter's expand/collapse path for a nested RecyclerView. Reproduce the second-item interaction and verify that one click expands it without duplicated data or requiring a second click.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.