Android widget AppBarLayout always comes on top
<p>Hi I am developing small android application in which I am trying to display tool-bar with <code>AppBarLayout</code>. I want to display some view on top of my tool-bar. I tried this in following way : </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&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="com.example.nileshkashid.samplesearchbarapplication.Main2Activity"&gt;

    &lt;android.support.design.widget.AppBarLayout
        android:id="@+id/toolbar_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        &gt;
        &lt;android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="@android:color/transparent"
            /&gt;

    &lt;/android.support.design.widget.AppBarLayout&gt;

    &lt;RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:background="@android:color/holo_red_dark"
        &gt;&lt;/RelativeLayout&gt;

    &lt;RelativeLayout
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:background="@android:color/holo_green_dark"
        &gt;&lt;/RelativeLayout&gt;


&lt;/RelativeLayout&gt;
</code></pre>

<p>So in above layout later both relative layouts comes under my <code>AppBarLayout</code>. But I want to show them on top of my <code>toolbar_view</code>. Am I missing anything or doing something wrong. Need some help. Thank you.</p>