title: How to have a textview transition to the title in a collapsing toolbar?
body: <p>I have a <code>CollapsingToolbarLayout</code> that contains a <code>TextView</code> and a <code>RatingBar</code> under the <code>TextView</code>. Would it be possible to have the <code>TextView</code> somehow transition to the title?</p>
  
  <p>My current layout looks like this: <a href="https://i.stack.imgur.com/dcRYP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dcRYP.png" alt="enter image description here"></a></p>
  
  <p>I want "Title" to transition up as the toolbar collapses. There will also be a back button, so how would I ensure that the textview transitions to the proper place (to the right side of the back button)?</p>
  
  <p>EDIT: Here is my XML</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
  android:id="@+id/main_content"
  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:fitsSystemWindows="true"&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="@dimen/detail_view_app_bar_height"
      android:fitsSystemWindows="true"
      android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
      &lt;android.support.design.widget.CollapsingToolbarLayout
          android:id="@+id/collapsing_toolbar_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fitsSystemWindows="true"
          app:contentScrim="?attr/colorPrimary"
          app:expandedTitleTextAppearance="@style/CollapsingToolbarLayoutExpandedTextStyle"
          app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
          &lt;ImageView
              android:id="@+id/image"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:fitsSystemWindows="true"
              android:scaleType="centerCrop"
              app:layout_collapseMode="parallax"/&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"
              android:layout_marginLeft="@dimen/double_margin"
              android:gravity="center_vertical"
              android:orientation="vertical"
              app:layout_collapseMode="parallax"&gt;
  
              &lt;TextView
                  android:id="@+id/title"
                  fontPath="fonts/OpenSans-Bold.ttf"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Title"
                  android:textColor="@android:color/white"
                  android:textSize="@dimen/large_text"/&gt;
  
              &lt;RatingBar
                  android:id="@+id/rating_bar"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"/&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>