Cannot position floating action button to bottom right of the screen
<p>For a strange reason my floating action button wont go down to the lower right portion of my android activity which is suppose to be its default behavior.</p>

<p>What did I do wrong in my layout.xml ?</p>

<pre><code>&lt;android.support.design.widget.FloatingActionButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="16dp"
        android:clickable="true"
        android:src="@android:drawable/ic_menu_myplaces" /&gt;
</code></pre>

<p><strong>BELOW IS MY WHOLE LAYOUT</strong></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"
    xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="100dp"
    android:paddingBottom="@dimen/activity_vertical_margin"
    app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:showIn="@layout/app_bar_main"
    tools:context=".MainActivity"
    android:elevation=".5dp"
    android:background="@drawable/trizbg"
    android:focusable="true"&gt;

    &lt;ImageView
        android:id="@+id/imgLogo"
        android:layout_width="250dp"
        android:layout_height="150dp"
        android:src="@drawable/h_biglogo"
        android:paddingTop="8.5dp"
        android:paddingBottom="8.5dp"
        android:paddingLeft="12dp"
        android:paddingRight="12dp"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignRight="@+id/hiaTextField"
        android:layout_alignEnd="@+id/hiaTextField"
        android:layout_above="@+id/hiaTextField" /&gt;

    &lt;EditText
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/hiaTextField"
        android:selectAllOnFocus="true"
        android:textColorHint="#ffffffff"
        android:hint="Tell us where you're going"
        android:drawableLeft="@android:drawable/ic_search_category_default"
        android:text=""
        android:autoText="false"

        android:layout_gravity="center_horizontal|bottom"
        android:padding="12dip"
        android:background="#AA000000"
        android:textColor="#ffffffff"
        android:layout_centerVertical="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true" /&gt;


    &lt;Button
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="SEARCH"
        android:id="@+id/hiaButton"
        android:onClick="hiaSubmitClick"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"

        android:layout_below="@+id/hiaTextField"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:textSize="18sp"
        android:textColor="@color/colorWhite"

        android:alpha="20"
        android:layout_alignRight="@+id/hiaTextField"
        android:layout_alignEnd="@+id/hiaTextField"    
        android:background="@drawable/buttonround"/&gt;   

    &lt;android.support.design.widget.FloatingActionButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:layout_margin="16dp"
        android:clickable="true"
        android:src="@android:drawable/ic_menu_myplaces" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>Below is the screenshot
<a href="https://i.stack.imgur.com/MvS3Z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MvS3Z.jpg" alt="enter image description here"></a></p>