title: Why is wrap content in multiple line TextView filling parent?
body: <p>I have a multi line text view set to <code>android:layout_width="wrap_content"</code> that, when rendered, takes all available width of the parent. When the text can fit on one line, the <code>wrap_content</code> works fine, but at two or more lines, the text view seems to match the parents width, leaving what looks like padding on either side. </p>
  
  <p>Because the text can not fit on one line, is the text view assuming to require all available width? I want the view to be bounded by the smallest possible dimensions. </p>
  
  <p>Any ideas?</p>
  
  <p>For reference, here is layout definition:</p>
  
  <pre><code>&lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true"
      android:singleLine="false"
      android:textSize="24sp"
      android:textStyle="bold"
      android:textColor="@color/white"
      android:gravity="center_horizontal"
  /&gt;
  </code></pre>