在布局文件xml中的代码:
<GridView android:id="@+id/xxx"
android:layout_weight="1.0"
android:layout_height="0dip"
android:layout_width="match_parent"
an