1

Android imageview in GridView got duplicated but textview is ok

view story
linux-howto

http://stackoverflow.com – I want to show a gridview with imageview and textview, images and labels are stored in two arraylists.It only shows 4 items in the gridview. But the result is that, the images sometimes got shown duplicated, but the text in textview shows always correct. I customed an Adapter extends BaseAdapter, the getView() method is just like below. class ViewHolder{ ImageView imageView; TextView tv; } public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { View view = mInflater.inflate(R.layout.gridview_ite (HowTos)