How to expanding ListView as list item populate?
<p>Basically I am trying to recreate the default contact screen when you click on "+" button another row of Phone number added to the list.</p>

<p>Right now I have an ImageView as the "+" button and a ListView to contain the list of phone numbers. The problem is that the ListView doesn't expand when I add more item into the list.</p>

<p>I could build the same look with LinearLayout but how can I save all those numbers that way?</p>

<p>Below is the layout of the item that will be inflate with custom Adapter</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TableLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="60px"
  android:stretchColumns="1"
  android:background="#FFFFFFFF"
  android:gravity="center_vertical"&gt;
  &lt;TableRow&gt;
    &lt;Button
        android:id="@+id/type"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="10dp"
        android:text="Home" /&gt;
        &lt;RelativeLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:paddingLeft="10dp"
            android:paddingRight="10dp"
            &gt;   
            &lt;EditText
                android:id="@+id/value"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_alignParentLeft="true"
                android:text=""
                android:hint="Name"
                android:lines="1"
                android:textSize="10pt"
                android:typeface="sans"
                android:textColor="#FF000000"
                android:gravity="left"
                /&gt;
        &lt;/RelativeLayout&gt;
    &lt;ImageView
      android:id="@+id/del"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_alignParentTop="true"
      android:paddingRight="14dp"
      android:src="@android:drawable/ic_delete" /&gt;
  &lt;/TableRow&gt;
&lt;/TableLayout&gt;
</code></pre>

<p>This is the ListView portion.</p>

<pre><code>&lt;ListView
                  android:id="@+id/phoneList"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:background="#FFFFFFFF"
                  android:scrollbars="none" /&gt;
</code></pre>

<p>This is really confusing :S. Could anyone help me please?</p>
