title: Android EditText and Button on same line
body: <p>I need to have a <code>Edittext</code> beside a <code>Search button</code>. The <code>EditText</code> should fill as much of the width as possible, the button should be to the right and be just big enough to have it's text.</p>
  
  <p>It looks like this now:</p>
  
  <pre><code>[EDIT TEXT][Search]
  </code></pre>
  
  <p>but should look like this:</p>
  
  <pre><code>[.......EDIT TEXT.......][Search]
  </code></pre>
  
  <p>Here is the <code>XML</code>:</p>
  
  <pre><code>&lt;RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;
          &lt;EditText android:id="@+id/search_box" 
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:hint="type to filter"
              android:inputType="text"
              android:maxLines="1" /&gt;
          &lt;Button android:id="@+id/search_text"
              android:layout_toRightOf="@id/search_box"
              android:text="Search"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"/&gt;
    &lt;/RelativeLayout&gt;
  </code></pre>