CymChad / CymChad/BaseRecyclerViewAdapterHelper

onBindViewHolder在使用BaseDifferAdapter滚动时不断调用

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

Describe the bug
1.onBindViewHolder在使用BaseDifferAdapter滚动时不断调用;
2.BaseDifferAdapter无法与ConcatAdapter一起使用,中间日志看到无法匹配到quickviewhoder,当去掉ConcatAdapter才可刷新差异数据。

To Reproduce
Steps to reproduce the behavior:
跑demo,在onBindViewHolder添加日志打印,每次滚动列表都会调用onBindViewHolder;

使用的版本
implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper:4.0.0-beta04"
有详细的描述才能使得我们更快速的定位问题并解决问题,感谢配合!

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 by running the demo with BaseDifferAdapter and ConcatAdapter on version 4.0.0-beta04, then add logging at onBindViewHolder to reproduce the repeated calls. Compare the behavior with and without ConcatAdapter and inspect the quickviewhoder matching logs. Done means scrolling no longer causes unexpected repeated binding and differential data can refresh when the adapters are combined.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.