title: NestedScrollView Overlapping toolbar (They are inside of a Fragment Layout)
body: <p><strong>I'm trying to add <code>CoordinatorLayout</code>including a <code>Toolbar</code> inside of a Fragment layout. But the problem is that the contents of the <code>NestedScrollView</code> Overlapping to the <code>Toolbar</code>, as you see in image below :<br></strong></p>
  
  <p><a href="https://i.stack.imgur.com/JkKjy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JkKjy.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>I tried to add a <code>RelativeLayout</code> parent and use
    <code>android:layout_below="@+id/coordinatorlayout"</code> for the
    <code>NestedScrollView</code>,but this make the content of <code>NestedScrollView</code> not
    showing up.</p>
  </blockquote>
  
  <p><strong>Fragment layout Code :</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 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"&gt;
  
      &lt;android.support.design.widget.CoordinatorLayout
      android:id="@+id/coordinatorlayout"
      android:layout_height="match_parent"
      android:layout_width="match_parent"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:background="@color/colorPrimary"
          android:id="@+id/toolbar2"
          android:layout_height="?attr/actionBarSize"
          android:layout_width="match_parent"
          app:contentInsetStart="0dp"
          app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
          app:titleTextColor="#FFFFFF"&gt;
  
          &lt;RelativeLayout
              android:layout_height="wrap_content"
              android:layout_width="wrap_content"&gt;
  
              &lt;android.support.v7.widget.CardView      
                  android:layout_height="40dp"
                  android:layout_width="match_parent"&gt;
  
                  &lt;RelativeLayout
                      android:layout_height="match_parent"
                      android:layout_width="match_parent"&gt;
  
                      &lt;ImageView
                          android:id="@+id/search_icon"
                          android:layout_alignParentRight="true"
                          android:layout_height="24dp"
                          android:layout_width="24dp"
                          android:src="@drawable/ic_search_black_24dp" /&gt;
  
                      &lt;EditText
                          android:hint="Search"
                          android:id="@+id/searchEditText"
                          android:layout_height="wrap_content"
                          android:layout_width="match_parent"/&gt;
                  &lt;/RelativeLayout&gt;
              &lt;/android.support.v7.widget.CardView&gt;
          &lt;/RelativeLayout&gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
  &lt;android.support.v4.widget.NestedScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;Button
                  android:layout_width="match_parent"
                  android:layout_height="150dp"
                  android:layout_marginRight="50dp"
                  android:layout_marginLeft="50dp"
                  android:text="hello"/&gt;
  
          &lt;/RelativeLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>