title: ListView overlaps Collapsing Toolbar
body: <p>I used to setup a Collapsing Toolbar with the Project-Template from Android Studio and tried to implement a ListView in the NestedScrollView (see code below) </p>
  
  <p>I have the newest Android Studio Version and AVD runs on Android 9</p>
  
  <p>I allready tried to </p>
  
  <ol>
  <li>change <code>android:fillViewport="true"</code> of the NestedScrollView</li>
  <li>implement my own ListView (<a href="https://stackoverflow.com/questions/45538115/collapsing-toolbar-with-listview">Collapsing Toolbar with ListView</a>)</li>
  <li>wrap ListView into a LinearLayout</li>
  </ol>
  
  <p>I found several solutions using a <code>RecyclerView</code>, I do not want to use this approach - If this is the last way to do it, I will ;). (This is for a school project and we should only use components we have learned in school <em>face palm</em>)</p>
  
  <p>I will skip a few XML Import Lines in the following:</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context=".MainScreen"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/app_bar"
          android:layout_width="match_parent"
          android:layout_height="@dimen/app_bar_height"
          android:fitsSystemWindows="true"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/toolbar_layout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:fitsSystemWindows="true"
              app:contentScrim="?attr/colorPrimary"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"
              app:toolbarId="@+id/toolbar"&gt;
  
              &lt;android.support.v7.widget.Toolbar
                  android:id="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  app:layout_collapseMode="pin"
                  app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;fragment
          android:id="@+id/fragment1"
          android:name="net.mountdev.alcohollevel.EntryList"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="@dimen/fab_margin"
          app:layout_anchor="@id/app_bar"
          app:layout_anchorGravity="bottom|end"
          app:srcCompat="@drawable/ic_add_white_24dp" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>NestedListView</p>
  
  <pre><code>&lt;android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context=".MainScreen"
      tools:showIn="@layout/activity_main_screen"&gt;
  
          &lt;ListView android:id="@id/android:list"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:drawSelectorOnTop="false"/&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>
  
  <p>The current result is, that the ListView is in the ActionBar which should no be (see screenshot) </p>
  
  <p><img src="https://i.imgur.com/ErP6QdU.png" alt="ActionBar overlaps with List" title="tooltip"></p>