title: Multiple views under NestedScrollview and SwipeRefreshLayout (issue with scroll)
body: <p>So I have the following design in mind, and what I want is that all the elements scroll together smoothly and also have support for swipe to refresh. </p>
  
  <p><a href="https://i.stack.imgur.com/1E8T6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1E8T6.png" alt="enter image description here"></a> </p>
  
  <p>I have tested the following xml in Android 4.4.4 and it works perfectly. The scroll is fast and smooth and all is well! However when I deploy it on Android 7.1.1, scrolling becomes really laggy and most of the time it stops when you remove your finger, instead of slowing down..</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  &gt;
  
  
  &lt;android.support.v4.widget.SwipeRefreshLayout
      android:id="@+id/swipeContainer"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      &gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/myScrollView"
          android:layout_height="match_parent"
          android:layout_width="match_parent"&gt;
  
  
          &lt;RelativeLayout
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
  
              &lt;ImageView
                  android:layout_width="match_parent"
                  android:layout_height="300dp"
                  android:src="@drawable/mypicture"
                  android:scaleType="centerCrop"
                  android:id="@+id/top1pic" /&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentTop="true"
                  android:layout_marginTop="230dp"
                  android:background="@drawable/gradient_home_50"&gt;
  
                  &lt;TextView
                      android:text="Hello"
                      android:ellipsize="end"
                      android:maxLines="1"
                      android:paddingLeft="10dp"
                      android:textColor="@color/white"
                      android:textSize="27sp"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:id="@+id/textView3" /&gt;
  
                  &lt;TextView
                      android:text="you are"
                      android:textColor="@color/white"
                      android:textSize="19sp"
                      android:paddingLeft="10dp"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@id/textView3"
                      android:layout_marginBottom="10dp"
                      android:id="@+id/textView5" /&gt;
  
                  &lt;ImageView
                      android:layout_marginLeft="10dp"
                      android:layout_width="30dp"
                      android:layout_height="30dp"
                      android:layout_below="@id/textView3"
                      android:layout_toEndOf="@id/textView5"
                      android:layout_marginBottom="10dp"
                      android:src="@drawable/rhome"
                      android:scaleType="centerCrop"
                      android:id="@+id/number1pic" /&gt;
  
              &lt;/RelativeLayout&gt;
  
  
              &lt;Space
                  android:layout_width="1dp"
                  android:layout_height="10dp"
                  android:layout_below="@id/top1pic"
                  android:id="@+id/uselessSpace"/&gt;
  
              &lt;TextView
                  android:text="Sup"
                  android:paddingLeft="10dp"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/uselessSpace"
                  android:layout_marginTop="5dp"
                  android:textStyle="bold"
                  android:id="@+id/textView1" /&gt;
  
              &lt;TextView
                  android:text="mpla mpla"
                  android:paddingLeft="10dp"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/textView1"
                  android:id="@+id/textView10" /&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/horizontalRecycler"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/numberOfPeopleHere"
                  android:minHeight="200dp"
                  android:maxHeight="200dp"
                  android:paddingTop="10dp" /&gt;
  
              &lt;TextView
                  android:text="mpla mpla"
                  android:textStyle="bold"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerHorizontal="true"
                  android:layout_below="@id/horizontalRecycler"
                  android:paddingBottom="10dp"
                  android:id="@+id/textView4" /&gt;
  
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/homelist"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@id/textView4"
                  android:layout_alignParentBottom="true"
                  android:paddingBottom="48dp"
                  android:maxHeight="200dp"
                  android:clipToPadding="false"
                  /&gt;
  
              &lt;Space
                  android:layout_width="1dp"
                  android:layout_height="10dp"
                  android:layout_above="@id/homelist"
                  android:id="@+id/uselessSpace2"
                  android:visibility="gone"
                  /&gt;
  
          &lt;/RelativeLayout&gt;
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  
  &lt;LinearLayout
      android:id="@+id/progressbarlayout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
  
      android:gravity="center_horizontal"
      android:orientation="horizontal"
      android:weightSum="1"&gt;
  
      &lt;ProgressBar
          style="@android:style/Widget.Holo.Light.ProgressBar.Small"
          android:layout_width="20dp"
          android:layout_height="20dp"
          android:layout_gravity="center"
          android:layout_marginEnd="5dp"
          android:layout_marginRight="5dp"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:text="All good?"
          android:textColor="@android:color/black"
          android:textSize="15sp"
          android:gravity="center"
          android:textStyle="bold"
          /&gt;
      &lt;!--android:layout_weight="138.70"
      (was in textview above)--&gt;
  &lt;/LinearLayout&gt;
  
  
  &lt;TextView
      android:id="@+id/toolbar_title"
      style="@style/Base.TextAppearance.Widget.AppCompat.Toolbar.Title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:layout_centerHorizontal="true"
      android:paddingTop="10dp"
      android:textColor="@android:color/white"
      android:shadowColor="@android:color/black"
      android:shadowRadius="3"
      android:textSize="20sp"
      android:visibility="gone"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Also I have added the following lines to the main class of the fragment: </p>
  
  <pre><code>// for the vertical RecyclerView
  recyclerView = (RecyclerView) v.findViewById(R.id.homelist);
  
  recyclerView.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false) {
              @Override
              public boolean canScrollVertically() {
                  return false;
              }
  });
  
  recyclerView.setNestedScrollingEnabled(false);
  
  // for the horizontal RecyclerView    
  RHRNRecycler = (RecyclerView) v.findViewById(R.id.horizontalRecycler);
  RHRNRecycler.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false) {
              @Override
              public boolean canScrollVertically() {
                  return false;
              }
  }); 
  </code></pre>
  
  <p>So has something changed with NestedScrollView during all these versions, which means that I have to change completely the way I implement this design?  Is there actually a better way to do this (Standard-wise)? </p>