Hi All,
I want to get all child of a listview.

                int count = listview.getAdapter().getCount();
for (int i = 0; i < count; ++i) {
View row = (View) listview.getChildAt(i); // this line return "null" when
the view is not in focus is listview.
CheckBox check = (CheckBox) row.findViewById(R.id.AppCheckBox);
if (check.isChecked()) {
// some code
} else
// some code
}
I have 10 row in listview, 8 in focus.After looping 8 times it gives null
for View row.

Any help?

Thanks in advance.
Regards
Goutom

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to