title: set adjustable listView between two hardcoded items
body: <p>I want to set list view between two hardcoded items. I can't leave the height value blank in listView, cause it's disappear. I try with wrap/fill.. but all this things making my listView fill whole layout. Here is my code: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical" &gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Large Text"
      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;ListView
      android:id="@+id/choose_list_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_above="@+id/relativeLayout1" &gt;
  &lt;/ListView&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="50dp"
      android:layout_alignParentBottom="true"
      android:layout_alignParentLeft="true"
      android:layout_alignParentRight="true"
      android:background="@drawable/buton_style" &gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="90dp" &gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/addToBasketName"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Produkty:"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
              &lt;TextView
                  android:id="@+id/choose_produkty"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Medium Text"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/textView3"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Do zapłaty:"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
              &lt;TextView
                  android:id="@+id/choose_do_zaplaty"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Medium Text"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
      &lt;Button
          android:id="@+id/addToBasket"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:text="Do kasy" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>How would you solve this problem?</p>