title: Background of TextView with multiple lines not wrapping correctly
body: <p><strong>Background:</strong></p>
  
  <p>I've got a layout that consists of 6 items layed out as a grid (2x3). All items are as wide as half the screen (minus a little margin on each side). Each item is a <code>RelativeLayout</code> that contains an  <code>ImageView</code> (the background) and a <code>TextView</code> (the label). The label is set to wrap the text, and it's allowed to grow almost as wide as the image it sits on top of. After that it will break into two lines.</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>Everything looks good as long as the text fits on a single line (see top element in picture). The background wraps the text nicely. However, when the text is displayed on two lines the background gets too wide (see bottom item in picture). It fills up the maximum allowed width even though the text on the first line doesn't take up that much space. Is there a way to make the background wrap the text in the same way as it does when only one line is used?</p>
  
  <p><strong>Picture:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/K1VQ5.png" alt="screen_capture"></p>
  
  <p><strong>Layout XML:</strong>
      
      </p>
  
  <pre><code>    &lt;ImageView
          android:id="@+id/item_image"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:scaleType="centerCrop" /&gt;
  
      &lt;!-- some stuff I had to remove... --&gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:paddingBottom="11.33333dp"&gt;
  
          &lt;!-- some other stuff I had to remove... --&gt;
  
          &lt;!-- the gray background color is set to the TextView below programmatically together with the text itself. --&gt;
          &lt;TextView
              android:id="@+id/item_text_label"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="5.33333dp"
              android:paddingLeft="7.33333dp"
              android:paddingRight="20dp"
              android:paddingTop="1dp"
              android:paddingBottom="5.33333dp"
              android:layout_alignParentRight="true"
              android:gravity="right" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>