title: I can't set weight in GridLayout
body: <p>I've tried enough, searched the internet and I do not know what I can do to fix this.</p>
  
  <p>I have in my code this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  &lt;GridLayout
          android:id="@+id/GridLayout1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:columnCount="2"
          android:rowCount="2"
          android:background="#f11"
          &gt;
  
          &lt;Button
              android:id="@+id/button1"
              android:layout_gravity="fill"
              android:layout_columnWeight="1"
              android:layout_rowWeight="1"
              android:layout_row="0"
              android:layout_column="0"
              android:text="Button"/&gt;
  
          &lt;Button
              android:id="@+id/button2"
              android:layout_gravity="fill"
              android:layout_columnWeight="1"
              android:layout_rowWeight="1"
              android:layout_row="0"
              android:layout_column="1"
              android:text="Button"/&gt;
  
          &lt;Button
              android:id="@+id/button3"
              android:layout_gravity="fill"
              android:layout_columnWeight="1"
              android:layout_rowWeight="1"
              android:layout_row="1"
              android:layout_column="0"
              android:text="Button"/&gt;
  
          &lt;Button
              android:id="@+id/button4"
              android:layout_gravity="fill"
              android:layout_columnWeight="1"
              android:layout_rowWeight="1"
              android:layout_row="1"
              android:layout_column="1"
              android:text="Button"/&gt;
  
  
  
  
      &lt;/GridLayout&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>In my IDE (ANDROID STUDIO 3.0) appear this: (Which is what I want.)</strong></p>
  
  <p><a href="https://i.stack.imgur.com/QsJ3Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QsJ3Q.png" alt="enter image description here"></a></p>
  
  <p><strong>But in devices appear like this:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/sMAeJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sMAeJ.png" alt="enter image description here"></a></p>
  
  <p><strong>How fix this?</strong>
  Thanks!</p>