Toolbar doesn't responsive to scroll events
<p>I want to hide/show the Toolbar when ListView is scrolling. I have CorrdinatorLayout with Toolbar included in. I add the app:layout_scrollFlags="scroll|enterAlways" attribute to the Toolbar. Then I have Listview inside content_min layout with RelativeLayout with app:layout_behavior="@string/appbar_scrolling_view_behavior" attribute. I included the content_main layout inside CoordinatorLayout -Toolbar not responsive to scroll events on listview. Does this Feature work with RecyclerView only and not listview?</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"
android:fitsSystemWindows="true"
tools:context="com.era.www.onmovie.MainActivity"&gt;

&lt;android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay"&gt;

    &lt;android.support.v7.widget.Toolbar
        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;/android.support.design.widget.AppBarLayout&gt;


&lt;include layout="@layout/content_main" /&gt;
</code></pre>

<p></p>

<p>content_main layout </p>

<pre><code>&lt;RelativeLayout 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"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.era.www.onmovie.MainActivity"
tools:showIn="@layout/activity_main"&gt;


&lt;ListView
    android:id="@+id/listView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" /&gt;


&lt;TextView
    android:id="@+id/empty_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerInParent="true" /&gt;

&lt;ProgressBar
    android:id="@+id/progress_bar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerInParent="true" /&gt;
</code></pre>

<p></p>