How to check all checkboxes at some specific event?

by Varun Batra » Mon, 28 Mar 2011 16:04:57 GMT


Sponsored Links
 Hi guys,

I am making an app which required my checkboxes to be checked at once
when i check the main checkbox.
I am using one normal checkbox widget which i am hoping will work as
my main checkbox and i am also using LIST of multiple
choice(simple_list_item_multiple_choice). Now i want to check all
these listview's checkbox when i check my main checkbox.

I am stuck at this part since last two days please help!!!!

Thanks,
Varundroid.

-- 



Re: How to check all checkboxes at some specific event?

by Mark Murphy » Mon, 28 Mar 2011 20:43:48 GMT


 Call setItemChecked() on the ListView for each position (0 to the size
of your list - 1).






-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android Training in NYC:  http://marakana.com/training/android/ 

-- 


Sponsored Links