on checking one item in custom list view another get automatically selected?
<p>Checking on one item in custom list view and another get selected in Android. I'm using custom adapter list view with check box.</p>

<p>I'm using check boxes in list view.
and I'm using following code for check box count. i.e how many check box are selected. </p>

<pre><code>final int listItemCount = screenList.getChildCount();
for (int i = 0; i &lt; listItemCount; i++) {
    CheckBox cbox = (CheckBox) ((View) screenList.getChildAt(i))
            .findViewById(R.id.checkBox);
    if (cbox.isChecked()) {
        count++;
    }
}
</code></pre>

<p>But while I'm getting <code>count=listItemCount</code> there are some numbers are not shown checked in the list view.</p>
