title: Unable to hide the Toolbar + Recycler View
body: <p>i Created a Tool bar without using Collapsing Toolbar. I need to hide the toolbar  on scrolling up the Recycler view.i followed link for scrolling/hiding toolbar</p>
  
  <p><a href="http://android-developers.blogspot.com/2015/05/android-design-support-library.html" rel="nofollow noreferrer">http://android-developers.blogspot.com/2015/05/android-design-support-library.html</a></p>
  
  <p>Here is my xml</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:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:layout_scrollFlags="scroll|exitUntilCollapsed" /&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/recycler_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:scrollbars="vertical"
      app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;&lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Here is my output
  <a href="https://i.stack.imgur.com/S9ZHA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S9ZHA.png" alt="enter image description here"></a>
  I am Not sure where its going wrong. I did every thing correctly . But on scrolling the recycler view the Toolbar stays at the same position. Its not hiding.</p>
  
  <p>Your help is much appreciated.</p>