title: How To Scroll View Pager + Recycler View in Android
body: <p>I have a xml Layout that consist of two sections ;
  in top of layout there is a ViewPager and below it there is a RecyclerView.(left picture).</p>
  
  <p>I want when recycler view scrolling up ViewPager move and fadeOut.</p>
  
  <p><a href="https://i.stack.imgur.com/lypln.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lypln.png" alt="enter image description here"></a></p>
  
  <p>My XML layout code is:</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:orientation="vertical"&gt;
  
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/slider"
      android:layout_width="match_parent"
      android:layout_height="200dp" /&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/lstLatestNews"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_below="@id/slider" /&gt;&lt;/LinearLayout&gt;
  </code></pre>