title: Decreasing row/column count of gridlayout in android
body: <p>I need a dynamic <code>gridlayout</code> that can be toggled between 3 by 3 and 4 by 4. I can <code>setRowCount</code> and <code>setColumnCount</code> from 3 to 4 but not from 4 to 3. It will display following issue:</p>
  <blockquote>
  <p>Caused by: java.lang.IllegalArgumentException: rowCount must be
  greater than or equal to the maximum of all grid indices (and spans)
  defined in the LayoutParams of each child.</p>
  </blockquote>
  <p>Is there any work around to achieve this using gridlayout?</p>