title: android- How to make all screen scrollable with ViewPager?
body: <p>I have a ViewPager and it has 2 Fragments. In Fragments I have a RecyclerView that show images. Above of ViewPager there are other views. I want this: When I scroll down RecyclerView in ViewPager other Views should be hidden up and recyclerview should be expand. Just like Instagram Profile Page. This is xml code:</p>
  
  <pre><code>&lt;LinearLayout
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;!-- a few views(Profile imageView etc.) --&gt;
  
   &lt;com.google.android.material.tabs.TabLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:tabInlineLabel="true" /&gt;
  
  
          &lt;androidx.viewpager.widget.ViewPager
              android:layout_width="match_parent"
              android:layout_height="wrap_content" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Of course I tried to use ScrollView, NestedScrollView and CoordinatorLayout but none of them worked.</strong></p>