CymChad / CymChad/BaseRecyclerViewAdapterHelper
3.0.7版本BaseSectionQuickAdapter使用setNewData、setList、replaceData更新数据会数据错乱
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
我自定义Adapter继承BaseSectionQuickAdapter,在构造函数里传入mData数据,之后我对mData数据进行了修改,尝试通过setNewData、setList、replaceData更新界面显示,但是Recyclerview显示的数据出现了错乱,跟实际数据对不上。
Demo地址:https://github.com/CarryHekangkai/SectionAdapterDemo
希望能够得到帮助,谢谢!
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 linked SectionAdapterDemo and the BaseSectionQuickAdapter constructor and data-update calls. Reproduce the mismatch after modifying mData and trying setNewData, setList, and replaceData; done means the RecyclerView output matches the actual data in the demo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100