title: Fragment content is hidden behind BottomNavigationView when scrolling
body: <p>I've researched through this quite heavily and am at a loss on what to do - I have some content in a fragment that is being clipped off by the BottomNavigation bar in the activity and am not sure what to do.  I've tried adding <code>app:layout_behavior="@string/appbar_scrolling_view_behavior"</code> to the NestedScrollView but the bottom piece of the content (the names of the locations) is still being cut off - there's probably an easy fix for this but I can't figure it out.  The XML for my main activity and the "home" fragment is as follows:</p>
  
  <p>activity_home.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/home_screen"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;include layout="@layout/app_bar" /&gt;
  
      &lt;FrameLayout
          android:id="@+id/fragment_container"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"/&gt;
  
      &lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/bottom_nav"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="start"
          android:background="@color/navbarBackground"
          app:menu="@menu/bottom_nav_menu" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>home_fragment.xml</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"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/home_fragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:layout_editor_absoluteX="0dp"
      tools:layout_editor_absoluteY="0dp"&gt;
  
      &lt;ImageView
          android:id="@+id/tokyo_placeholder"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:adjustViewBounds="true"
          android:scaleType="fitStart"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:srcCompat="@drawable/main_screen_placeholder" /&gt;
  
      &lt;ImageView
          android:id="@+id/airplane_icon"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/circle_background"
          app:layout_constraintBottom_toBottomOf="@+id/tokyo_placeholder"
          app:layout_constraintLeft_toLeftOf="@+id/tokyo_placeholder"
          app:layout_constraintRight_toRightOf="@+id/tokyo_placeholder"
          app:layout_constraintTop_toTopOf="@+id/tokyo_placeholder"
          app:srcCompat="@drawable/icons8_airplane_48"
          tools:layout_constraintBottom_creator="1"
          tools:layout_constraintLeft_creator="1"
          tools:layout_constraintRight_creator="1"
          tools:layout_constraintTop_creator="1" /&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/scroll_view"
          android:layout_width="0dp"
          android:layout_height="286dp"
          android:layout_marginBottom="@dimen/app_bar_height"
          android:layout_marginStart="5dp"
          android:layout_marginTop="5dp"
          android:fillViewport="true"
          app:layout_constraintBottom_toTopOf="@id/bottom_nav"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/tokyo_placeholder"
          tools:layout_constraintLeft_creator="1"
          tools:layout_constraintRight_creator="1"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
              &lt;TextView
                  android:id="@+id/destination_headline"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/featured_destinations_headline"
                  android:textAllCaps="true"
                  android:textAppearance="@style/TextAppearance.AppCompat.Headline"
                  android:textSize="14sp"
                  android:textStyle="bold" /&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/featured_destinations_recycler_view"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/destination_headline" /&gt;
  
              &lt;TextView
                  android:id="@+id/saved_trips_headline"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/featured_destinations_recycler_view"
                  android:fontFamily="sans-serif"
                  android:text="@string/saved_trips"
                  android:textAllCaps="true"
                  android:textAppearance="@style/TextAppearance.AppCompat.Headline"
                  android:textSize="14sp"
                  android:textStyle="bold" /&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/saved_trips_recycler_view"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@id/saved_trips_headline" /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>app_bar.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/app_bar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:elevation="4dp"
      android:background="#fff"
      android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
      android:popupTheme="@style/ThemeOverlay.AppCompat.Light"/&gt;
  </code></pre>
  
  <p>As an example to show what I mean, <a href="https://i.imgur.com/PhhlyMr.png" rel="nofollow noreferrer">here is the content when the navigation bar is moved out of the way</a> and <a href="https://i.imgur.com/Fov38kq.png" rel="nofollow noreferrer">here is the content with the bar in the way</a>. I'm thinking that the problem is some sort of margin/padding issue, but can't quite figure out what to fix.</p>
  
  <p><strong>Edit:</strong> I've create a repository with the relevant code (and a workable emulator example) <a href="https://github.com/epitone/test_proj" rel="nofollow noreferrer">here</a> - please be aware that the code is written in Kotlin, but I don't imagine the issue lies witihn any of the actual code, but more within the layout</p>