CymChad / CymChad/BaseRecyclerViewAdapterHelper
BaseQuickAdapter更新数据后,页面还停留在数据更新前的位置
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
版本:
3.0.4
问题描述:
使用adapter.setInstance()/setList()/setNewData()更新数据后,为什么新数据还停留在老数据更新前的位置,不是新数据的第一条呢?比如我更新前滑动到position为4的位置,更新数据后,页面数据变了,但是还停留在position为4的位置
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
Reproduce the behavior through BaseQuickAdapter.setInstance(), setList(), and setNewData() after scrolling to position 4. Trace how these update entry points interact with the displayed position; done means refreshed data starts at its first item rather than retaining the previous position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100