title: Multiline TextView with width "wrap_content"
body: <p>I am wondering how to have a <code>TextView</code> display its content on several lines <a href="https://stackoverflow.com/questions/6674578/multiline-textview-in-android">without hardcoding the width in the XML</a>.</p>
  
  <pre><code>    &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="right"
          android:orientation="horizontal"&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:singleLine="false"
              android:text="Long multiline text"/&gt;
  
          &lt;TextView
              android:textColor="@color/text_color"
              android:layout_width="130dp"
              android:layout_height="wrap_content"
              /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Any thought welcome.</p>
  
  <p><strong>EDIT</strong>: my problem is that when the text exceeds the width set (because it reaches the end of the screen) a portion of the text is just not displayed. I would expect the text to be split on two lines</p>