title: Height of ListView fills the whole screen, although set as wrap_content
body: <p>i have this ListView inside a LinearLayout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          .../&gt;
  
      &lt;EditText /&gt;
        ...
      &lt;/EditText&gt;
  
  
      &lt;ListView
          android:id="@+id/words_list"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The List is populated programmatically by a SimpleCursorAdapter:</p>
  
  <pre><code>adapter = new SimpleCursorAdapter(this, R.layout.list_row_search, mCursor, from, to);
  </code></pre>
  
  <p>list_row_search has a TableLayout with two TableRows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/TableLayout1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal" &gt;
  
      &lt;View
          android:layout_height="1dip"
          android:background="#FF33B5E5" /&gt;
  
      &lt;TableRow
          android:id="@+id/tableRow1"
          android:layout_height="wrap_content" &gt;
  
          &lt;TextView
              android:id="@+id/list_lesson"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:padding="1dip"
              android:textSize="12sp" /&gt;
  
          &lt;TextView
              android:id="@+id/list_name"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="5.25"
              android:padding="1dip"
              android:paddingRight="10dp"
              android:textSize="18sp"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:id="@+id/list_flex"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="12.5"
              android:padding="1dip"
              android:paddingRight="10dp" /&gt;
  
          &lt;TextView
              android:id="@+id/list_rom"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="6.25"
              android:padding="1dip"
              android:paddingRight="10dp" /&gt;
      &lt;/TableRow&gt;
  
      &lt;View
          android:layout_height="0.1dip"
          android:background="#404040" /&gt;
  
      &lt;TableRow
          android:id="@+id/tableRow2"
          android:layout_height="wrap_content" &gt;
  
          &lt;TextView
              android:id="@+id/list_related"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="2"
              android:paddingRight="10dp"
              android:textStyle="italic" /&gt;
  
          &lt;TextView
              android:id="@+id/list_ant"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:paddingRight="10dp" /&gt;
  
          &lt;TextView
              android:id="@+id/list_engl"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:paddingRight="10dp" /&gt;
      &lt;/TableRow&gt;
  
      &lt;View
          android:layout_height="1dip"
          android:background="#FF33B5E5" /&gt;
  
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>Now when the list gets populated, the ListView occupies the hole screen, even if only one element was found in the database. The HierarchyView in eclipse shows pretty clear, that the ListView is the one that fills out the screen.</p>
  
  <p>Can you tell, where the problem is? Thanks for your time!</p>