title: How to remove space in between Android Grid Layout
body: <p>As the title states, I simply want to have a layout with as little to no space between the columns/rows that are in a grid layout. Refer to the image below as the example. I simply want all the buttons to take up all the space of the cell they are in and the adjacent cells to go right up against each other. This will allow for a more tile look. </p>
  
  <p>I have looked at this question: <a href="https://stackoverflow.com/questions/10016343/gridlayout-not-gridview-how-to-stretch-all-children-evenly">GridLayout (not GridView) how to stretch all children evenly</a> -
   As well as this: <a href="https://stackoverflow.com/questions/21455495/gridlayoutnot-gridview-spaces-between-the-cells">GridLayout(not GridView) - Spaces between the cells</a></p>
  
  <p>But it does not answer or solve my issue. Thank you so much for your help and advice. </p>
  
  <p>Here is my XML code for the gridLayout.</p>
  
  <pre><code>GridLayout
      android:id="@+id/grid"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="#32ffffff"
      android:rowOrderPreserved="false"
      android:columnCount="3"
      android:padding="10dp"
      android:layout_centerVertical="true"
      android:layout_centerHorizontal="true"&gt;
  
      &lt;Button
          android:id="@+id/hello"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_column="0"
          android:layout_row="0"
          android:text="Hello"
          android:layout_columnWeight="1"
          android:layout_columnSpan="2"
          android:layout_gravity="fill"
          android:padding="5dp"/&gt;
  
      &lt;Button
          android:id="@+id/sorry"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_column="0"
          android:layout_row="1"
          android:layout_gravity="fill"
          android:text="Sorry" /&gt;
  
      &lt;Button
          android:id="@+id/thank"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_column="1"
          android:layout_row="1"
          android:layout_gravity="fill"
          android:text="Thank You" /&gt;
  
      &lt;Button
          android:id="@+id/myname"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="My \nName \nIS"
          android:layout_column="2"
          android:layout_row="0"
          android:layout_rowSpan="2"
          android:layout_rowWeight="1" /&gt;
  
      &lt;Button
          android:id="@+id/howto"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="How To Say ..?"
          android:layout_columnSpan="2"
          android:layout_column="0"
          android:layout_row="2"
          android:layout_columnWeight="1"
          android:layout_gravity="fill"/&gt;
  
      &lt;Button
          android:id="@+id/welcome"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_column="2"
          android:layout_row="2"
          android:text="You're\nWelcome" /&gt;
  
      &lt;Button
          android:id="@+id/yourname"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Your Name?"
          android:layout_column="0"
          android:layout_row="3"
          android:layout_gravity="fill"
          /&gt;
  
      &lt;Button
          android:id="@+id/howareyou"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="How are you?"
          android:layout_columnSpan="2"
          android:layout_column="1"
          android:layout_row="3"
          android:layout_columnWeight="1"
          android:layout_gravity="fill"/&gt;
  
      &lt;Button
          android:id="@+id/english"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Do you speak english?"
          android:layout_columnSpan="3"
          android:layout_column="0"
          android:layout_row="4"
          android:layout_columnWeight="1"
          android:layout_gravity="fill"/&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/QPuUGl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QPuUGl.png" alt="Android layout at the moment"></a></p>