title: Constraint Layout - Textview overlaps other views when it grows in size
body: <p><a href="https://i.stack.imgur.com/kUvpU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kUvpU.png" alt="This is how i want layout to look like."></a></p>
  
  <p>Above image shows how i want my view to look like.
  Problem is when upper gravity text increases in size it pushes the image out off the view. I tried using barriers, but couldn't make it work.
  Below image shows, how far i have come to achieving this. But now that problem is images are always stuck at the end. But i want it to be right next to gravity text and when that text increase,it should stuck at the end and gravity text should grow in height.</p>
  
  <p><a href="https://i.stack.imgur.com/5XkOF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5XkOF.png" alt="Current working code image"></a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 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:id="@+id/constraintLayout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;android.support.constraint.ConstraintLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:padding="@dimen/dp_4"&gt;
  
              &lt;TextView
                  android:id="@+id/last_msg_tv"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="8dp"
                  android:layout_marginEnd="8dp"
                  android:layout_marginBottom="8dp"
                  android:textAlignment="viewStart"
                  android:textColor="@color/color_grey_3"
                  android:textSize="@dimen/sp_12"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintEnd_toEndOf="@+id/barrier9"
                  app:layout_constraintHorizontal_bias="0.0"
                  app:layout_constraintStart_toStartOf="@+id/title_tv"
                  app:layout_constraintTop_toBottomOf="@+id/title_tv"
                  tools:text="In the future, Earth is slowly becoming uninhabitable. Ex-NASA pilot Cooper, along with a team of researchers, is sent on a planet exploration mission to report which planet can sustain life." /&gt;
  
              &lt;TextView
                  android:id="@+id/title_tv"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_marginStart="16dp"
                  android:layout_marginTop="8dp"
                  android:layout_marginEnd="8dp"
                  android:textColor="@color/color_grey_2"
                  android:textSize="@dimen/sp_16"
                  android:textStyle="bold"
                  app:layout_constraintEnd_toStartOf="@+id/imageView4"
                  app:layout_constraintHorizontal_bias="0.0"
                  app:layout_constraintStart_toStartOf="parent"
                  app:layout_constraintTop_toTopOf="parent"
                  tools:text="Alpha CapriCod A" /&gt;
  
              &lt;ImageView
                  android:id="@+id/imageView4"
                  android:layout_width="@dimen/dp_24"
                  android:layout_height="@dimen/dp_24"
                  android:layout_marginEnd="8dp"
                  android:tint="@color/color_grey_5"
                  app:layout_constraintEnd_toStartOf="@+id/user_count_tv"
                  app:layout_constraintTop_toTopOf="@+id/title_tv"
                  app:srcCompat="@drawable/mutiple_user_img" /&gt;
  
              &lt;TextView
                  android:id="@+id/user_count_tv"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginEnd="8dp"
                  app:layout_constraintBottom_toBottomOf="@+id/imageView4"
                  app:layout_constraintEnd_toEndOf="@+id/barrier9"
                  app:layout_constraintTop_toTopOf="@+id/imageView4"
                  tools:text="1000" /&gt;
  
              &lt;android.support.constraint.Barrier
                  android:id="@+id/barrier9"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  app:barrierDirection="left"
                  tools:layout_editor_absoluteX="387dp"
                  tools:layout_editor_absoluteY="8dp" /&gt;
  
          &lt;/android.support.constraint.ConstraintLayout&gt;
  
      &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>