The reason these children are null is because they really don't exist, and they will never exist if there are only 7 children on the screen at a time, the system will only create 7 and reuse it by passing convertView back to the getView() adapter .
If you want to get information about your complete dataset, you should look in the dataset itself, not in the views on the screen. For example. if it is an ArrayAdapter, loop the array; if it is a CursorAdapter, loop the cursor; and etc.
Budius
source share