title: Position ListView Below Buttons
body: <p>I have a ListView that is appearing behind two buttons. I'd like the ListView to fill the area below the buttons. I've tried the solutions in this link:
  <a href="https://stackoverflow.com/questions/2383847/android-layout-with-listview-and-buttons">Android Layout with ListView and Buttons</a> and <a href="https://stackoverflow.com/questions/6349415/listview-with-button-below-not-working-properly">Listview with button below not working properly</a> . However, it is not working. Can you tell me how to keep theListView below the buttons?</p>
  
  <p><img src="https://i.stack.imgur.com/ojhy1.jpg" alt="enter image description here"></p>
  
  <p>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="fill_parent"
      android:layout_height="fill_parent"
      android:layout_weight="1.0"
      &gt;
  
      &lt;ListView
          android:id="@+id/listview"
          android:layout_width="fill_parent"
             android:layout_below="@id/layoutButtons"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:weightSum=".50"  /&gt;
  
          &lt;LinearLayout
   android:id="@+id/layoutButtons"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
             android:layout_weight="1.0" &gt;
  
          &lt;Button
              android:id="@+id/btnLogout"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight=".70"
              android:text="left" /&gt;
  
          &lt;Button
              android:id="@+id/btnMessage"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight=".30"
              android:text="right" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>