title: Why isn't the button stretched to edges of the screen?
body: <p>XML:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:orientation=&quot;vertical&quot;
      android:gravity=&quot;center&quot;&gt;
  
      &lt;TextView
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:textSize=&quot;20sp&quot;
          android:text=&quot;qwerqwerqwerqweqwerqqwerqwerqwerqweqwerqwerqwerqwerqwerwerrqwerqwerqwerqwerqwerqwerqweqwerqwerqwerqwerqwerwerrqwerqwerqwerwerqwerqwerqwerwerrqwerqwerqwer&quot;/&gt;
  
      &lt;Button
          android:id=&quot;@+id/true_button&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:text=&quot;qwerqwerqwerqweqwerqqwerqwerqwerqweqwerqwerqwerqwerqwerwerrqwerqwerqwerqwerqwerqwerqweqwerqwerqwerqwerqwerwerrqwerqwerqwerwerqwerqwerqwerwerrqwerqwerqwer&quot;/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>Output:</p>
  <p><a href="https://i.stack.imgur.com/Kauta.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kauta.png" alt="enter image description here" /></a></p>
  <p>Why isn't the button stretched to edges of the screen whereas TextView is?</p>