Linear Layout Does not align baselines and Relative layout doesn't allow weights
<p>I have a Linear layout with vertical orientation in which I'm inserting several view groups. One of them is:</p>

<pre><code>&lt;LinearLayout
   android:id="@+id/addedit_updowncontrol"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:layout_below="@+id/textView2"
   android:layout_marginBottom="5dp" 
   android:orientation="horizontal"&gt;

    &lt;Button
        android:id="@+id/addedit_btndecrement"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_weight="0.1"
        android:text="-" /&gt;

    &lt;EditText
        android:id="@+id/addedit_txtQuantity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:minWidth="90dp"
        android:layout_weight="0.4"
        android:layout_alignParentTop="true"
        android:inputType="numberDecimal" /&gt;

    &lt;Button
        android:id="@+id/addedit_btnIncrement"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_weight="0.1"
        android:layout_toLeftOf="@+id/addedit_units"
        android:text="+" /&gt;

    &lt;Spinner
        android:id="@+id/addedit_units"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
            android:layout_weight="0.4"
        android:layout_alignParentTop="true"
    android:layout_alignParentRight="true" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>This gives me a view that looks like <a href="http://gmanish.x10.mx/blog/wp-content/uploads/2011/11/LinearLayout.jpg" rel="nofollow" title="Linear Layout Screen Shot">this</a> (apologies for the link, I wish there was a better way). This is unacceptable as the Button does not align with the EditText. </p>

<p>I tried switching to RelativeLayout, which gives me something like <a href="http://gmanish.x10.mx/blog/wp-content/uploads/2011/11/RelativeLayout.jpg" rel="nofollow" title="Relative Layout Screen Shot">this</a>. This is unacceptable as the two buttons (-) and (+) are not of the same width.</p>

<p>I guess what I'm trying to achieve is:
(1) The baseline of the Button is aligned with the other controls in the row.
(2) The two button are of the same width.</p>

<p>I seem to be able to achieve (1) with <a href="http://gmanish.x10.mx/blog/wp-content/uploads/2011/11/RelativeLayout.jpg" rel="nofollow" title="Relative Layout Screen Shot">RelativeLayout</a> and (2) with <a href="http://gmanish.x10.mx/blog/wp-content/uploads/2011/11/LinearLayout.jpg" rel="nofollow" title="Linear Layout Screen Shot">LinearLayout</a>. But not both.</p>

<p>Can anyone help me please?</p>
