title: Set starting height of CollapsingToolbarLayout
body: <p>I want to be able to scroll on the ImageView inside the CollapsingToolbarLayout. So how that would be possible, and How to set a starting height of that Image view?</p>
  
  <p>My ImageView height is 280p, at the start of the activity I want to show 200p and then I can scroll down to see the rest of the Image. I have seen something similar in WhatsApp application.</p>
  
  <p>Here is a link to see what I want : </p>
  
  <p><a href="https://i.stack.imgur.com/0bHl0.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0bHl0.gif" alt="enter image description here"></a></p>
  
  <p>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/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.example.yasser.version6.Profile"&gt;
  
  &lt;android.support.design.widget.AppBarLayout 
      android:id="@+id/app_bar"
      android:fitsSystemWindows="true"
      android:layout_height="@dimen/app_bar_height"
      android:layout_width="match_parent"
      android:theme="@style/MyMaterialTheme.AppBarOverlay"&gt;
  
      &lt;android.support.design.widget.CollapsingToolbarLayout
          android:id="@+id/toolbar_layout"
          android:fitsSystemWindows="true" 
          android:layout_width="match_parent"
          android:layout_height="match_parent"         
          app:layout_scrollFlags="scroll|exitUntilCollapsed"
          app:contentScrim="?attr/colorPrimary"&gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:scaleType="centerCrop"
              android:src="@drawable/tof" /&gt;
  
          &lt;android.support.v7.widget.Toolbar 
              android:id="@+id/toolbar"
              android:layout_height="?attr/actionBarSize"
              android:layout_width="match_parent"
              app:layout_collapseMode="pin"
              app:popupTheme="@style/MyMaterialTheme.PopupOverlay" /&gt;
  
      &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;include
      android:id="@+id/content"
      layout="@layout/content_profile" /&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Content profile code :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.NestedScrollView
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      tools:showIn="@layout/activity_profile"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.yasser.version6.Profile"&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>