title: Android toolbar with two collapsed states
body: <p><a href="https://i.stack.imgur.com/uza6D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uza6D.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/1rT3e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1rT3e.png" alt="state 2"></a><a href="https://i.stack.imgur.com/UKKWK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UKKWK.png" alt="state 3"></a></p>
  
  <p>Basically I want to achieve the same behaviour as that of the android status bar; when we swipe down from the top, a compact version with the frequently used buttons is shown. Upon swiping down further the status bar expands to show the expanded view.</p>
  
  <p>I want to implement a toolbar in an app with the exact behaviour of the status bar as shown in the images. The first swipe on the <code>NestedScrollView</code> inside <code>CollapsingToolbarLayout</code> should expand the the toolbar to show the compact view, and the second swipe should expand the toolbar further to show the expanded view of the toolbar
  How can i do that?</p>