Android listview with checkbox problem?

This was tricky. The problem is that you are calling setChecked, activating the old OnCheckedChangeListener. The fix is quite simple: call setOnCheckedChangeListener before calling setChecked.

This way you sever the link to the old listener from the recycled view.

You blow my mind! That did fix it! Theres no chance I could have seen that!

Thanks! – mixkat Mar 27 at 3:14 Yeah, I didn't realize that setChecked would trigger the OnCheckedChangeListener. Lesson learned!

– Matthew Willis Mar 27 at 3:31 Have a look at Vikas' answer too if you want! It works quite well! And its actually easier in terms of "logic" or "flow of events"!

– mixkat Mar 27 at 3:49 I had a headache with this one, too. This enters my hall of fame of Android traps. – rds Mar 270 at 22:45.

Check this one. There I have already given a complete solution.

Thanks for the reply man! The above method worked though! – mixkat Mar 27 at 3:18 That works equally well!

– mixkat Mar 27 at 3:43 @mixkat: Yeah glad to know it and I had implemented that solution after researching for more than one week. And the logic behind is quite simple. – Vikas Patidar Mar 27 at 7:23.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions