Expandable listview with selectall checkbox : group itemclick and scrolling bug

Posted by Samet on Stack Overflow See other posts from Stack Overflow or by Samet
Published on 2012-11-17T16:57:19Z Indexed on 2012/11/17 16:59 UTC
Read the original article Hit count: 224

Filed under:
|

I have an ExpandableListView with a checkbox next to group name and when expanded, child items with checkbox as well.

Let's suppose I have 4 groups with 50 childs. When a group is expanded, and I click on select all checkbox, everything works fine, all checkbox are selected and keep their state if I scroll.

But if I scroll untill the last child of the list, scrolling gets buggy after that ( scrolling to the top and then touching the screen to stop the scrolling doesn't work anymore), clicking on group doesn't work anymore too, untill I click on selectall checkbox again. Clicking on a child checkbox does nothing, I must click on selectall checkbox for everything to work.

I changed Focusable state of the child checkbox, group checkbox and tried many ways, but I can not find a solution to this. Do you have an idea of where it is coming from?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-layout