CymChad / CymChad/BaseRecyclerViewAdapterHelper

关于 addChildClickViewIds 不确定是不是框架的BUG,请看描述

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

使用 addChildClickViewIds 来设置点击事件,并且在 convert 方法里设置了 helper.setIsRecyclable(false);

调用局部刷新 adapter.notifyItemChanged(position); 导致点击事件失效

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 addChildClickViewIds and convert paths described in the issue, then reproduce the behavior with adapter.notifyItemChanged(position) after setting helper.setIsRecyclable(false). Trace how child click listeners are restored during the partial refresh; done means the configured click event still works after notifyItemChanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.