title: Android Layout Listview height adjustment under relativelayout
body: <p>I would like add a listview or tableview occupy 2/3 of the screen and then there would a giant button at the center just beneath the listview. Right now the problem is the listview take up the whole height of the screen. I couldn't adjust the height on the graphical layout. I would like to take up only 5 Items height size.  Beneath would be button center on screen,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;RelativeLayout
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:id="@+id/relativeLayout"
     android:padding="3dp" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
   &lt;ListView android:layout_height="wrap_content"
    android:id="@+id/listView1"
     android:layout_width="fill_parent" android:layout_alignParentLeft="true" 
     android:layout_alignParentTop="true"&gt;&lt;/ListView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>