baoyongzhang / baoyongzhang/SwipeMenuListView
ListItem为两种Layout时容易出错
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
如果SwipeMenuListView中只包含一种layout的ListItem,上下滚动时,列表中的项基本不会出错。但是如果根据情况在ListAdapter中判断输出两种layout(比如其中一种为分组标题项)的话,首次输出没有问题,但上下滚动时ListItem的顺序必然出错,而且很难看出位置出错的规律。
已使用ViewHolder来缓存View,但以前没使用ViewHolder的时候也会出现同样的问题。即使列表中各项的数据不存在任何异步操作,也会出现同样的问题。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at SwipeMenuListView and the ListAdapter path that returns two different item layouts, then inspect how recycled ListItems and ViewHolder instances are handled during scrolling. Reproduce with a grouped-title item and another layout while scrolling up and down; done means item order remains correct for both layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100