Q:

checkBox is checked ? Looping inside checkbox elements

int count = listView.getChildCount();
for (int i = 0; i < count; i++) {
    View child = list.getChildAt(i);
    //check that child..
}

I wanted to use the following code to see if the total number of checkBox(es) were checked or not. Like if I have 3 checkBoxes I would want something equivalent to:
if(!list.getChildAt(0) && !list.getChildAt(1) && !list.getChildAt(2)){
       // do something with all unchecked checkbox
}

How do I loop through like this, because for one I am not sure about the number of contents in my checkbox.

A:

Just modify the if statement to return the state of the checkbox.
int count = listView.getChildCount();
boolean allUnchecked = true;
for (int i = 0; i < count; i++) {
    Object child = (Object) listView.getChildAt(i);
    if (child instanceof CheckBox) {
        CheckBox checkBoxChild = (CheckBox) child;
        if (checkBoxChild.isChecked()) {
            allUnchecked = false;   //one is checked, sufficient to say that not all is unchecked
            break;    //get out the for loop
        }
    }
}

allUnchecked will be true if all checkBoxes are unchecked, false otherwise
I'm not an Android developer and I can't find the docs for getChildAt so I don't know what it returns. If its an Object you can omit the cast.
Its good to check for null return of the getChildAt too.
Ps: this is not a good code, you can take it like a pseudo-code to know how to implement the logic of how is checked or not, getting the list of the CheckBoxes is your task :) 

