现在Android的手机都还可以,不用重用也很快所以我就不用重用了,注释部分就是重用的方法,去掉就可以了
protected LayoutInflater layoutInflater;
@Override public View getView(final int position, View convertView, ViewGroup parent) { final MenuRightViewHolder viewHolder; // if (convertView == null) { convertView = layoutInflater.inflate(R.layout.main_item, null); viewHolder = new MenuRightViewHolder(convertView); convertView.setTag(viewHolder); // } else { // viewHolder = (MenuRightViewHolder) convertView.getTag(); // }