CymChad / CymChad/BaseRecyclerViewAdapterHelper
关于 addChildClickViewIds 不确定是不是框架的BUG,请看描述
Open
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
- 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 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