title: Androidx scrolling view behavior not working
body: <p>After switching to <strong>androidx</strong> the following code stopped working. The TextView below the Toolbar used to scroll with the content, but now it doesn't. I managed to make it work only when I set the same scrollFlags to Toolbar, but I would like to keep that in place. Is there a solution to this besides moving the Toolbar out of AppBarLayout and CoordinatorLayout?</p>
  
  <pre><code>&lt;androidx.coordinatorlayout.widget.CoordinatorLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
      &lt;com.google.android.material.appbar.AppBarLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
          &lt;androidx.appcompat.widget.Toolbar
                  app:title="Non-scrollable title"
                  android:layout_width="wrap_content"
                  android:layout_height="?android:attr/actionBarSize"/&gt;
  
          &lt;TextView
                  app:layout_scrollFlags="scroll"
                  android:layout_margin="16dp"
                  android:textSize="20sp"
                  android:text="this should scroll with the content"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"/&gt;
  
      &lt;/com.google.android.material.appbar.AppBarLayout&gt;
  
      &lt;androidx.core.widget.NestedScrollView
              app:layout_behavior="@string/appbar_scrolling_view_behavior"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
          &lt;!-- some scrollable content here --&gt;
  
      &lt;/androidx.core.widget.NestedScrollView&gt;
  
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>