I have used checkbox in the ListView
. When I click on any checkbox then a few checkboxes out of screen are checked together. It seems that checkboxes referecing to the top checkboxes after a few rows.
if(convertView == null) {
holder = new Holder();
LayoutInflater inflater=((Activity)context).getLayoutInflater();
convertView = inflater.inflate(R.layout.row, null);
holder.image = (ImageView) convertView.findViewById(R.id.t1);
holder.textview = (TextView) convertView.findViewById(R.id.t2);
holder.check = (CheckBox) convertView.findViewById(R.id.t3);
holder.image.setImageBitmap(null);
convertView.setTag(holder);
} else {
holder = (Holder) convertView.getTag();
holder.check.setChecked(false);
}
holder.check.setTag(position);