title: Fit button width in GridLayout column Android
body: <p>I tried to create a GUI - GridLayout 2 rows &amp; 2 cols (you can see in the image). I want the button width is fit the column (2) width. But the result is overflow.</p>
  
  <p><a href="https://i.stack.imgur.com/4l9L3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4l9L3.png" alt="enter image description here"></a></p>
  
  <p>Do you have ever get this kind of issue?</p>
  
  <p>Here are my code</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/frameLayout"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"&gt;
  
  &lt;fragment
      android:id="@+id/map"
      android:name="com.google.android.gms.maps.MapFragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;GridLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:layout_marginLeft="15dp"
      android:layout_marginRight="15dp"
      android:layout_marginTop="15dp"
      android:background="@drawable/round_corner_opacity_background"
      android:columnCount="2"
      android:rowCount="6"&gt;
      &lt;!--Pick up--&gt;
      &lt;ImageView
          android:layout_column="0"
          android:layout_gravity="center_vertical"
          android:layout_margin="5dp"
          android:layout_row="0"
          android:layout_rowSpan="2"
          android:src="@drawable/ic_ci_pick_up" /&gt;
  
      &lt;TextView
          style="@style/text_view_description"
          android:layout_column="1"
          android:layout_columnWeight="1"
          android:layout_row="0"
          android:text="@string/pick_up" /&gt;
  
      &lt;Button
          android:id="@+id/btnSelectPickUp"
          style="@style/button_location"
          android:layout_column="1"
          android:layout_columnWeight="1"
          android:layout_row="1"
          android:maxLines="3"
          android:singleLine="false"
          android:text="@string/select_pick_up" /&gt;
      &lt;!--Separator--&gt;
      &lt;View
          android:layout_width="match_parent"
          android:layout_height="1dp"
          android:layout_column="1"
          android:layout_marginBottom="5dp"
          android:layout_marginTop="5dp"
          android:layout_row="2"
          android:background="@color/primary" /&gt;
      &lt;!--Drop off--&gt;
      &lt;ImageView
          android:layout_column="0"
          android:layout_gravity="center_vertical"
          android:layout_margin="5dp"
          android:layout_row="3"
          android:layout_rowSpan="2"
          android:src="@drawable/ic_ci_drop_off" /&gt;
  
      &lt;TextView
          style="@style/text_view_description"
          android:layout_column="1"
          android:layout_columnWeight="1"
          android:layout_row="3"
          android:text="@string/drop_off" /&gt;
  
      &lt;Button
          android:id="@+id/btnSelectDropOff"
          style="@style/button_location"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_column="1"
          android:layout_columnWeight="1"
          android:layout_row="4"
          android:ellipsize="end"
          android:singleLine="true"
          android:text="@string/select_pick_up" /&gt;
      &lt;!--ConfirmedBookings--&gt;
      &lt;Button
          android:id="@+id/btnShowConfirmedBookingsDialog"
          style="@style/button_default"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_column="0"
          android:layout_columnSpan="2"
          android:layout_marginTop="15dp"
          android:layout_row="5"
          android:text="@string/confirmed_booking" /&gt;
  &lt;/GridLayout&gt;
  
  &lt;Button
      android:id="@+id/btnShowBookDialog"
      style="@style/button_default"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="center|bottom"
      android:text="@string/book" /&gt;
  </code></pre>
  
  <p>Thank you,</p>