title: Include Floating Action Button on top of ListView
body: <p>I am trying to add a floating action button in one of my layouts. i created a separate layout for the floating action button to be included in the main layout of mine. but whenever i include it, it is not on top of the listview.</p>
  
  <p>Floating Action Button XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent" android:layout_height="match_parent"&gt;
  
  &lt;android.support.design.widget.FloatingActionButton
      android:id="@+id/floatingActionButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_alignParentEnd="true"
      android:layout_marginBottom="23dp"
      android:layout_marginEnd="22dp"
      android:clickable="true"
      app:fabSize="mini"
      app:srcCompat="@android:drawable/ic_menu_add" /&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Activity layout:</p>
  
  <pre><code>&lt;LinearLayout 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:orientation="vertical"
  android:layout_height="match_parent"
  tools:context=".MainActivity"
  android:weightSum="1"
  android:background="@color/BG_beige"&gt;
  
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="44dp"
      android:orientation="horizontal"
      android:paddingLeft="5dp"
      android:paddingRight="5dp"
      android:paddingTop="10dp"&gt;
  
      &lt;TextView
          android:id="@+id/textView17"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1.58"
          android:text="Name"
          android:textSize="20sp"/&gt;
  
      &lt;TextView
          android:id="@+id/textView15"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:text="Price"
          android:textSize="20sp"/&gt;
  
      &lt;TextView
          android:id="@+id/textView19"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="0.51"
          android:text="Paid"
          android:textSize="20sp"
          android:gravity="center"/&gt;
  
  
  
  &lt;/LinearLayout&gt;
  
  &lt;ListView
      android:id="@+id/list"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;include
      layout="@layout/utility_fab"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      /&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>So the resulting layout is this:
  <a href="https://i.stack.imgur.com/iDhUG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iDhUG.png" alt="Main Layout"></a></p>