title: Appbar with views smooth resize on scroll
body: <p>I want to resize my appbar and its views in a smooth way when recyclerview is scrolled.</p>
  <pre><code>-----------------
  |     Title     |
  |_______  ______|
  |       ||      |
  |_______||______|
  |               |
  |               |
  |               |
  -----------------
  </code></pre>
  <p>should become</p>
  <pre><code>-----------------
  |_______  ______|
  |_______||______|
  |               |
  |               |
  |               |
  -----------------
  </code></pre>
  <p>I'm using a CoordinatorLayout so i tried to resize views height onNestedScroll with a custom Behavior class but it won't do it in a smooth way, what can I do?</p>
  <p>EDIT: i've been asked some code to show, i actually have not written much code to handle the resize but here it is</p>
  <pre><code>@Override
  public void onNestedScroll(@NonNull CoordinatorLayout coordinatorLayout, @NonNull AppBarLayout child, @NonNull View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int type) {
      super.onNestedScroll(coordinatorLayout, child, target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed, type);
  
      if (dyConsumed &gt; 0) {
          child.findViewById(R.id.channelName).setVisibility(View.GONE);
          child.getLayoutParams().height -= dyConsumed;
      }
      if (dyConsumed &lt; 0 &amp;&amp; !target.canScrollVertically(-1)) {
          child.findViewById(R.id.channelName).setVisibility(View.VISIBLE);
      }
  }
  </code></pre>
  <p>the thing is that onNestedScroll gets called only at the end of the scroll, so the resize is done when scroll is finished, while i want it to resize in real time</p>