当前位置:操作系统 > 安卓/Android >>

android自定义列表问题——SimpleAdapter

写了一个自定义的List列表,并重载了SimpleAdapter,以前列表只有三个选项,后来加的第四个,结果第四个图片死活都是显示跟第一项一样的。怎么改都不对。最后发现我的Adapter里面加了个非空判断,convertView如果有值了就不解析了,。
 
删除后,Bug->resoved
 
 
[java] 
public class PersonsSelectAdapter extends SimpleAdapter {  
。。。  
@Override  
public View getView(int position, View convertView, ViewGroup parent) {  
if(convertView == null){。。。}  
 
补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,