title: How to center view below CollapsingToolbarLayout inside CoordinatorLayout
body: <p>When having a CollapsingToolbarLayout inside CoordinatorLayout you need to use app:layout_behavior="@string/appbar_scrolling_view_behavior" so the view below the toolbar moves down the height of the toolbar, but in that case this view below the toolbar goes beyond the window itself on the bottom, thus if I want to center something in it between the toolbar and the bottom of the screen it's not really possible?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;androidx.coordinatorlayout.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:orientation="vertical"&gt;
  
      &lt;include layout="@layout/generic_toolbar_collapsing" /&gt;
  
      &lt;LinearLayout
          android:id="@+id/fragment_container"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;TextView
              android:id="@android:id/empty"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:gravity="center"
              android:text="@string/list_view_empty_string"
              android:visibility="gone"
              tools:visibility="visible" /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>And here a screenshot from the layout editor:</p>
  
  <p><a href="https://i.stack.imgur.com/lPLf9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lPLf9.png" alt="enter image description here"></a></p>
  
  <p>The selected view on the picture is the LinearLayout, you can see how the dots go beyond the bottom window line, so the text is centered inside the view, but not centered relative to the toolbar and the bottom of the window, is it possible to achieve this?</p>