title: Fill GridLayout cells with ImageView
body: <p>I have a GridLayout and I'm setting it's number of columns and rows programmatically. Then I want to fill these cells with imageView. So, how can I create enought ImageViews to fill all cells?</p>
  
  <p>Here's part of my xml for GridLayout</p>
  
  <pre><code>&lt;GridLayout
      android:id="@+id/dgLayout"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_margin="20dp"&gt;
      &lt;ImageView
          android:id="@+id/imageView2"
          /&gt;
  &lt;/GridLayout&gt;
  </code></pre>
  
  <p>And here's the part of code from my activity class</p>
  
  <pre><code>dgLayout.setColumnCount(dwInt);
  dgLayout.setRowCount(dhInt);
  </code></pre>