gridView--GridView关于间距的属性值介绍

android:columnWidth  
设置列的宽度。关联的方法为:setColumnWidth(int)  


android:gravity  
设置此组件中的内容在组件中的位置。可选的值有:top、bottom、left、right、center_vertical、fill_vertical、center_horizontal、fill_horizontal、center、fill、clip_vertical 可以多选,用“|”分开。关联方法:setGravity (int gravity)  


android:horizontalSpacing  
两列之间的间距。关联方法:setHorizontalSpacing(int)  


android:numColumns  
列数。关联方法:setNumColumns(int)  


android:stretchMode  
缩放模式。关联方法:setStretchMode(int)  


android:verticalSpacing  
两行之间的间距。关联方法:setVerticalSpacing(int)  

原文地址:https://www.cnblogs.com/awkflf11/p/5061887.html