Nestscrollview not working
<p>Hi In <code>CollapsingToolbar</code> nested scroll not working and not collapse toolbar in android</p>

<p>
</p>

<pre><code>&lt;RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;android.support.design.widget.AppBarLayout
        android:id="@+id/MyAppbar"
        android:layout_width="match_parent"
        android:layout_height="256dp"
        android:fitsSystemWindows="true"&gt;

        &lt;android.support.design.widget.CollapsingToolbarLayout
            android:id="@+id/collapse_toolbar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/material_deep_teal_500"
            android:fitsSystemWindows="true"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;

            &lt;FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"&gt;
                &lt;LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"&gt;
                    &lt;ImageView
                        android:id="@+id/bgheader"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:background="@drawable/ssss"
                        android:fitsSystemWindows="true"
                        android:scaleType="centerCrop"
                        app:layout_collapseMode="parallax" /&gt;
                &lt;/LinearLayout&gt;
                &lt;ImageView
                    android:id="@+id/ddd"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|end"
                    android:layout_margin="15dp"
                    android:background="@drawable/dedd"
                    /&gt;
            &lt;/FrameLayout&gt;
            &lt;android.support.v7.widget.Toolbar
                android:id="@+id/MyToolbar"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                app:layout_collapseMode="pin" /&gt;

        &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;


    &lt;/android.support.design.widget.AppBarLayout&gt;

        &lt;android.support.v4.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="fill_vertical"
            android:fillViewport="true"
            android:layout_below="@+id/MyAppbar"
               app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;

            &lt;android.support.v7.widget.RecyclerView
                android:id="@+id/card_recycler_view"
                android:scrollbars="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/&gt;

        &lt;/android.support.v4.widget.NestedScrollView&gt;



&lt;/RelativeLayout&gt;
</code></pre>

<p></p>

<p>I display group name and image as per whatsapp.when scroll hole page collapse toolbar and listview display like whatsapp.</p>