alignment issue with gridlayout
<p>I have a numberpad as shown 
<img src="http://i.stack.imgur.com/kZBw1.png" alt="here"></p>

<p>as you can see buttons with only single line are not properly aligned.I got to know that by setting amdroid:baselineAligned as false we can solve this. But Gridlayout does not have any such propetry.
how can i solve it</p>

<p><strong>EDIT:</strong></p>

<pre><code>&lt;RelativeLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="2" &gt;

        &lt;GridLayout
            android:id="@+id/buttons_layout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:alignmentMode="alignMargins"
            android:layout_alignParentRight="true"
            android:layout_below="@+id/phone_number"
            android:layout_marginRight="@dimen/buttons_margin_right"
            android:layout_marginTop="10dp"
            android:columnCount="3" &gt;

            &lt;Button
                android:id="@+id/button1"
                android:layout_width=""65dp
                android:layout_height=""40dp
                android:textColor="@android:color/white"
                android:layout_marginTop="5dp"
                android:gravity="center"
                android:layout_marginLeft="10dp"
                android:text="1" /&gt;

           &lt;Button
                android:id="@+id/button2"
                android:layout_width=""65dp
                android:layout_height=""40dp
                android:textColor="@android:color/white"
                android:layout_marginTop="5dp"
                android:gravity="center"
                android:layout_marginLeft="10dp"
                android:text="2\nABC" /&gt;

.
.
.
&lt;/GridLayout&gt;
&lt;RelativeLayout&gt;
</code></pre>
