Toolbar takes full screen in Android Navigation Drawer
<p>I made a toolbar:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="80dp"
    android:background="#FF5722"
    &gt;
&lt;/android.support.v7.widget.Toolbar&gt;
</code></pre>

<p>The problem is when I include this in my <code>main_activity.xml</code> like below:</p>

<pre><code>&lt;android.support.v4.widget.DrawerLayout

    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/DrawerLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:elevation="7dp"&gt;


&lt;!--&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"&gt;

    &lt;span style="font-size: x-small;"&gt;&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"

    tools:context=".MainActivity"&gt;--&gt;

    &lt;include
        android:id="@+id/tool_bar"
        layout="@layout/tool_bar"
        android:layout_height="80dp"
        android:layout_width="match_parent"
        /&gt;



        &lt;android.support.v7.widget.RecyclerView
            android:id="@+id/RecyclerView"
            android:layout_width="320dp"
            android:layout_height="match_parent"
            android:layout_gravity="left"
            android:background="#ffffff"
            android:scrollbars="vertical"&gt;
        &lt;/android.support.v7.widget.RecyclerView&gt;
&lt;/android.support.v4.widget.DrawerLayout&gt;
</code></pre>

<p>It takes the full screen of the main activity.. but I have given the height of the toolbar as just 80dp.</p>

<p>How can I solve this?</p>