title: How do I specify width and height of Android GridLayout cells in relative measures?
body: <p>I'm trying to figure out how <a href="http://android-developers.blogspot.no/2011/11/new-layout-widgets-space-and-gridlayout.html">GridLayout</a> works, but one thing I can't figure out from the documentation is how or if one can control the size of the grid cells. </p>
  
  <p>Say I want a two by two grid where each cell occupy exactly 25% of the screen real estate (half height, half width) - can I do this? </p>
  
  <p>With LinearLayout I would accomplish this by nesting two horizontal LinearLayout's in one vertical and then assigning a <strong>weight</strong> of 1 to all elements. GridLayout does not support the weight property though.</p>