title: Adjust SwipeRefreshLayout height to place View at the bottom of it
body: <p>I have <code>SwipeRefreshLayout</code> inside a <code>RelativeLayout</code>. The problem is that <code>SwipeRefreshLayout</code> takes all the place on the screen, and I need to put a view <em>after</em> this view.</p>
  
  <p><a href="http://i.stack.imgur.com/yKDa3.png" rel="nofollow">See picture</a>: I have: 1st view, I need: 2nd view at the very bottom of the screen but with some space at a top.</p>
  
  <p>My sample XML is:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="ru.seniorsolutions.freelansim.Orders"
      tools:showIn="@layout/app_bar_orders"
      android:paddingTop="10dp"
      android:id="@+id/layout_base"&gt;
  
      &lt;android.support.v4.widget.SwipeRefreshLayout
          android:id="@+id/refreshContainer"
          android:layout_width="match_parent"
          android:layout_height="450dp"
          android:layout_marginBottom="30dp"&gt;
              &lt;ListView
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/lvOffers"
                  android:choiceMode="singleChoice"
                  android:fastScrollEnabled="false" /&gt;
      &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="horizontal" android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingLeft="20dp"
          android:paddingRight="20dp"
          android:measureWithLargestChild="false"
          android:layout_alignParentBottom="false"
          android:layout_alignParentLeft="false"
          android:layout_alignParentStart="false"
          android:layout_alignParentEnd="true"
          android:layout_alignBottom="@+id/refreshContainer"&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textAppearance="?android:attr/textAppearanceMedium"
              android:text="prev"
              android:id="@+id/tvPrevPage"
              android:textColor="#5bb3ee"
              android:textStyle="bold" /&gt;
  
          &lt;View
              android:layout_width="0dp"
              android:layout_height="0dp"
              android:layout_weight="1" /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textAppearance="?android:attr/textAppearanceMedium"
              android:text="next"
              android:id="@+id/tvNextPage"
              android:textColor="#5bb3ee"
              android:textStyle="bold" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>