沒有別的辦法 只有自定義控件繼承gridview android
如圖,GridView顯示不完整 ide
解決方法: spa
自定義GridView 繼承
<com.android.test.MyGridView
android:id="@+id/main_gridview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:verticalSpacing="5dip"
android:layout_marginTop="5dip"
android:numColumns="3"
/> ip
效果圖 ci