title: How do I prevent an EditText from resizing itself when the user is typing?
body: <p>I have an <code>EditText</code> and a <code>Button</code> set next to each other on the same horizontal line.  It looks great, except when the user enters a lot of text, the <code>EditText</code> is resized, and the <code>Button</code> is squished.</p>
  
  <p>I have both <code>EditText</code> and <code>Button</code> set to <code>layout_width="wrap_content"</code>.  <code>"fill_parent"</code> messes up the layout, and I don't want to use absolute sizes if I don't have to - the way it is now looks great in both landscape and portrait, I just don't want the <code>EditText</code> to resize.</p>
  
  <p>My layout:</p>
  
  <pre><code>&lt;TableLayout
      android:id="@+id/homelayout"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;TableRow&gt;
          &lt;TextView
              android:id="@+id/labelartist"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:text="Find artists:" /&gt;
      &lt;/TableRow&gt;
      &lt;TableRow&gt;
          &lt;EditText
              android:id="@+id/entryartist"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="6"
              android:background="@android:drawable/editbox_background"
              android:editable="true"
              android:padding="5px"
              android:singleLine="true" /&gt;
          &lt;Button
              android:id="@+id/okartist"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_marginLeft="10dip"
              android:layout_weight="1"
              android:text="Search" /&gt;
      &lt;/TableRow&gt;
  
  &lt;/TableLayout&gt;
  </code></pre>