title: Tab Layout only collapsing on fling, not on slow scroll
body: <p>for the below layout, when I scroll the content up on a page within the viewpager... if I keep my finger on the screen and scroll up slowly, the tab layout doesn't collapse into the toolbar but if I fling the content up, it does.  Any ideas why?</p>
  
  <p>activity_home.xml</p>
  
  <pre><code>    &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context=".newnav.home.HomeActivity"&gt;
  
      &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:id="@+id/drawer_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fitsSystemWindows="true"
          tools:context=".newnav.NavigationActivity"&gt;
  
          &lt;!-- Check whether do we need this surface view still? --&gt;
          &lt;SurfaceView
              android:id="@+id/surfaceView"
              android:layout_width="0dp"
              android:layout_height="0dp" /&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;com.my.package.view.MyToolBar
                  android:id="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentTop="true"
                  android:background="@color/primary_color" /&gt;
  
              &lt;FrameLayout
                  android:id="@+id/fragment_container"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@id/toolbar" /&gt;
  
              &lt;com.my.package.view.SomeCustomView
                  android:id="@+id/breaking_news_view"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentTop="true" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;com.my.package.navigation.NavigationLayout
              android:id="@+id/navigation_layout"
              android:layout_width="320dp"
              android:layout_height="match_parent"
              android:layout_gravity="start"
              android:background="@android:color/white"
              android:fitsSystemWindows="true" /&gt;
      &lt;/android.support.v4.widget.DrawerLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>fragment_home.xml (parent layout has the toolbar):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;android.support.design.widget.CoordinatorLayout
          android:id="@+id/coordinatorLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;android.support.design.widget.AppBarLayout
              android:id="@+id/appBarLayout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@color/white"
              android:fitsSystemWindows="true"
              app:layout_behavior="com.nbc.news.newnav.home.NbcTabBarScrollingBehavior"&gt;
  
              &lt;android.support.design.widget.TabLayout
                  android:id="@+id/tabLayout"
                  style="@style/HomeTabDesign"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:background="@drawable/top_nav_tab_bg"
                  app:tabBackground="@color/transparent"
                  android:elevation="4dp"
                  android:minHeight="@dimen/tab_layout_height"
                  app:layout_scrollFlags="scroll|enterAlways"
                  app:tabGravity="fill"
                  app:tabIndicatorColor="@color/home_tab_strip_color"
                  app:tabIndicatorHeight="3dp"
                  app:tabMaxWidth="0dp"
                  app:tabMode="fixed"
                  app:tabSelectedTextColor="@color/home_tab_text_color_selected"
                  app:tabTextColor="@color/home_tab_text_color_normal" /&gt;
  
          &lt;/android.support.design.widget.AppBarLayout&gt;
  
          &lt;com.my.package.view.MyViewPager
              android:id="@+id/viewPager"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
      &lt;/android.support.design.widget.CoordinatorLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>section_fragment.xml (the view that scrolls):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;com.my.package.view.ProgressiveFrameLayout
          android:id="@+id/progressiveLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@color/divider_white"
          app:contentLayoutId="@id/contentLayout"&gt;
  
          &lt;FrameLayout
              android:id="@+id/contentLayout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;android.support.v4.widget.SwipeRefreshLayout
                  android:id="@+id/swipeRefreshLayout"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"&gt;
  
                  &lt;android.support.v7.widget.RecyclerView
                      android:id="@+id/sectionRecyclerView"
                      android:layout_width="match_parent"
                      android:descendantFocusability="blocksDescendants"
                      android:layout_height="match_parent"
                      android:background="@android:color/white" /&gt;
              &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  
              &lt;FrameLayout
                  android:id="@+id/adContainer"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="bottom|center_horizontal" /&gt;
          &lt;/FrameLayout&gt;
  
      &lt;/com.nbc.news.view.ProgressiveFrameLayout&gt;
  &lt;/layout&gt;
  </code></pre>