nested scrollView doesn't recognize the toolbar
<p>my project has only one toolbar that surrounded by AppBarLayout and also a NestedScrollView control below it that has a CardView layout surrouned linearlayout. no the problem is that the nested scroll overlap the toolbar like this i show in image 
<a href="https://i.stack.imgur.com/1HUzS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1HUzS.png" alt="enter image description here"></a></p>

<p>and also in run time it pass the app like there is no toolbar like this:</p>

<p><a href="https://i.stack.imgur.com/4LyrE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4LyrE.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/wCmOq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wCmOq.png" alt="enter image description here"></a></p>

<p>this is my 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/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    &gt;
   &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbarLayout"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:fitsSystemWindows="true"
      &gt;



&lt;android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/colorPrimary"
    android:elevation="7dp"
    app:theme="@style/ThemeOverlay.AppCompat"
    android:popupTheme="@style/ThemeOverlay.AppCompat.Light"

    android:titleTextColor="@color/colorPrimary"
    app:layout_scrollFlags="scroll|enterAlways"
    &gt;&lt;/android.support.v7.widget.Toolbar&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:nestedScrollingEnabled="true"

        &gt;

        &lt;LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:paddingTop="10dp"

            &gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
            &lt;include layout="@layout/scroll_view_item" /&gt;
        &lt;/LinearLayout&gt;

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

&lt;/android.support.design.widget.CoordinatorLayout&gt;
</code></pre>

<p>scroll_view_item code is here:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.v7.widget.CardView
    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="wrap_content"
    android:layout_margin="16dp"
    android:elevation="5dp"
    app:cardCornerRadius="5dp"&gt;
&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="15dp"
    android:orientation="vertical"

    &gt;
    &lt;TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Dummy Header"
        android:textColor="@android:color/holo_red_light"
        android:textSize="20sp"
        android:textStyle="bold"
        /&gt;
    &lt;TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        android:text="@string/app_text"
        /&gt;

&lt;/LinearLayout&gt;
&lt;/android.support.v7.widget.CardView&gt;
</code></pre>