title: Floating Action Button attached with anchor not hiding when scrolling RecyclerView items slow
body: <p><strong>I have the design provided at the bottom.</strong></p>
  
  <p>The things I want to happen above the tabs layout:</p>
  
  <ol>
  <li>I want to have an AppBarLayout which hides when the user scrolls down on the RecyclerView in one of the tabs.</li>
  <li>I want the user image to be attached to the blue background behind it and to hide when the user scrolls down.</li>
  <li>I want the tabs to be pinned at the top when the user scrolls so he can easily switch them. The recycler view and the tabs layout must be the only things visible to the user when he scrolls down.</li>
  </ol>
  
  <p>So I did achieve 1 and 3, but I cannot achieve 2 - when you scroll slowly the RecyclerView the image stays over it and does not hide. </p>
  
  <p>Here are the things I have done:</p>
  
  <ol>
  <li>I did implement the coordinator layout only in the fragment, which is displayed here. It is not implemented in a new activity or in the activity which hosts the fragment and the fragment does not have a toolbar. That means I am using a CollapsingToolbarLayout without a toolbar in it. </li>
  <li>I am using a floating action button from the support design library to display the user image. I use it because when it hides it does it with animation.</li>
  </ol>
  
  <p><strong>Check the XML at the bottom.</strong></p>
  
  <p>So what happens:</p>
  
  <ol>
  <li>Everything loads perfectly</li>
  <li>The button is attached at the correct position</li>
  <li>The AppBarLayout responds to scroll</li>
  <li>When scrolling slowly the button is not hiding</li>
  <li>When scrolling fast it does hide</li>
  <li>When changing viewpager fragments it does hide</li>
  </ol>
  
  <p>Here is a video with the problem: <a href="https://youtu.be/Bgglb18SmIw" rel="noreferrer">YOUTUBE</a></p>
  
  <p>I tried to debug the CoordinatorLayout and when it called the hide() method of the button but I couldn't find the problem. Any ideas?</p>
  
  <p><strong>Edit 1:</strong></p>
  
  <p>If you remove the toolbar in the cheesesquare example you will get the same bug.</p>
  
  <p>My test xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:clickable="true"
      android:background="@color/bg_secondary"
      android:fitsSystemWindows="true"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/app_bar_layout"
          android:elevation="1dp"
          android:fitsSystemWindows="true"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/collapsing_toolbar"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"
              app:contentScrim="?attr/colorPrimary"
              android:fitsSystemWindows="true"&gt;
  
              &lt;ImageView
                  android:id="@+id/img"
                  android:src="@drawable/header_bg"
                  android:scaleType="centerCrop"
                  android:cropToPadding="true"
                  app:layout_collapseMode="parallax"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content" /&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/profile_tabs"
          android:elevation="2dp"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/test"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:elevation="1dp"
          app:pressedTranslationZ="12dp"
          android:clickable="true"
          app:rippleColor="@android:color/transparent"
          android:src="@drawable/ic_launcher"
          app:layout_collapseMode="parallax"
          app:layout_anchor="@id/app_bar_layout"
          app:layout_anchorGravity="bottom|left|end" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Wgino.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Wgino.png" alt="Sample design"></a></p>
  
  <p><strong>Edit 2:</strong></p>
  
  <p>There is also an <a href="https://code.google.com/p/android/issues/detail?id=183361" rel="noreferrer">issue marked as <em>Declined</em></a> for this problem.</p>