title: Constrain two items to top and bottom inside linear layout
body: <p>I have a constraint layout and inside an image and a linear layout. The linear layout contains two text views which I would like to appear on top and bottom of the linear layout constrains:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout
      android:id="@+id/chatLayout"
      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="wrap_content"&gt;
  
      &lt;ImageView
          android:id="@+id/chatPictureIV"
          android:layout_width="@dimen/chat_image_size"
          android:layout_height="@dimen/chat_image_size"
          android:scaleType="centerInside"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="@dimen/chat_image_size"
          android:orientation="vertical"
          app:layout_constraintStart_toEndOf="@+id/chatPictureIV"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;TextView
              android:id="@+id/chatNameTV"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Top"
              android:layout_gravity="top"
              android:textStyle="bold"
              android:textSize="18sp" /&gt;
  
          &lt;TextView
              android:id="@+id/chatStatusTV"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"
              android:text="Bottom"
              android:textSize="18sp" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>However the second text view appears indeed underneath the first one, but not constrained to the bottom of the linear layout:</p>
  
  <p><a href="https://i.stack.imgur.com/qicbd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qicbd.png" alt="enter image description here"></a></p>
  
  <p>How can I constrain the bottom text to the bottom of the linear layout?</p>