title: Android listview item height fill_parent does not work
body: <p>I have an android app with a mainactivity that contain a listview, this is the code of the main activity layout:</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="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;ListView  android:id="@+id/commandList" 
                 android:layout_width="fill_parent"
                 android:layout_height="0dp"
                 android:layout_weight="1"
                /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>in the listview I display a partial view, this is the code of view layout:</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
          android:id="@+id/commandText"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I wish that the elements would fill the height of mainactivitylayout but the result is this:
  <a href="http://it.tinypic.com/view.php?pic=14marl1&amp;s=5#.Us0G7_Z-57c" rel="nofollow noreferrer">result image</a><img src="https://i.stack.imgur.com/biiMU.png" alt="enter image description here"></p>
  
  <p>thank you regards</p>