我从我的应用程序向下滚动列表视图时遇到崩溃,但错误不太明白.我正在附加Google Developer Console的错误报告屏幕截图.
请仔细阅读.
适配器getView代码:
public View getView(final int position,View convertView,ViewGroup parent) {
ViewHolder holder = null;
if (convertView == null) {
holder = new ViewHolder();
convertView = mInflater.inflate(R.layout.adapter_item_list,parent,false);
holder.labelName = (TextView) convertView
.findViewById(R.id.item_label);
holder.labelInfo = (TextView) convertView
.findViewById(R.id.item_info);
holder.mImgArrow = (ImageView) convertView
.findViewById(R.id.iv_arrow);
holder.mImgIcon = (RoundCornerImage) convertView
.findViewById(R.id.grid_item_image);
holder.relative_cell_view = (RelativeLayout) convertView
.findViewById(R.id.relative_cell_view);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
appSharedPrefrence = AppSharedPrefrence.getsharedprefInstance(context);
final FileBean dataBean = dataList.get(position);
holder.labelName.setText(position+" : "+dataBean.getName());
holder.labelInfo.setText(replace_comma(dataBean.getinfo()));
try{
ImageLoader.getImageLoader(context).DisplayImage(dataBean.getImageUrl(),holder.mImgIcon,R.drawable.logo);
}catch(OutOfMemoryError e){
}
return convertView; }
这是我收到的上述崩溃报告,请让我知道并建议我一些解决方案.
最佳答案
原文链接:https://www.f2er.com/android/431197.html