CymChad / CymChad/BaseRecyclerViewAdapterHelper
功能建议,notifyItemChanged(position,payload)局部刷新在有头部的时候,position不对
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
最新版本的notifyItemChanged(int position, @Nullable Object payload)进行数据更新,有头部时候position比getData的数据位置少一个,因为头部会占用一个item
是否后续版本重写一个notifyItemChanged,在有头部的时候position数据+1
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
No file or test is named. Start by locating the adapter's notifyItemChanged(int position, Object payload) entry point and the header handling around getData positions. Check how positions are translated when a header exists, then define tests showing that payload updates target the intended data item with and without a header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100