title: How to make include tag between 2 elements?
body: <p>I have this layout as below. The include tag contains my fragment. And i want to make sure that it is between my appbarlayout and bottomnavigationview. But currently the include tag will extend behind bottomnavigationview. How can i make sure that the include tag will not extend behind my appbarlayout and bottomnavigationview? Thank you in advance<img src="https://i.stack.imgur.com/447Lp.png" alt="![My current layout. The include tag extend behind the bottomnavigationview">]<a href="https://i.stack.imgur.com/447Lp.png" rel="nofollow noreferrer">1</a></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout 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"
      tools:context="co.xtvt.xtvt.ActivityDashboard"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"
          android:animateLayoutChanges="true"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;android.support.design.widget.TabItem
                  android:id="@+id/tabExploreActivitis"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/activities" /&gt;
  
              &lt;android.support.design.widget.TabItem
                  android:id="@+id/tabExplorePeople"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/people" /&gt;
  
              &lt;android.support.design.widget.TabItem
                  android:id="@+id/tabExploreGroups"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/groups" /&gt;
  
              &lt;android.support.design.widget.TabItem
                  android:id="@+id/tabExplorePosts"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/posts" /&gt;
  
          &lt;/android.support.design.widget.TabLayout&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/container"
          android:animateLayoutChanges="true"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
      &lt;include layout="@layout/content_dashboard" /&gt;
  
      &lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/bottomNavigation"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginEnd="0dp"
          android:layout_marginStart="0dp"
          android:background="?android:attr/windowBackground"
          android:layout_gravity="bottom|end"
          app:menu="@menu/bottom_bar_navigation" /&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|end"
          android:layout_marginTop="@dimen/fab_margin_top"
          android:layout_marginRight="@dimen/fab_margin_right"
          android:layout_marginLeft="@dimen/fab_margin_left"
          android:layout_marginBottom="@dimen/fab_margin_bottom"
          app:srcCompat="@android:drawable/ic_menu_add" /&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>