title: Place a recyclerview between 2 views on top and bottom
body: <p>I am trying to achieve this layout</p>
  
  <pre><code>&lt;RelativeLayout&gt;
      &lt;Button&gt; &lt;!-- Always attached to the top of the parent --&gt;
  
      &lt;RecyclerView&gt;
  
      &lt;Button&gt; &lt;!-- Always attached to the bottom of the parent --&gt;
  &lt;RelativeLayout&gt;
  </code></pre>
  
  <p>Here is the 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="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"/&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recyclerViewTemperatureLog"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"&gt;
      &lt;/android.support.v7.widget.RecyclerView&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>My problem is that although the views are placed correctly, whenever I scroll to the last item in the <code>RecyclerView</code>, it is partially hidden behind the bottom <code>Button</code>. How can I place <code>RecyclerView</code> exactly between the 2 buttons no matter how many items are there in the <code>RecyclerView</code>?</p>