title: Gridlayout not showing, Android studio
body: <p>I'm trying to create an app in android studio, and for some reasons one gridLayout decides not to show up, despite the fact that it takes the necessary space on the screen. <a href="http://i.stack.imgur.com/DxhVV.png" rel="nofollow">Image from android studio</a>, <a href="http://i.stack.imgur.com/08Ez3.jpg" rel="nofollow">actual screenshot from my phone</a></p>
  
  <p>XML file of the layout:
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#cbcde6"
      android:orientation="vertical"
      android:gravity="top|center"&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Insert data"
          android:textAppearance="?android:attr/textAppearanceLarge"
          /&gt;
  
      &lt;GridLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_gravity="top"
          android:columnCount="3"
          android:rowCount="3"
          android:visibility="visible"&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
          &lt;EditText
              android:background="#ffffff"
              android:layout_height="30sp"
              android:layout_margin="15dp"
              android:layout_columnWeight="1"/&gt;
  
      &lt;/GridLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:gravity="center"&gt;
          &lt;Button
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Calculate"
              android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"
              android:gravity="center"
              &gt;
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Result is: "
                  android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Result"
                  android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:gravity="bottom"&gt;
          &lt;Button
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/backButton_text"
              android:id="@+id/back"
              android:onClick="onClickBackButton"
              android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;</code></pre>
  </div>
  </div>
  </p>