I am getting listView.getChildCount(), is 0 after setting the arrayadapter?
<p>I want to load images from facebook and populate in listview, i am able to get list of friends and their info but  i want to set image i am getting getChildCount() 0 , please help,</p>

<pre><code>   public static ArrayList&lt;FBUser&gt; fbUserArrayList;
    public static Drawable sharedDrawable;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.friends_list_view);
        this.setTitle("FB Friend List");

        final ListView listView = (ListView) findViewById(R.id.listview);
        FriendListAdapter couponsListAdapter = new FriendListAdapter(this,
                fbUserArrayList);
        listView.setAdapter(couponsListAdapter);

        couponsListAdapter.notifyDataSetChanged();


        setFbUsersImage(listView,fbUserArrayList);

    }

    private void setFbUsersImage(final ListView listView,final ArrayList&lt;FBUser&gt; fbUserArrayList) {
                // here am getting 0 ???
        for (int i = 0; i &lt; listView.getChildCount(); i++) {
 ////           
   }

    }
</code></pre>
