hehonghui / hehonghui/Colorful
个人觉得RecyclerView应该添加clear ViewHolder cache
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 265
- PR merge metrics
- No merged PRs in 30d
Description
我之前也处理过这种类似主题变换的项目,如果不清楚cache,上拉或者下拉刷新的情况下会出现问题。
我的方法当时是:
list.clear();//只是比你的clear多了一个 getRecycledViewPool().clear();;
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 by locating the RecyclerView refresh and theme-change paths in the Colorful Android code, then inspect where list.clear() is called. Compare that path with getRecycledViewPool().clear() as described in the issue. Done means recycled ViewHolder state no longer causes incorrect results during upward or downward refreshes after a theme change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100