Toolbar fills the whole screen
<p>I'm new to the drawer layout and the use of fragments.</p>

<p>I used the <a href="https://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow">tutorial</a> on creating an activity with a <code>DrawerLayout</code>.
It gave me a nullpointer on <code>getActionBar()</code>, so I added <a href="https://developer.android.com/training/appbar/setting-up.html" rel="nofollow">a toolbar</a> to the activity main and used <code>getSupportActionBar()</code> instead.</p>

<p>Now it looks like the toolbar fills the entire screen, because the title is in the middle of the screen and the background of the toolbar is on the whole screen too. Here is the xml code:</p>

<pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;
    &lt;!-- Toolbar --&gt;
    &lt;android.support.v7.widget.Toolbar
        android:id="@+id/my_toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        android:elevation="4dp"
        android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /&gt;
    &lt;!-- The main content view --&gt;
    &lt;FrameLayout
        android:id="@+id/content_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#FFFFFF" /&gt;
    &lt;!-- The navigation drawer --&gt;
    &lt;ListView
        android:id="@+id/left_drawer"
        android:layout_width="240dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:background="#FFFFFF"
        android:choiceMode="singleChoice"
        android:divider="@android:color/transparent"
        android:dividerHeight="0dp" /&gt;
&lt;/android.support.v4.widget.DrawerLayout&gt;
</code></pre>

<p>I've tried replacing the layout_height with 56dp and i've tried making a seperate layout file with the toolbar in it and include it into this xml, but that didn't work. </p>

<p>Why is my Toolbar filling the entire screen?</p>