GridVIew设置numColumns以及stretchMode 并且宽度必须为match_parent,Item设置columnWeight="1",就可实现平分
GridVIew:
<GridView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:gravity="center_horizontal"
android:numColumns="3"
android:scrollbars="none"
android:stretchMode="columnWidth"
android:verticalSpacing="12dp">
Item:
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="75dp"
android:layout_height="38dp"
android:layout_columnWeight="1"
android:gravity="center"
android:text="0"/>