title: Issue with adding layout at bottom of LinearLayout with Coordinator layout
body: <p>I am working on chat screen, and using RecyclerView to show chat messages. I need to show a Note messages at top of recycler view that will scroll off the screen when chat list is scrolled. Here is layout that I am using. </p>
  
  <pre><code>&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"&gt;
  
  &lt;android.support.v7.widget.Toolbar
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:layout_alignParentTop="true"
      android:background="@color/color_toolbar_background"
      android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
      app:contentInsetEnd="0dp"
      app:contentInsetLeft="0dp"
      app:contentInsetRight="0dp"
      app:contentInsetStart="0dp"
      app:popupTheme="@style/ThemeOverlay.AppCompat.Light"&gt;
  
  
      &lt;ImageView
          android:id="@+id/imageViewBack"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:padding="@dimen/dimen_16dp"
          android:src="@drawable/ic_back_black"/&gt;
  
      &lt;TextView
          android:id="@+id/textViewTitle"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerInParent="true"
          android:layout_gravity="center"
          android:gravity="center"
          android:text="Title"
          android:textColor="@color/color_black_text"
          android:textSize="@dimen/dimen_17sp"/&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;android.support.design.widget.CoordinatorLayout
              android:layout_width="match_parent"
              android:layout_height="@dimen/dimen_0dp"
              android:layout_weight="1"&gt;
  
  
              &lt;android.support.design.widget.AppBarLayout
                  android:id="@+id/appBarLayout"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:background="@color/color_white"
                  android:elevation="@dimen/dimen_0dp"
                  android:visibility="visible"
                  app:elevation="@dimen/dimen_0dp"
                  tools:visibility="visible"&gt;
  
                  &lt;!-- Layout that should scroll off the screen--&gt;
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:background="#EE9F06"
                      android:orientation="vertical"
                      android:padding="@dimen/dimen_16dp"
                      app:layout_scrollFlags="scroll|enterAlwaysCollapsed"&gt;
  
  
                      &lt;TextView
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:text="lorem ipsum dolor set amet lorem ipsum dolor set amet."
                          android:textColor="@color/color_white"
                          android:textSize="@dimen/dimen_12sp"/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;!-- Progress bar to shown while loding previous messages --&gt;
                  &lt;include
                      layout="@layout/layout_load_more_progress"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@id/appBarLayout"
                      android:layout_gravity="center"
                      android:visibility="gone"
                      tools:visibility="visible"/&gt;
  
              &lt;/android.support.design.widget.AppBarLayout&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/recyclerViewChat"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:clipToPadding="false"
                  android:overScrollMode="never"
                  android:scrollbars="none"
                  app:layout_behavior="@string/appbar_scrolling_view_behavior"/&gt;
  
  
          &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
          &lt;!-- layout for sending message should be at bottom--&gt;
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_gravity="bottom"
              android:orientation="vertical"&gt;
  
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentBottom="true"
                  android:background="@color/color_toolbar_background"
                  android:orientation="horizontal"&gt;
  
                  &lt;EditText
                      android:id="@+id/editTextMessage"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center"
                      android:layout_marginBottom="@dimen/dimen_10dp"
                      android:layout_marginLeft="@dimen/dimen_16dp"
                      android:layout_marginTop="@dimen/dimen_10dp"
                      android:layout_weight="1"
                      android:background="@drawable/drawable_chat_send_message_background"
                      android:hint="@string/string_hint_send_message"
                      android:inputType="textMultiLine|textNoSuggestions"
                      android:minHeight="@dimen/dimen_32dp"
                      android:paddingLeft="@dimen/dimen_5dp"
                      android:paddingRight="@dimen/dimen_5dp"
                      android:textColorHint="@color/color_chat_send_message_border"
                      android:textSize="@dimen/dimen_17sp"/&gt;
  
                  &lt;TextView
                      android:id="@+id/textViewSend"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="bottom"
                      android:clickable="true"
                      android:padding="@dimen/dimen_16dp"
                      android:text="@string/string_send"
                      android:textColor="@color/color_accent"
                      android:textSize="@dimen/dimen_17sp"/&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;!--Progress bar occupying complete screen below Toolbar --&gt;
      &lt;include
          layout="@layout/layout_progress_bar_full_screen"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:visibility="gone"
          tools:visibility="visible"/&gt;
  &lt;/RelativeLayout&gt;&lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My problem is last message from the chat is hidden behind the send message layout. I need to scroll recycler view to see the last message.
  I am using <strong>com.android.support:design:23.2.0</strong>. Also I have set <strong>linearLayoutManager.setStackFromEnd(true)</strong> for the recycler view.
  So how should I avoid last message being hidden by Send message layout?</p>