How to set the height of several buttons in a LinearLayout for Android?
<p>I want to make some buttons on a panel quite thin but have no success. I have tried basically everything and if i manually enter the height of the button in the attribute android:layout_height, the button does not look correct. Everything else I try, the button still remains as large as before.</p>

<p>How can I accomplish this most easily?</p>

<pre><code>  &lt;LinearLayout 
         android:orientation="horizontal"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         &gt; 
        &lt;Button 
            android:id="@+id/b1"
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:layout_weight="1" 

            android:minHeight="0dp"
            android:minWidth="0dp"
            android:textSize="3sp"
            android:text="B1"
            android:onClick="onClick"
            /&gt;
        &lt;Button 
            android:id="@+id/b2"
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:layout_weight="1" 

            android:minHeight="0dp"
            android:minWidth="0dp"
            android:textSize="3sp"
            android:text="B2"
            android:onClick="onClick"
         /&gt;


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