ListView item错位 由于Item复用时高度不一致导致ListView 显示错误

来源:互联网 发布:sem优化方案 编辑:程序博客网 时间:2024/06/07 05:49

不复用 Item 就可以解决了 !!!求大神其他解决方法

////        if(convertView == null){            holder = new ViewHolder();            view = View.inflate(context, R.layout.layout_item_city,null);            holder.tvIndex = (TextView) view.findViewById(R.id.tv_city_label);            holder.llLocation = (RelativeLayout) view.findViewById(R.id.ll_city_location);            holder.gvAddress = (GridView) view.findViewById(R.id.gv_simple_citys);//            view.setTag(holder);            convertView = view;//        }else{//            view = convertView;//            holder = (ViewHolder) view.getTag();//        }

0 0
原创粉丝点击