I have a GridView and I have put a checkbox and imageview. The problem is that when I check this checkbox and scroll down, the checBox gets unchecked. Though the uncheck ev
I hit the same problem and found the solution. Hope I save a few minutes of debugging
The problem is that when I check this checkbox and scroll down, the checBox gets unchecked. Though the uncheck event is not fired, it looks unchecked.
setOnCheckedChangeListener is the wrong listener here. When the items in the gridView get recycled, the checkBoxes are reset automatically, and hence the false uncheck events as seen.
Solution : use OnClickListener instead