Child buttons do not take up entire gridlayout in android?
<p>I want to create a gridlayout, in which the width matches the screen size and the height is about 3/4 of the screen size. Within that gridlayout I have 4 buttons, equal size each taking 1/4 of the grid layout.  I have defined the grid layout to have 2 columns and 2 rows, and each button to take one column, row pair, yet the output has the 4 buttons, appear in the top right, all together taking less than 1/3 of the screen.</p>

<p>How do I get my buttons to take up the entire gridlayout?</p>

<p><a href="https://i.stack.imgur.com/qU8zi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qU8zi.jpg" alt="enter image description here"></a></p>

<p>Markup:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.user.myapplication.WelcomeScreen"&gt;

    &lt;GridLayout
        android:layout_width="fill_parent"
        android:layout_height="438dp"
        android:id="@+id/gridLayout"
        android:columnCount="2"
        android:rowCount="2"
        android:orientation="horizontal"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_centerVertical="true"&gt;

        &lt;Button
            android:text=""
            android:id="@+id/button"
            android:layout_column="0"
            android:layout_row="0"
            android:layout_gravity=""
            android:layout_width="wrap_content" /&gt;


        &lt;Button
            android:text=""
            android:id="@+id/button2"
            android:layout_column="1"
            android:layout_row="0"
            android:layout_gravity=""
            android:layout_width="wrap_content" /&gt;

        &lt;Button
            android:id="@+id/button3"
           android:layout_column="1"
           android:layout_row="1"
           android:layout_gravity="" /&gt;

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