title: Android (Xamarin) gridlayout in linearlayout
body: <p>I'm working on an android application where the main menu looks something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/WZC2v.png" rel="nofollow noreferrer">Main menu</a></p>
  
  <p>To do this, I'm using a linearlayout to seperate the screen 40/60 - accomplished using layout_weight for the height.</p>
  
  <p>Then, I split the 60% portion of the linearlayout using a gridlayout and placed buttons into the grids. However, the screen comes up as completely empty. Here's my xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:focusable="true"
      android:focusableInTouchMode="true"
      android:background="@drawable/background"&gt;
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="0dp"
          android:layout_weight="0.6"
          android:gravity="bottom"&gt;
          &lt;GridLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:rowCount="2"
              android:columnCount="2"&gt;
              &lt;Button
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_row="0"
                  android:layout_column="0"
                  android:background="@android:color/transparent"
                  android:text="Click me"
                  android:textAllCaps="false"
                  android:textColor="@color/dark_blue" /&gt;
              &lt;Button
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_row="0"
                  android:layout_column="1"
                  android:background="@android:color/transparent"
                  android:text="Click me"
                  android:textAllCaps="false"
                  android:textColor="@color/dark_blue" /&gt;
              &lt;Button
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_row="1"
                  android:layout_column="0"
                  android:background="@android:color/transparent"
                  android:text="Click me"
                  android:textAllCaps="false"
                  android:textColor="@color/dark_blue" /&gt;
              &lt;Button
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_row="1"
                  android:layout_column="1"
                  android:background="@android:color/transparent"
                  android:text="Click me"
                  android:textAllCaps="false"
                  android:textColor="@color/dark_blue" /&gt;
          &lt;/GridLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;!--Other code--&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Any help is appreciated, thanks!</p>