title: Collapsing Toolbar Layout inside Fragment Leaves blank Space at Top
body: <p>I was working on a Project and when ever i try to add a collapsing layout inside a fragment it leaves blank space at top<a href="https://i.stack.imgur.com/oKWKK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKWKK.png" alt="enter image description here"></a></p>
  
  <p>As seen in picture below toolbar that is used inside activity once i add collapsing toolbar it leaves this empty space which above orange color.</p>
  
  <p>Here is my code for Fragment.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>
  
  <pre><code>xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  &lt;android.support.design.widget.CoordinatorLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/app_bar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
       &lt;android.support.design.widget.CollapsingToolbarLayout
           android:layout_width="match_parent"
           android:layout_gravity="fill_vertical"
           android:layout_height="220dp"
           app:contentScrim="@android:color/transparent"
           app:layout_scrollFlags="scroll|exitUntilCollapsed"
           app:statusBarScrim="@android:color/transparent"
           &gt;
  
           &lt;ImageView
               android:layout_width="match_parent"
               android:layout_height="220dp"
               android:background="@color/review_orange"
               android:src="@drawable/icon_collabartion" /&gt;
  
  
  
       &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;android.support.v7.widget.RecyclerView
          android:layout_marginTop="10dp"
          android:id="@+id/rcv_showTimings"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="fill_vertical"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          /&gt;
  
  
  
  
  
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p></p>