Reduce Android GridView space between columns to 0
<p>I´m trying to reduce the space between the columns of my <code>GridView</code> to 0 to get the layout 100% filled with my items. At the moment I still having like a little padding at top and between the items. Right and left sides looks as I want.</p>

<p>Here is the code of my fragment layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/movies_fragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"&gt;

    &lt;GridView
        android:id="@+id/moviesGrid"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:columnWidth="@dimen/poster_width"
        android:numColumns="auto_fit"
        android:verticalSpacing="0dp"
        android:stretchMode="columnWidth"
        android:textAlignment="center" /&gt;


&lt;/FrameLayout&gt;
</code></pre>

<p>And this is the Activity_main layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/drawerLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="false"&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"&gt;

        &lt;include
            android:id="@+id/toolbar"
            layout="@layout/toolbar" /&gt;

        &lt;FrameLayout
            android:id="@+id/main_content"
            android:layout_width="match_parent"
            android:layout_height="match_parent"&gt;


        &lt;/FrameLayout&gt;

    &lt;/LinearLayout&gt;

    &lt;android.support.design.widget.NavigationView
        android:id="@+id/navigationView"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:background="#E8F5E9"
        android:fitsSystemWindows="false"
        app:itemTextColor="@android:color/secondary_text_light"
        app:menu="@menu/settings_header"&gt;

    &lt;/android.support.design.widget.NavigationView&gt;

&lt;/android.support.v4.widget.DrawerLayout&gt;
</code></pre>

<p>Finally this is  my dimens.xml file:</p>

<pre><code>&lt;resources&gt;
    &lt;!-- Default screen margins, per the Android Design guidelines. --&gt;
    &lt;dimen name="activity_horizontal_margin"&gt;16dp&lt;/dimen&gt;
    &lt;dimen name="activity_vertical_margin"&gt;16dp&lt;/dimen&gt;
    &lt;dimen name="fab_margin"&gt;16dp&lt;/dimen&gt;
    &lt;dimen name="poster_width"&gt;180dp&lt;/dimen&gt;
    &lt;dimen name="poster_height"&gt;280dp&lt;/dimen&gt;
&lt;/resources&gt;
</code></pre>

<p>Here is how it looks right now:</p>

<p><a href="https://i.stack.imgur.com/MCN8t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MCN8t.png" alt="enter image description here"></a></p>

<p>I tried using </p>

<blockquote>
  <p>android:stretchMode="NONE"</p>
</blockquote>

<p>or just writing value 0 to every padding attribute, but it didn't work. </p>

<p>I also check this post to got what I have now, before it had a really big padding between every item:
<a href="https://stackoverflow.com/questions/7425557/android-reduce-space-between-columns-in-gridview">Android: Reduce space between columns in GridView</a></p>