mikeAopeneng / tree-view-list-android

Automatically exported from code.google.com/p/tree-view-list-android
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

How to extend the simple adapter to check or uncheck the checkboxes recursively #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I did some changes to the SimpleAdapter to allow checkboxes in all nodes, later 
I was trying to implement the following logic:
If user clicks on checkbox located in some node with children the adapter needs 
to check recursively the checkboxes in its child nodes or vice versa. I didn't 
find the right approach to get the right implementation. 
Thanks in advance. Denis

Original issue reported on code.google.com by denisC...@gmail.com on 22 May 2013 at 9:54

GoogleCodeExporter commented 9 years ago
you need to implement it in your adapter. simply implement the logic to change 
state of all the nodes you want to change and call notifyDataSetChanged

Original comment by ja...@potiuk.com on 22 May 2013 at 10:50