title: Android AppBarLayout overlaps listview
body: <p>I am writing a simple app to play with ContentProvider, I have a db, a ContentProvider, a main activity, a class that forwards commands to the ContentProvider using ContentResolver. On the gui I just want to display all items stored in the db. I created this project from scratch and when creating the Activity, the main layout had a CoordinatorLayout, with a AppBarLayout, and that is fine, I created a ListView and everything work except that the AppBarLayout overlaps the ListView, below the first item of the listview is hiding by the AppBarLayout.
  <a href="https://i.stack.imgur.com/6BI1L.png"><img src="https://i.stack.imgur.com/6BI1L.png" alt="enter image description here"></a></p>
  
  <p>I tried to use <code>android:layout_below</code> for my ListView but it does not work, if I use <code>android:layout_marginTop</code> then my ListView is under the AppBarLayout but I do not find this solution nice.</p>
  
  <p>Is there no clean easy way to have ListView under the AppBarLayout?</p>
  
  <p>below my activity_main layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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:background="@color/holo_light_background"
      android:fitsSystemWindows="true"
      tools:context=".MainActivity"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/bar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              android:theme="@style/AppTheme.AppBarOverlay"
              app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;ListView
          android:id="@+id/list"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/bar"/&gt;
  
  
      &lt;android.support.design.widget.FloatingActionButton ...&gt;
  
      &lt;android.support.design.widget.FloatingActionButton ...&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>