title: Sliding RecyclerView
body: <p>I have a <code>RecyclerView</code> in a <code>LinearLayout</code>. How can I have LinearLayout "slide" upwards until it hits the App Bar, whereby the <code>RecyclerView</code> should then begin scrolling the items as usual. Likewise, scrolling the list down will begin to "slide" the entire container down when the the first item is reached in the list until the container returns to its starting position.</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/nearby_stops"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:clipToPadding="false"
              android:paddingBottom="@dimen/half_padding"
              android:paddingTop="@dimen/half_padding"
              android:scrollbars="none" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/4I7LJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4I7LJ.png" alt="enter image description here"></a></p>
  
  <p>I looked at <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer">https://github.com/umano/AndroidSlidingUpPanel</a>, however it does not support <code>RecyclerView</code> and the moment.</p>