title: Collapsing toolbar not pin the card view
body: <p>I have created a XML with appbar layout, collapsing toolbar layout with imageview and nested scroll view in order to preform parallax scrolling. </p>
  
  <p>However, I want to add a cardview inside the collapsing toolbar and pin it using the collapsing mode. It can't pin after scroll up. I have no idea what I made wrong. Anyone can help?</p>
  
  <p>Here is my XML code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.coordinatorlayout.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"&gt;
  
  
      &lt;com.google.android.material.appbar.AppBarLayout
  
          android:id="@+id/appbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="#00FFFFFF"&gt;
  
  
          &lt;com.google.android.material.appbar.CollapsingToolbarLayout
              android:id="@+id/collapsingtoolbar"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
  
              &lt;androidx.cardview.widget.CardView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  app:layout_collapseMode="pin"&gt;
  
                  //textview
              &lt;/androidx.cardview.widget.CardView&gt;
              &lt;ImageView
                          android:id="@+id/imageView7"
                          android:layout_width="360dp"
                          android:layout_height="360dp"
                          android:scaleType="centerCrop"
                          app:srcCompat="@drawable/logo"
                          tools:srcCompat="@drawable/logo" /&gt;
  
  
  
  
      &lt;/com.google.android.material.appbar.AppBarLayout&gt;
  
      &lt;androidx.core.widget.NestedScrollView
          android:id="@+id/scrollview"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fillViewport="false"
          android:overScrollMode="always"
          app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"&gt;
  
  
              //my content
          &lt;/LinearLayout&gt;
      &lt;/androidx.core.widget.NestedScrollView&gt;
  
  
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  
  </code></pre>