title: coordinator layout custom scroll behavior
body: <p>I have a layout where i use coordinator layout to collapse appbarlayout to a toolbar when user scroll on the screen.</p>
  
  <p>The default behaviour is quite accurate but problems show up when the user clicks on an edit text field, once the softkeyboard shows up, the screen is pushed up ( i use the flag "adjust resize on my activity) and the appbar layout is off the screen.</p>
  
  <p>What i want to achieve is :</p>
  
  <ul>
  <li><p>collapse the appbar layout to toolbar when user scrolls (i already have this implemented)</p></li>
  <li><p>collapse the appbar layout to toolbar whenever the soft keyboard is shown.</p></li>
  </ul>
  
  <p>Is this possible?</p>
  
  <p>Best regards.</p>