title: "Exception raised during rendering: column indices (start + span) mustn't exceed the column count. "
body: <p>I'm new to Android programming, and I'm trying to create a simple layout that has three items side by side. </p>
  
  <p>I'm using a GridLayout to try to accomplish this. I created a GridLayout with three columns. Then I added three NumberPickers to it. When I did this, the <code>columnCount</code> went up to <code>4</code>. When I tried to change it back to 3, I got the error</p>
  
  <p><code>Exception raised during rendering: column indices (start + span) mustn't exceed the column count.</code></p>
  
  <p>This is strange. Why are the column indices exceeding the column count? Also, why do the columns end before they touch the right side of the screen?</p>
  
  <p><img src="https://i.stack.imgur.com/285j8.jpg" alt="Android Screen"></p>
  
  <p><strong>The XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/GridLayout1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:columnCount="2"
      android:orientation="horizontal" &gt;
  
      &lt;NumberPicker
          android:id="@+id/NumberPicker01"
          android:layout_gravity="left"
          android:gravity="center_vertical" /&gt;
  
      &lt;NumberPicker
          android:id="@+id/NumberPicker02"
          android:layout_column="0"
          android:layout_gravity="fill_horizontal" /&gt;
  
      &lt;NumberPicker
          android:id="@+id/NumberPicker03"
          android:layout_column="0" /&gt;
  
      &lt;Space
          android:layout_column="1"
          android:layout_gravity="fill_vertical"
          android:layout_row="3" /&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>