title: Android coordinatorlayout add layout below RecyclerView
body: <p>To be able to support the bottom sheet behavior
  I have to add my <code>entry_field</code> layout below the <code>RecyclerView</code>.
  The <code>layout_anchor</code> will not work correctly.
  In this case, the <code>entry_field</code> will block the <code>RecyclerView</code>.</p>
  
  <p>I want the <code>RecyclerView</code> to fill the reset of the spaces and resize with the entry_field</p>
  
  <p>If the <code>entry_field</code> height changes, the <code>RecyclerView</code> should always fit the reset of the space, not blocked by the <code>entry_field</code> </p>
  
  <p>The <code>entry_field</code> MUST to be the direct child of the <code>CoordinatorLayout</code> </p>
  
  <pre><code>&lt;androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:background="@color/background_gray_lightest"&gt;
  
  &lt;androidx.recyclerview.widget.RecyclerView
      android:id="@+id/messaging_recycler_view"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:clipToPadding="false"
      android:overScrollMode="ifContentScrolls"
      android:paddingTop="8dp"
      android:paddingBottom="10dp"
      android:scrollbars="vertical"
      android:layout_gravity="top"
      tools:listitem="@layout/item_message" /&gt;
  
  &lt;RelativeLayout
      android:id="@+id/entry_field"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom"
      app:layout_anchor="@id/messaging_recycler_view"
      app:layout_anchorGravity="bottom"&gt;
  
      &lt;com.abc.newmessage.NewMessageLayout
          android:id="@+id/include_message_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          &gt;
      &lt;/com.abc.newmessage.NewMessageLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>