我有这个网格视图,在 LinearLayout 内
LinearLayout 高度为 match_parent 或 fill_parent GridView 高度为 fill_parent 或 match_parent
但它仍然留下那个空白空间......我想拉伸 Gridview 内容以填充 LinearLayout
请帮忙!
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<GridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="6dp"
android:gravity="center"
android:horizontalSpacing="2dp"
android:numColumns="3"
android:stretchMode="columnWidth"
android:verticalSpacing="2dp" />
</LinearLayout>