因为convertView和异步加载,如果只是用convertView,不会出现错位,如果也使用了异步加载,则因为使用的是同一块内存,所以会出现错位情况
boolean imageViewReused(PhotoToLoad photoToLoad) {
String tag = imageViews.get(photoToLoad.imageView);
if (tag == null || !tag.equals(photoToLoad.url))
return true;
return false;
}