title: Collapsing View (not AppBarLayout) on scroll with CoordinatorLayout like in new GMail Android
body: <p>I would like to implement panel like in new GMail (look at <a href="https://stackoverflow.com/questions/54956542/how-i-implement-new-material-gmail-toolbar-without-nested-scrollview">How I implement new material gmail toolbar without nested scrollview?</a>).</p>
  <p>In above link there is recipe how to achieve view (<code>CardView</code>) but I am interested in how to implement collapsing/expanding (hide/show) effect like in <code>AppBarLayout</code> but without <code>AppBarLayout</code>.
  Can you give me a some advice? Should I add <code>Behaviour</code> to my <code>CardView</code>?</p>
  <p><a href="https://i.stack.imgur.com/UXdWa.gif" rel="nofollow noreferrer">effect I want to achieve -&gt; gif</a></p>