How to arrange buttons with different text-sizes in a TableView so they are not displaced?
<p>I write a rpn calculator app for just for learning.
The buttons are arranged in a table layout. The arithmetic buttons uses a bigger font size because the symbols are very small otherwise. This produced slightly displaced buttons, but they are all the same size. It works if all buttons use the same font size.</p>

<p>Look here for image:
<a href="http://img512.imageshack.us/img512/3871/unbenanntnc.png" rel="nofollow">http://img512.imageshack.us/img512/3871/unbenanntnc.png</a></p>

<p>How can I prevent this?</p>

<p>Thanks!</p>

<p>Update:
I also tried: android:layout_centerVertical but with no effect.</p>

<p>Latest result:
<a href="http://img836.imageshack.us/i/unbenanntas.png/" rel="nofollow">http://img836.imageshack.us/i/unbenanntas.png/</a></p>

<p>Used styles:</p>

<pre><code>&lt;style name="CalcButton" parent="@android:style/TextAppearance.Medium"&gt;
    &lt;item name="android:layout_width"&gt;53dp&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;50dp&lt;/item&gt;
    &lt;item name="android:textColor"&gt;#000050&lt;/item&gt;
    &lt;item name="android:typeface"&gt;serif&lt;/item&gt;
    &lt;item name="android:textSize"&gt;14sp&lt;/item&gt;
       &lt;item name="android:layout_centerHorizontal"&gt;true&lt;/item&gt;
            &lt;item name="android:layout_centerVertical"&gt;true&lt;/item&gt;
&lt;/style&gt;
&lt;style name="EnterButton" parent="@android:style/TextAppearance.Medium"&gt;
    &lt;item name="android:layout_height"&gt;50dp&lt;/item&gt;
    &lt;item name="android:textColor"&gt;#000000&lt;/item&gt;
    &lt;item name="android:typeface"&gt;serif&lt;/item&gt;
    &lt;item name="android:textSize"&gt;14sp&lt;/item&gt;
    &lt;item name="android:layout_span"&gt;2&lt;/item&gt;
       &lt;item name="android:layout_centerHorizontal"&gt;true&lt;/item&gt;
            &lt;item name="android:layout_centerVertical"&gt;true&lt;/item&gt;
&lt;/style&gt;

&lt;style name="NumberButton" parent="@android:style/TextAppearance.Medium"&gt;
    &lt;item name="android:layout_width"&gt;53dp&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;50dp&lt;/item&gt;
    &lt;item name="android:textColor"&gt;#500000&lt;/item&gt;
    &lt;item name="android:typeface"&gt;serif&lt;/item&gt;
    &lt;item name="android:textSize"&gt;20sp&lt;/item&gt;
       &lt;item name="android:layout_centerHorizontal"&gt;true&lt;/item&gt;
            &lt;item name="android:layout_centerVertical"&gt;true&lt;/item&gt;
&lt;/style&gt;

&lt;style name="ArithmeticButton" parent="@android:style/TextAppearance.Medium"&gt;
    &lt;item name="android:layout_width"&gt;53dp&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;50dp&lt;/item&gt;
    &lt;item name="android:textColor"&gt;#005000&lt;/item&gt;
    &lt;item name="android:typeface"&gt;serif&lt;/item&gt;
    &lt;item name="android:textSize"&gt;20sp&lt;/item&gt;
    &lt;item name="android:baselineAligned"&gt;false&lt;/item&gt;
    &lt;item name="android:layout_centerHorizontal"&gt;true&lt;/item&gt;
       &lt;item name="android:layout_centerVertical"&gt;true&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>Excerpt of main.xml:</p>

<pre><code>&lt;TableLayout android:id="@+id/TableLayout01" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="10px" android:baselineAligned="false" &gt;
&lt;TableRow&gt;
&lt;Button android:id="@+id/BtEnter" style="@style/EnterButton" android:text="Enter" &gt;&lt;/Button&gt;
&lt;Button android:id="@+id/BtBs" style="@style/CalcButton"  android:text="←"&gt;&lt;/Button&gt;
&lt;Button android:id="@+id/BtSwap" style="@style/CalcButton"  android:text="y↔x"&gt;&lt;/Button&gt;
&lt;Button android:id="@+id/BtRoll" style="@style/CalcButton"  android:text="R↓"&gt;&lt;/Button&gt;
&lt;Button android:id="@+id/BtC" style="@style/CalcButton"  android:text="Clr"&gt;&lt;/Button&gt;
&lt;/TableRow&gt;

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