title: floating action button overlaping bottom navigation in android
body: <p>I'm making an app where my floating action button is overlaping my bottom navigation bar i'm trying to put fab above navigation bar but it is not working fab is overlaping bottom navigation bar below is xml file
  I searched on SO but didnt get any proper solution please any help would be appreciated</p>
  
  <p>i have made a separate xml for bottom naigation layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
      &lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/navigation"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:background="?android:attr/windowBackground"
          app:menu="@menu/navigation"
          android:backgroundTint="@color/nav_color"
          app:itemIconTint="@color/bottom_nav_fore_color"/&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>And here is xml for activity main</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      android:background="@color/colorPrimary"&gt;
  
  &lt;com.ct.listrr.widget.BounceScrollView
      android:layout_height="match_parent"
      android:id="@+id/scrollview"
      android:layout_width="match_parent"
      android:fitsSystemWindows="true"
      android:fillViewport="true"
      xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &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:layout_height="match_parent"
      android:orientation="vertical"
      tools:context="com.ct.listrr.MainActivity"
  
      &gt;
  
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/viewpager"
          android:layout_width="330dp"
          android:layout_height="340dp"
          android:layout_marginTop="10dp"
          android:layout_marginLeft="25dp"
          tools:layout_editor_absoluteX="8dp"
          tools:layout_editor_absoluteY="8dp" /&gt;
  
      &lt;LinearLayout
          android:id="@+id/club_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;
          &lt;com.ct.listrr.widget.CustomTextViewMedium
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="50"
              android:textSize="40sp"
              android:text="Clubs"
              android:layout_marginLeft="10dp"
              android:layout_marginTop="15dp"
              android:textColor="@color/White"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/clubrecycler_view"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
          &lt;/android.support.v7.widget.RecyclerView&gt;
  
      &lt;/LinearLayout&gt;
  
  
      &lt;LinearLayout
          android:id="@+id/lounge_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;
          &lt;com.ct.listrr.widget.CustomTextViewMedium
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="50"
              android:textSize="40sp"
              android:text="Lounge"
              android:layout_marginLeft="10dp"
              android:layout_marginTop="15dp"
              android:textColor="@color/White"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/loungerecycler_view"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
          &lt;/android.support.v7.widget.RecyclerView&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/cafe_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;
          &lt;com.ct.listrr.widget.CustomTextViewMedium
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="50"
              android:textSize="40sp"
              android:text="Cafe"
              android:layout_marginLeft="10dp"
              android:layout_marginTop="15dp"
              android:textColor="@color/White"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/caferecycler_view"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
          &lt;/android.support.v7.widget.RecyclerView&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/rooftop_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;
          &lt;com.ct.listrr.widget.CustomTextViewMedium
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="50"
              android:textSize="40sp"
              android:text="RoofTop"
              android:layout_marginLeft="10dp"
              android:layout_marginTop="15dp"
              android:textColor="@color/White"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:id="@+id/layout_recycle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/rooftoprecycler_view"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
          &lt;/android.support.v7.widget.RecyclerView&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/com.ct.listrr.widget.BounceScrollView&gt;
  
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_alignParentRight="true"
          android:src="@drawable/ic_my_icon"
          android:layout_margin="16dp"
          app:rippleColor="@color/colorAccent"/&gt;
      &lt;include layout="@layout/bottom_nav_bar"
          android:id="@+id/bottom_nav_bar"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"
          android:layout_alignParentBottom="true"
          /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>