title: Android CoordinatorLayout : ToolBar scroll only when list starts scrolling
body: <p>I am using Toolbar in my application and using this <a href="http://android-developers.blogspot.in/2015/05/android-design-support-library.html" rel="nofollow">link</a> i am hiding tool bar,it works perfect as expected.But when the List has only one /two items, there is no need to scroll the tool bar as there is enough space at the bottom.</p>
  
  <p>The idea behind hiding the tool bar is to make use of tool bar space when list items beyond the screen height.But when the list items are few i.e less than the device screen height i do not want to scroll the Tool bar.How do i achieve it. TIA.</p>
  
  <p>Code :</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:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true"&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/my_recycler_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;include
          android:id="@+id/my_awesome_toolbar"
          layout="@layout/tool_bar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          app:layout_scrollFlags="scroll|enterAlways" /&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;TextView
      android:id="@+id/empty_text"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:text="@string/no_matches_found"
      android:visibility="gone" /&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>