title: Android Gridlayout :how to change the height of each row?
body: <p>In <strong>GridLayout</strong> i want to stretch the button height in row (ie to take 3 rows or more ) i could to specify the height (1 or 2 rows) using the command          <strong>android:layout_rowSpan="2"</strong> but its not working when is set the attribute  <strong>android:layout_rowSpan</strong>  to 3 or 4 . any help ?</p>
  
  <p>in the below screen shoot i want to change the height of button 3 to take three rows </p>
  
  <p><a href="https://i.stack.imgur.com/8u99n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8u99n.png" alt="enter image description here"></a> </p>
  
  <p><strong>There is my code :</strong></p>
  
  <pre><code>    &lt;GridLayout android:id="@+id/GridLayout1"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:columnCount="3"
          android:rowCount="6"
  &gt;
  
  &lt;Button
      android:id="@+id/button3"
      android:layout_column="0"
      android:layout_gravity="left|top"
      android:layout_row="0"
      android:layout_rowWeight="1"
      android:text="Button 1"/&gt;
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_column="1"
      android:layout_gravity="left|top"
      android:layout_row="0"
      android:text="Button 2"/&gt;
  
  &lt;Button
      android:id="@+id/button2"
      android:layout_column="2"
      android:layout_gravity="fill_vertical"
      android:layout_row="0"
      android:layout_rowSpan="3"
      android:text="Button 3"/&gt;
  
  &lt;Button
      android:id="@+id/button4"
      android:layout_column="0"
      android:layout_columnSpan="2"
      android:layout_gravity="fill_horizontal"
      android:layout_row="1"
      android:text="Button 4"/&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>