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!!!!



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)  |  | 

Android Training in NYC: 


Sponsored Links

Other Threads

1. native heap size and ddms

Hello there, 
I manage to active the native heap tab in ddms, but columns were not 
updated. So  I set libc.debug.malloc to 1 and try to restart the emulator, 
but the reboot failded.
Any suggestion in oreder to fix?

thanks in advance. 


2. Sony Ericsson Xperia Arc to support 10-point multi-touch

One of the biggest complaints about the Sony Ericsson Xperia X10 was its lack 
of multi-touch support, which is pretty much a standard feature in decent 
smartphones nowadays. Well, Sony has learned from their mistakes, and has given 
the upcoming Xperia Arc not 1, not 2, but over 10 points of multi-touch. This 
is all possible thanks to the Arc Cypress TrueTouch All-Point digitizer, 
which is capable of up to 32 X/Y sensor inputs.

Obviously 32 is a lot greater than 10, but unless you have three people all 
clamoring around your phone with their grubby fingers it probably easier to 
just call it 10-point multi-touch. Regardless of what you call it, this is 
great news for the Arc and a good sign that Sony is learning from their 
mistakes with the previous members of the Xperia line

Intrude with Liberated


3. build error

4. Using onItemSelected with conditionals

5. When NOT to update AppWidget from a Service


7. How can we use..?