title: adjust TextView size to new text
body: <p>I have a textview between 2 other views inside a <code>ConstraintLayout</code>.
  I set the text of the second one in the <code>onViewCreated</code> of my Fragment and later change it after some user input.
  The first text works fine, but when i change it later i would expect its size to change with it, which of course would cause the view on its right to move a bit.
  Instead the new text breaks down into 2 lines, when it's longer than the original...
  How can i achieve that?
  Here are the 3 Views:</p>
  <pre><code>&lt;TextView
      android:id=&quot;@+id/label&quot;
      android:layout_width=&quot;0dp&quot;
      android:layout_height=&quot;35dp&quot;
      android:layout_marginStart=&quot;24dp&quot;
      android:layout_marginTop=&quot;8dp&quot;
      android:layout_marginEnd=&quot;24dp&quot;
      android:fontFamily=&quot;@font/hevetica_font&quot;
      android:gravity=&quot;center_vertical&quot;
      android:paddingStart=&quot;4dp&quot;
      android:paddingEnd=&quot;4dp&quot;
      android:text=&quot;@string/lbl&quot;
      android:textColor=&quot;@color/FlatWhite&quot;
      android:textSize=&quot;19sp&quot;
      android:textStyle=&quot;bold&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@id/topView&quot; /&gt;
  
  &lt;TextView
      android:id=&quot;@+id/text&quot;
      android:layout_width=&quot;0dp&quot;
      android:layout_height=&quot;35dp&quot;
      android:layout_marginStart=&quot;24dp&quot;
      android:layout_marginTop=&quot;8dp&quot;
      android:layout_marginEnd=&quot;24dp&quot;
      android:fontFamily=&quot;@font/hevetica_font&quot;
      android:gravity=&quot;center_vertical&quot;
      android:paddingStart=&quot;4dp&quot;
      android:paddingEnd=&quot;4dp&quot;
      android:text=&quot;&quot;
      android:textColor=&quot;@color/FlatWhite&quot;
      android:textSize=&quot;19sp&quot;
      android:textStyle=&quot;bold&quot;
      app:layout_constraintStart_toEndOf=&quot;@id/label&quot;
      app:layout_constraintTop_toBottomOf=&quot;@id/topView&quot; /&gt;
  
  &lt;Button
      android:id=&quot;@+id/btn&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;24dp&quot;
      app:layout_constraintStart_toEndOf=&quot;@id/label&quot;
      app:layout_constraintTop_toBottomOf=&quot;@id/topView&quot;
      android:text=&quot;change&quot;
      /&gt;
  </code></pre>
  <p>and in the java code i change text using <code>textView.setText(text);</code></p>