title: GridLayout attach an ImageView dynamically
body: <p>I am trying to create a 15(width)x20(height) "graph-paper" like view using <code>GridLayout</code> as defined as such on <code>xml</code>.    </p>
  
  <pre><code>&lt;GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:columnCount="15"
                      android:orientation="vertical"
                      android:rowCount="20"
                      android:layout_margin="2dp"
                      android:id="@+id/gridLayout_mazeLayout"&gt;
                      &lt;View
                          android:layout_width="15dp"
                          android:layout_height="15dp"
                          android:layout_row="0"
                          android:layout_column="0"
                          android:background="#51ffff"
                          android:layout_margin="1dp"/&gt;
                      &lt;View
                          android:layout_width="15dp"
                          android:layout_height="15dp"
                          android:layout_row="0"
                          android:layout_column="1"
                          android:background="#51ffff"
                          android:layout_margin="1dp"/&gt;
                      &lt;View
                          android:layout_width="15dp"
                          android:layout_height="15dp"
                          android:layout_row="0"
                          android:layout_column="2"
                          android:background="#51ffff"
                          android:layout_margin="1dp"/&gt;
      // rest of rows and cols not shown.
       &lt;/GridLayout&gt;
  </code></pre>
  
  <p>I would like to attach an <code>ImageView</code> to span across 3x3 cell </p>
  
  <pre><code>   gridLayout_mazeLayout = (GridLayout) rootView.findViewById(R.id.gridLayout_mazeLayout);
     ImageView imageView_robot = new ImageView(rootView.getContext());
     imageView_robot.setBackgroundResource(R.mipmap.imageacross3x3);
  
      GridLayout.Spec row = GridLayout.spec(0);
      GridLayout.Spec col = GridLayout.spec(0);
      GridLayout.LayoutParams gridLayoutParam = new GridLayout.LayoutParams(row, col);
      gridLayout_mazeLayout.addView(imageView_robot,gridLayoutParam);
  </code></pre>
  
  <p>But doing so seems to introduce a new space for the <code>ImagineView</code>. What I want to achieve is to attach the <code>ImagineView</code> on top of the cell, instead of adding it to the <code>GridLayout</code>.</p>