title: getChildCount() returns 0 on ListView
body: <p>I need to check all element on a ListView to set a label only to a one of those.
  I can't edit the database or the adapter, I just want to scroll the ListView to perform a check and set a string on a TextView.</p>
  
  <pre><code>@Override
  protected void onResume(){
      super.onResume();
      ...
      cursor = getCursor();
      startManagingCursor(cursor);
      adapter = new SimpleCursorAdapter(this,R.layout.profile_item_layout,cursor,from,to);
      lst_profiles.setAdapter(adapter);
      SharedPreferences customSharedPreference = PreferenceManager.getDefaultSharedPreferences(ProfilerActivity.this.getApplicationContext());
      long current = customSharedPreference.getLong(ProfileManager.CURRENT, -1);
      toast(lst_profiles.getChildCount()); //display 0
      if(current!=-1){
          for(int i=0;i&lt;lst_profiles.getChildCount();i++){
              if(lst_profiles.getItemIdAtPosition(i)==current)
                  ((TextView)lst_profiles.getChildAt(i).findViewById(R.id.activeLabel)).setText(getString(R.string.active));
              else
                  ((TextView)lst_profiles.getChildAt(i).findViewById(R.id.activeLabel)).setText("");
          }       
      }
  }
  </code></pre>
  
  <p>How can I do? I need to wait something?</p>
  
  <p>P.S. Obviusly the ListView is not empty.</p>