title: ConstraintLayout, when constraint dependent view is gone, the layout view behave weirdly
body: <p>I'm using ConstraintLayout where I will show as below</p>
  
  <p><a href="https://i.stack.imgur.com/lA0fl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lA0fl.png" alt="enter image description here"></a></p>
  
  <p>I would like to hide <code>First</code> (using gone), and which the view I expect to be as below (where ElasticBody will stretch over to use up the original <code>First</code> view space as well.</p>
  
  <p><a href="https://i.stack.imgur.com/GzcOZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GzcOZ.png" alt="enter image description here"></a></p>
  
  <p>However, when I actual set <code>First</code> to <code>gone</code>, my view turn out to be as below (all image as from Android Studio Design view). My <code>Elastic Body</code> is missing as well, and the height expanded weirdly.</p>
  
  <p><a href="https://i.stack.imgur.com/XINt0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XINt0.png" alt="enter image description here"></a></p>
  
  <p>My layout code as below</p>
  
  <pre><code>&lt;android.support.constraint.ConstraintLayout 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"
      android:padding="16dp"&gt;
  
      &lt;TextView
          android:id="@+id/txt_first"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="#0ff"
          android:text="First"
          android:visibility="gone"
          android:textSize="26sp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toStartOf="@+id/txt_body"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;TextView
          android:id="@+id/txt_body"
          android:layout_width="0dp"
          android:background="#f0f"
          android:layout_height="wrap_content"
          android:text="Elastic Body"
          android:textSize="26sp"
  
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toStartOf="@+id/txt_tail"
          app:layout_constraintStart_toEndOf="@+id/txt_first"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;TextView
          android:id="@+id/txt_tail"
          android:background="#ff0"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Tail"
          android:textSize="26sp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toEndOf="@+id/txt_body"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>(Note, if you remove the <code>gone</code>, you'll get the first image view).
  Why is this so? How could I fix it where when my <code>First</code> is gone, I could the <code>Elastic Body</code> stretch out correctly? </p>
  
  <p>p/s: I know how to do it in LinearLayout and RelativeLayout... but wonder if this is a limitation on ConstraintLayout?</p>