title: How can I layout two buttons to be the same size?
body: <p>The layout definition is below. Basically I want the two buttons to be the same width, but right now their width is determined by the string they display, is there a better way to lay this out such that the buttons are the same width and that the Button+EditText combo fills the width of the screen?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/editorlinearlayout" 
      android:orientation="vertical"
      android:layout_width="fill_parent"  
      android:layout_height="fill_parent"
      android:gravity="center"&gt;
  
      &lt;LinearLayout android:orientation="horizontal"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
          &lt;Button android:id="@+id/setNameBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text=" Set Item Name "/&gt;
          &lt;EditText android:id="@+id/nameTxtBox"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"/&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout android:orientation="horizontal"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
          &lt;Button android:id="@+id/setGroupBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Set Group Name"/&gt;
          &lt;EditText android:id="@+id/groupTxtBox"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"/&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Edit</strong>:
  I've tried using a TableLayout as was suggested below, but now the EditText's don't fill the remaining portion of the screen. See the image and layout below.</p>
  
  <pre><code>&lt;TableLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
  
      &lt;TableRow&gt;
          &lt;Button android:id="@+id/setNameBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text=" Set Item Name "/&gt;
          &lt;EditText android:id="@+id/nameTxtBox"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow&gt;
          &lt;Button android:id="@+id/setGroupBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Set Group Name"/&gt;
          &lt;EditText android:id="@+id/groupTxtBox"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"/&gt;
      &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/y2L9M.png" alt="enter image description here"></p>