title: Android Constraint Layout Dimension Ratio Not Working with Wrap Content
body: <p>Hi I just want to display two textviews in constraint layout like below</p>
  
  <p><a href="https://i.stack.imgur.com/Nm9H4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nm9H4.jpg" alt="enter image description here"></a></p>
  
  <p>What I have done so far is horizontally chain these textviews and since I need them to be squares, set the size as a ratio (constraintDimensionRatio). 
  This is the code. </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="match_parent"&gt;
  
  &lt;TextView
      android:id="@+id/textView3"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:layout_marginBottom="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="8dp"
      android:background="@color/colorBlueGrey"
      android:text="TextView"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintDimensionRatio="1:1"
      app:layout_constraintEnd_toStartOf="@+id/textView8"
      app:layout_constraintHorizontal_chainStyle="packed"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.0" /&gt;
  
  &lt;TextView
      android:id="@+id/textView8"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:layout_marginBottom="8dp"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="8dp"
      android:background="@color/colorBrown"
      android:text="TextView"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintDimensionRatio="1:1"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toEndOf="@+id/textView3"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.0" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Now the issue is when I'm changing the <strong>constraint layout's</strong> </p>
  
  <blockquote>
    <p>layout_height</p>
  </blockquote>
  
  <p>into </p>
  
  <blockquote>
    <p>wrap_content</p>
  </blockquote>
  
  <p>like this,</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"&gt;
  </code></pre>
  
  <p>It will display like below.</p>
  
  <p><a href="https://i.stack.imgur.com/FF9QP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FF9QP.jpg" alt="enter image description here"></a> </p>
  
  <p>Yep. It won't display at all. <strong>Any idea to fix this?</strong> 
  I'm using constraint-layout:1.1.0.</p>