See attached screenshot where I am attempting to reduce the space between the columns in my GridView.
My main.xml is as follows:
try to fix the number of columns needed in xml file for grid and set stretchMode as columnwidth
android:numColumns="3"
android:columnWidth="60dp"
android:stretchMode="columnWidth"
or set the horizontal and vertical spacing in xml for grid
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"