title: Buttons under listview in android application
body: <p>I need to have buttons appear below a listview. Any help will be greatly appreciated. I've tried different ways to get this specific layout to appear correctly on android, but so far I haven't been able to figure this out. I want to be able to display a listview in the middle of the app and have buttons under the listview. The problem is that I have other things that need to be displayed on the screen on top of the listview such as tabs and spinners. All of the items in the listview will have both an image and some text to the right of the image. The image that I'd like to achieve is like this image...</p>
  
  <p><a href="http://movieinsanity.com/img/layout_pic1.jpg" rel="nofollow">android layout image</a></p>
  
  <p>Here's my code so far...</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="match_parent"
      android:layout_height="match_parent"
      android:maxLines="100"
      android:orientation="vertical"
      android:scrollbars="vertical" &gt;
  
      &lt;Button
          android:id="@+id/readWebpage"
          android:layout_width="match_parent"
          android:layout_height="40dp"
          android:onClick="onClick"
          android:text="Load Webpage" &gt;
      &lt;/Button&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:maxLines="100"
          android:gravity="center"
          android:layout_centerHorizontal="true"
          android:layout_centerInParent="true"
          android:orientation="horizontal"&gt;
  
          &lt;Spinner
              android:id="@+id/genre"
              android:entries="@array/genre_list"
              android:layout_weight="0.40"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="1dp" /&gt;
  
          &lt;Spinner
              android:id="@+id/sort"
              android:entries="@array/sort_list"
              android:layout_weight="0.40"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="1dp" /&gt;
  
          &lt;Spinner
              android:id="@+id/page"
              android:entries="@array/page_list"
              android:layout_weight="0.20"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="1dp" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"&gt;
  
          &lt;ListView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/listView" /&gt;
  
          &lt;Button
              android:id="@+id/previousPage"
              android:layout_weight="0.50"
              android:layout_width="0dp"
              android:layout_height="40dp"
              android:onClick="onClick"
              android:layout_alignParentBottom="true"
              android:text="Previous Page" &gt;
          &lt;/Button&gt;
  
          &lt;Button
              android:id="@+id/nextPage"
              android:layout_weight="0.50"
              android:layout_width="0dp"
              android:layout_height="40dp"
              android:onClick="onClick"
              android:layout_alignParentBottom="true"
              android:text="Next Page" &gt;
          &lt;/Button&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>