title: android – How to leave empty space in GridLayout
body: <p>I have <code>GridLayout</code> (from support library) where are two rows of buttons. All buttons have width set to 2 and height 1. The first row should be shifted one position to the right. When I do this, the <code>GridLayout</code> works like the first row is not shifted.</p>
  
  <p>Second row:</p>
  
  <pre><code>GridLayout.LayoutParams params = new GridLayout.LayoutParams();
  params.rowSpec = GridLayout.spec(1, 1, 1);
  params.columnSpec = GridLayout.spec(x, 2, 1);
  </code></pre>
  
  <p>First row:</p>
  
  <pre><code>GridLayout.LayoutParams params = new GridLayout.LayoutParams();
  params.rowSpec = GridLayout.spec(0, 1, 1);
  params.columnSpec = GridLayout.spec(x + 1, 2, 1);
  </code></pre>