title: Eclipse says a TableRow is useless but I can't find a better way
body: <p>I'm working on an Android app, and I'm wondering whether I can do something differently and/or better in order to avoid warnings from Eclipse.  For clarity, I'll include the XML layout in its entirety:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/parent_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#262626"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/title"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:background="#262626"
          android:gravity="center"
          android:paddingBottom="5.0dp"
          android:paddingTop="10dp"
          android:text="@string/title_rcon_console"
          android:textColor="#FFFFFF"
          android:textSize="20.0sp" /&gt;
  
      &lt;TextView
          android:id="@+id/rcon_console"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_above="@+id/command_table"
          android:layout_below="@+id/title"
          android:background="#000000"
          android:gravity="left"
          android:paddingBottom="5.0dp"
          android:paddingTop="5.0dp"
          android:scrollbars="horizontal|vertical"
          android:text=""
          android:textColor="#FFFFFF"
          android:textSize="9.0sp"
          android:typeface="monospace" /&gt;
  
      &lt;TextView
          android:id="@+id/sending"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignTop="@+id/rcon_console"
          android:layout_centerHorizontal="true"
          android:background="#262626"
          android:gravity="center_vertical|center_horizontal"
          android:paddingBottom="5.0dp"
          android:paddingLeft="10.0dp"
          android:paddingRight="10.0dp"
          android:paddingTop="5.0dp"
          android:text="@string/msg_rcon_sending"
          android:textColor="#FFFFFF"
          android:textSize="14.0sp" /&gt;
  
      &lt;TableLayout
          android:id="@+id/command_table"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:background="#262626"
          android:paddingBottom="5.0dp"
          android:paddingTop="5.0dp"
          android:stretchColumns="0" &gt;
  
          &lt;TableRow&gt;
  
              &lt;EditText
                  android:id="@+id/field_command"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:gravity="left|center_vertical"
                  android:singleLine="true"
                  android:inputType="text"
                  android:text=""
                  android:textSize="14.0sp" /&gt;
  
              &lt;Button
                  android:id="@+id/send_button"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:gravity="center_horizontal|center_vertical"
                  android:paddingLeft="20dp"
                  android:paddingRight="20dp"
                  android:text="@string/button_send" /&gt;
  
          &lt;/TableRow&gt;
  
      &lt;/TableLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The problem is with the <code>TableLayout</code> and <code>TableRow</code> elements.  Eclipse is showing the following warning for the <code>TableRow</code>:</p>
  
  <blockquote>
    <p>This TableRow layout or its TableLayout parent is useless; transfer
    the background attribute to the other view</p>
  </blockquote>
  
  <p>I'm using the <code>TableLayout</code> because it's the only way I could find to align the <code>EditText</code> and <code>Button</code> side-by-side, and have the <code>EditText</code> span the entire space not occupied by the <code>Button</code>.  The end result looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/Q2Z0j.png" alt="screenshot"></p>
  
  <p>So, is Eclipse correct in saying that one or both of the table elements are useless?  Can I do this a different or more proper way, and have the same result?  Or is this just a spurious warning which doesn't apply here and can be ignored?  Any help is greatly appreciated.</p>