title: Fixed view in ViewPager's content layout, under CoordinatorLayout
body: <p>My app has an <code>Activity</code> with <code>TabLayout</code>, and 3 <code>Fragments</code>. In <code>Activity's</code> layout, I have <code>CoordinatorLayout</code> with <code>ViewPager</code>. I need to animate <strong><em>toolbar</em></strong> as well.
  Now In Fragments layout, I need to put a fixed TextView at the bottom.
  Given below is the <code>XML</code> of activity and fragment.</p>
  
  <blockquote>
    <p>I am facing the problem that this fixed <code>TextView</code> in Fragment's
    layout is going under the bottom navigation bar and is scrolling also,
    that I don't want.</p>
  </blockquote>
  
  <p>How can achieve this ?</p>
  
  <p><strong>activity.xml</strong></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:id="@+id/clMain"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/appbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&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:layout_scrollFlags="scroll|enterAlways|snap"
              app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
  
              &lt;TextView
                  android:id="@+id/toolbar_title"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/app_name"
                  android:textColor="#FFFFFF"
                  android:textSize="22sp"
                  android:textStyle="bold" /&gt;
          &lt;/android.support.v7.widget.Toolbar&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tab_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/toolbar"
              android:background="?attr/colorPrimary"
              android:minHeight="?attr/actionBarSize"
              android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/pager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><strong>fragment.xml</strong></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:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/colorWhite"
      android:orientation="vertical"&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/rlParent"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="fill_vertical"
          android:layout_weight="1"
          android:fitsSystemWindows="true"
          android:orientation="vertical"&gt;
  
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
      &lt;TextView
          android:id="@+id/tvConfirmOrder"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/colorDarkGreen"
          android:gravity="center"
          android:padding="10dp"
          android:text="@string/confirm_order"
          android:textColor="@color/colorWhite"
          android:textSize="18sp"
          android:textStyle="bold"&gt;&lt;/TextView&gt;
  &lt;/LinearLayout&gt; 
  </code></pre>