[android-developers] ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-07 Thread KhanAzul
I want to display a ListView with checkboxes, and I want some of the checkboxes pre-selected. The ListView has setAdapter called during onCreate, and the list information appears when the screen is drawn. However, when I attempt to set certain list items as checked, my ListView reports

[android-developers] Re: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-07 Thread KhanAzul
* positions (used in getChildAt) are not the same. You list- view will never have more children than the ones you can see. And the child-at postion 0 is the one on the top of the list-view. On Oct 7, 2:37 pm, KhanAzul mark.pes...@gmail.com wrote: I want to display a ListView with checkboxes, and I