title: Android Nested Scrollview not scrolling
body: <p>I am having a Nested ScrollView which contains contents inside a Linear Layout.</p>
  
  <pre><code> &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:CoverFlowPager="http://schemas.android.com/apk/res-auto"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/scroll"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="10dp"
          android:clipToPadding="false"
          android:fillViewport="true"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;LinearLayout
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>I have this layout inside a ViewPager and ViewPager is inside a CordinatorLayout.</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/main_content"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"&gt;
  </code></pre>
  
  <p>Now when I scroll the view the view is not scrolling. But since the layout is placed inside the Cordinator layout its moving up till the ToolBar is hid. But its not scrolling up.</p>
  
  <p>Here is my main activity xml, The view pager is inside a tabbed layout.</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/main_content"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/appbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
             &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:app="http://schemas.android.com/apk/res-auto"
                  xmlns:attrs="http://schemas.android.com/apk/res-auto"
                  android:id="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  android:background="?attr/colorPrimary"
                  app:layout_scrollFlags="scroll|enterAlways"
                  app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
  
              &lt;FrameLayout
                  android:id="@+id/titleContainer"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"    
                  android:gravity="center"&gt;
  
                  &lt;com.CustomFontTextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:gravity="center"
                      android:text="Toolbar Title"
                      android:textColor="#ffffff"
                      attrs:customFont="handyman_bold"
                      android:textSize="8pt"
                      android:layout_marginLeft="-20dp"
                      android:id="@+id/toolbar_title"/&gt;
              &lt;/FrameLayout&gt;
  
              &lt;ImageButton
                  android:id="@+id/btn_ToolBarRightBtn"
                  android:layout_width="32dp"
                  android:layout_height="28dp"
                  android:tag="0"
                  android:background="@null"
                  android:scaleType="fitXY"
                  android:src="@drawable/icon_shopping"
                  android:layout_alignParentRight="true"
                  android:layout_gravity="right"
                  android:layout_marginRight="10dp"
                  /&gt;   
  
          &lt;/android.support.v7.widget.Toolbar&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/container"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"/&gt;
  
      &lt;android.support.design.widget.TabLayout
          android:id="@+id/tabs"
          android:layout_gravity="bottom"
          android:background="@color/offwhite"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Here is my screenshots,</p>
  
  <p>Initial View
  <a href="https://i.stack.imgur.com/bt1l0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bt1l0.png" alt="enter image description here"></a></p>
  
  <p>When view is scrolled up, it scrolls only to hide the top navigation bar. Its not scrolling to display the items below the tab bar,</p>
  
  <p><a href="https://i.stack.imgur.com/0PjeD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0PjeD.png" alt="enter image description here"></a></p>