title: How to put an EditText and Button next to each other?
body: <p>I want to try to get an EditText and Button next to each other. I currently have where the button is on the right and the edit text is left aligned but the button then shows that it is on top of the EditText. I want the Button to start where the EditText ends.</p>
  
  <p>This is what I have right now:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#004D79"&gt;
          &lt;RelativeLayout android:id="@+id/relativeLayout1" 
          android:layout_height="wrap_content" 
          android:layout_width="wrap_content"&gt;
          &lt;EditText 
              android:layout_alignParentLeft="true" 
              android:text="EditText"
              android:layout_marginTop="10dp" 
              android:id="@+id/editText" 
              android:layout_height="wrap_content" 
              android:layout_width="fill_parent"&gt;
          &lt;/EditText&gt;
          &lt;Button android:text="Skip"
           android:id="@+id/skipButton" 
           android:textSize="18sp"
           android:layout_marginTop="10dp" 
           android:layout_alignParentRight="true" 
           android:layout_height="wrap_content" 
           android:layout_width="80dp"&gt;
           &lt;/Button&gt;
      &lt;/RelativeLayout&gt; 
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I tried to set it up with making the EditText width with an exact dp amount but then when the screen flips horizontal there is a big gap between the EditText and Button.</p>