title: GridLayout align children within column
body: <p>I have a <code>GridLayout</code> that consists of 6 children. It has a column count of 2. The left column's children have a <code>layout_gravity</code> of <code>start|end|fill_horizontal</code> and <code>layout_width</code> of 0dp, which causes them to fill all available space.</p>
  
  <p>This is great, and gives me the output shown below.
  <img src="https://i.stack.imgur.com/hTOmz.png" alt="enter image description here"></p>
  
  <p>Views 4, 5, and 6 are only as big as they need to be. Very cool. I would now like to align views 4, 5, and 6 to the right hand side of the container, but this has proved challenging. Because of the way <code>GridLayout</code> determines column flexibility, giving the right column's views a <code>layout_gravity</code> of <code>right</code> ruins the layout. Views in the first column no longer fill the remaining width in the layout.  (From my understanding, this is because now both columns have children defining a horizontal gravity, so <code>GridLayout</code> can no longer mark one column as flexible).</p>
  
  <p>Is there a way to achieve this? I'm really not keen on nesting <code>LinearLayout</code>s. Below is my desired result.</p>
  
  <p><img src="https://i.stack.imgur.com/lG7qM.png" alt="enter image description here"></p>
  
  <p>For reference, the current view hierarchy XML looks something like...</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;GridLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:columnCount="2"&gt;
  
      &lt;View
          android:id="@+id/view1"
          android:layout_gravity="start|end|fill_horizontal" /&gt;
  
      &lt;View
          android:id="@+id/view4" /&gt;
  
      &lt;View
          android:id="@+id/view2"
          android:layout_gravity="start|end|fill_horizontal" /&gt;
  
      &lt;View
          android:id="@+id/view5" /&gt;
  
      &lt;View
          android:id="@+id/view3"
          android:layout_gravity="start|end|fill_horizontal" /&gt;
  
      &lt;View
          android:id="@+id/view6" /&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>