title: ConstraintLayout, TextView and ImageView with Horizontal Alignment and Auto Sizing
body: <p>I have been facing a problem and believe it is a set of multiple incorrect positioning choices, some information before:</p>
  
  <p>1 - Drawable image has larger width and height than it fits.
  2 - TextView text is dynamic but it should never be more than one line, if it is more than one line it should be "cut".</p>
  
  <p>I have the following code:</p>
  
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
          &lt;TextView
              android:id="@+id/title"
              app:layout_constraintTop_toTopOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintEnd_toStartOf="@id/icon"
              android:text="my small text"
              android:lines="1"
              android:layout_width="0dp"
              android:layout_height="wrap_content"/&gt;
  
          &lt;TextView
              android:id="@+id/description"
              app:layout_constraintTop_toBottomOf="@id/title"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintEnd_toStartOf="@id/icon"
              android:text="description text"
              android:layout_width="0dp"
              android:layout_height="wrap_content"/&gt;
  
          &lt;ImageView
              android:id="@+id/icon"
              app:layout_constraintStart_toEndOf="@id/title"
              app:layout_constraintTop_toTopOf="@id/title"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintBottom_toBottomOf="@id/description"
              android:adjustViewBounds="true"
              android:scaleType="fitEnd"
              android:src="@drawable/ic_print"
              app:layout_constrainedWidth="true"
              app:layout_constrainedHeight="true"
              android:padding="8dp"
              android:layout_width="0dp"
              android:layout_height="0dp"/&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>Some explanations: As the image is very large and I need it positioned to the left I use <strong>android:scaleType="fitEnd"</strong> and <strong>android:padding="8dp"</strong>.</p>
  
  <p>The result is satisfactory:</p>
  
  <p><a href="https://i.stack.imgur.com/gDCo6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDCo6.png" alt="enter image description here"></a></p>
  
  <p>Problem:</p>
  
  <p><strong>When I put very large text in my title I would like it to "push" ImageView to its limit when it is actually limiting itself to 50%.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/mYQZB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mYQZB.png" alt="enter image description here"></a></p>
  
  <p>It's like my ImageView has a "fixed" width when I'm actually using "match contraints with 0dp"</p>
  
  <p>I already tried to add app:layout_constrainedWidth="true" to id: title and id: description (unsuccessfully)</p>