解决方案 »
- 各位大侠 ,微信中的“听首老歌”的页面怎样实现的???
- 在获取短信时 联系人为空 甚至有几个还出现随机的数字
- EClipse 编译 android 应用的问题
- YUV420转化为RGB565该怎么修改呢?
- Activity 回收
- android如何实现Iphone的coverflow,求demo,急急急急急急急急
- Caused by: java.lang.ClassNotFoundException: net.sf.json.JSONObject in loader da
- 一个android prject,想作为两个app,装在手机上两次,在线等
- 新人求助!打包apk出现Error:Error converting bytecode to dex:
- android 源码开发app,c++无法通过jni调用自己写的类,FindClass返回空,但可以调用系统类
- android webview 排版问题
- 关于同时包含file和JSON的POST方法
if (convertView == null) {
convertView = mInflater.inflate(R.layout.list_item, null);
((TextView) convertView.findViewById(R.id.text1)).setText(mData[position]);
}
else
return convertView;
没有通过tag方式来设置并获取当前数据。
@Override
public View getView(int position, View convertView, ViewGroup parent) {
holder=null;
if(convertView==null){
convertView=inflater.inflate(R.layout.gridview_item, null);
holder=new Holder();
holder.view=(ImageView) convertView.findViewById(R.id.imageView1);
convertView.setTag(holder);
}else{
holder=(Holder) convertView.getTag();
}
String pic_url=timeLineImage.get("picUrl"+position);
holder.view.setTag(pic_url);
// ImageLoader.getInstance().displayImage(pic_url, holder.view, options);
ImageLoader.getInstance().displayImage(pic_url, holder.view, options,new LoadListener());
//setImage(holder.view,pic_url);
return convertView;
}