title: How to make view "wrap_content but not larger than" with ConstraintLayout?
body: <p>I'm having 3 view in a row: title, version and imageview (working as button):</p>
  
  <ol>
  <li>title should be <code>wrap_content</code> but respecting the following rules</li>
  <li>version should be <code>wrap_content</code>, to right of the title and to left of imageview</li>
  <li>imageview has fixed size and is at right top corner of the parent</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/ywSBw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ywSBw.png" alt="enter image description here"></a></p>
  
  <p>The problem is if title is too large, the version is moved to right and rule "version is to the left of imageview" is not respected:</p>
  
  <p><a href="https://i.stack.imgur.com/FAX1l.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FAX1l.png" alt="enter image description here"></a></p>
  
  <p>So i need to limit title width and make version visible and not moved to the right.</p>
  
  <p>Here is XML:</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:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      tools:background="#b3b2b2"&gt;
  
      &lt;!--  --&gt;
      &lt;TextView
          android:id="@+id/LibraryWithVersionItem.title"
          android:layout_width="0dp"
          android:textStyle="bold"
          android:textSize="@dimen/fontSize18"
          android:textColor="@color/mySecondaryDarkColor"
          android:layout_height="wrap_content"
          android:ellipsize="middle"
          tools:text="ExampleLibrary 01234567890123456789012345"
          app:layout_constraintTop_toTopOf="parent"
          android:layout_marginTop="8dp"
          android:layout_marginLeft="8dp"
          app:layout_constraintLeft_toLeftOf="parent"
          /&gt;
  
      &lt;Spinner
          android:id="@+id/LibraryWithVersionItem.versions"
          android:layout_width="wrap_content"
          android:layout_height="0dp"
          android:textSize="@dimen/fontSize16"
          android:textColor="@color/mySecondaryDarkColor"
          tools:listitem="@layout/library_version"
          android:layout_marginTop="@dimen/margin8"
          android:layout_marginLeft="@dimen/margin8"
          android:layout_marginRight="@dimen/margin8"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintLeft_toRightOf="@+id/LibraryWithVersionItem.title"
          app:layout_constraintRight_toLeftOf="@+id/LibraryWithVersionItem.info"
          app:layout_constraintHorizontal_bias="0.0"/&gt;
  
      &lt;TextView
          android:id="@+id/LibraryWithVersionItem.sentence"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintTop_toBottomOf="@id/LibraryWithVersionItem.title"
          tools:text="Some library description in one sentence\nbut two lines"
          android:layout_marginTop="@dimen/margin8"
          android:layout_marginLeft="@dimen/margin8"
          app:layout_constraintRight_toLeftOf="@+id/LibraryWithVersionItem.install"
          android:layout_marginRight="8dp"
          app:layout_constraintHorizontal_bias="0.0"/&gt;
  
      &lt;TextView
          android:id="@+id/LibraryWithVersionItem.isInstalled"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:text="@string/LibraryManager.installed"
          android:textColor="#1a7c1a"
          android:layout_marginTop="@dimen/margin8"
          android:layout_marginBottom="@dimen/margin8"
          android:layout_marginLeft="@dimen/margin8"
          android:layout_marginRight="@dimen/margin8"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintTop_toBottomOf="@id/LibraryWithVersionItem.sentence"
          app:layout_constraintRight_toLeftOf="@+id/LibraryWithVersionItem.install"
          app:layout_constraintHorizontal_bias="0.0"/&gt;
  
      &lt;!-- information button --&gt;
      &lt;ImageView
          android:id="@+id/LibraryWithVersionItem.info"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingTop="@dimen/margin8"
          android:paddingLeft="@dimen/margin8"
          android:paddingRight="@dimen/margin8"
          android:paddingBottom="@dimen/margin8"
          android:scaleType="center"
          android:src="@drawable/ic_info_outline_white_24dp"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent"/&gt;
  
      &lt;!-- install button --&gt;
      &lt;ImageView
          android:id="@+id/LibraryWithVersionItem.install"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingLeft="@dimen/margin8"
          android:paddingRight="@dimen/margin8"
          android:paddingTop="@dimen/margin8"
          android:paddingBottom="@dimen/margin8"
          android:scaleType="center"
          android:src="@drawable/ic_get_app_white_24dp"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/LibraryWithVersionItem.info"/&gt;
  
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>PS 1. <code>layout_width="0dp"</code> + <code>app:layout_constraintWidth_default="wrap"</code> seems to be exactly what i need ("wrap_content but not breaking the constraints") but it does not work (still larger than required):</p>
  
  <pre><code>&lt;TextView
          android:id="@+id/LibraryWithVersionItem.title"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="8dp"
          android:layout_marginTop="8dp"
          android:ellipsize="middle"
          android:textColor="@color/mySecondaryDarkColor"
          android:textSize="@dimen/fontSize18"
          android:textStyle="bold"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintWidth_default="wrap"
          tools:text="ExampleLibrary 01234567890123456789012345"
  </code></pre>
  
  <p>PS 2. Setting min constraint width for the version (<code>app:layout_constraintWidth_min="60dp"</code>) does not help too - it's invisible as it's moved too right.</p>