title: Spinner inside GridLayout
body: <p>Adding a Spinner to a GridLayout seems to "break" the layout. I have prepared a minimal working example to illustrate the issue:</p>
  
  <p>I want a grid with labels on the left and input controls on the right. The controls on the right should take up the remaining space. This is what a simple example looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/Jzjh6.png" alt="Grid with EditTexts"></p>
  
  <p>Replacing one of the input controls with a spinner causes the right column to <em>extend out of the screen boundaries</em>, leading to an ugly layout.</p>
  
  <p><img src="https://i.stack.imgur.com/C2T1p.png" alt="Grid with Spinner"></p>
  
  <p>Why does this happen, and how can I avoid it?</p>
  
  <hr>
  
  <p>Here's the code of the first example:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:columnCount="2" &gt;
  
      &lt;TextView
          android:layout_gravity="left"
          android:text="TextView" /&gt;
  
      &lt;EditText
          android:layout_gravity="fill_horizontal"
          android:hint="EditText" /&gt;
  
      &lt;TextView
          android:layout_gravity="left"
          android:text="TextView" /&gt;
  
      &lt;EditText
          android:layout_gravity="fill_horizontal"
          android:hint="EditText" /&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>
  
  <p>And here's the code for the second image. The only difference is that the first EditText has been replaced by a Spinner:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:columnCount="2" &gt;
  
      &lt;TextView
          android:layout_gravity="left"
          android:text="TextView" /&gt;
  
      &lt;Spinner
          android:id="@+id/spinner1"
          android:layout_gravity="fill_horizontal" /&gt;
  
      &lt;TextView
          android:layout_gravity="left"
          android:text="TextView" /&gt;
  
      &lt;EditText
          android:layout_gravity="fill_horizontal"
          android:hint="EditText" /&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>