I cannot find out a way to add an outer margin to the GridView rows. I found the setHorizontalSpacing
and setVerticalSpacing
properties which add inner padding between the GridView rows, however it doesn't apply to the outer borders of the rows.
I'd like to have a result as it's featured on the Google Play store:
Thanks!
GridView
? – Dulcetandroid:paddingLeft/Right
properties with the same value ofsetVertical/HorizontalSpace
. The drawback is that this value is fixed, and if you setandroid:stretchMode="spacingWidth"
the resizing will modify only the inner spacings. – Cryostat