getting 0 on listView.getChildCount()
<p>I want to change the font and size of textlist that I created, but getting 0 on  <code>listView.getChildCount()</code>.</p>

<p>I want to change the font of text before display them. Here is my code:</p>

<pre><code>public class NewsActivity  extends ListActivity {


 public ReadXMLFile ReadXML;
 public  ArrayList&lt;String&gt; ynetList =new ArrayList&lt;String&gt;();

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
 setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item,ynetList));


      View v=getListView() ;

      ListView lv = this.getListView();



      //select red color borders*/
      int[] colors = {0, 0xFFFF0000, 0}; // red for the example
      lv.setDivider(new GradientDrawable(Orientation.RIGHT_LEFT, colors));
      lv.setDividerHeight(1);

      lv.setTextFilterEnabled(true);




    //test
      int childCount = lv.getChildCount();
      for (int i = 0; i &lt; childCount; i++)
      {
          View vf = lv.getChildAt(i);
          TextView tx = (TextView) vf.findViewById(R.id.textView);
          tx.setTextSize(25);
          tx.setTextColor(Color.RED);
      }
</code></pre>
