如何将gridview的第二行居中?

| 我正在尝试居中,拉伸,缩小gridview的行,但是这是不可能的。我正在用7个imageview扩展gridview。 gridview显示如下图像视图: [imageview] [imageview] [imageview] [imageview] [imageview] [imageview] [imageview] 我需要gridview看起来像这样: [imageview] [imageview] [imageview] [imageview] [imageview] [imageview] [imageview] 这是我的GridView代码:
    <GridView android:id=\"@+id/player_tell_grid\"
        android:layout_marginTop=\"10dp\" android:layout_width=\"fill_parent\"
        android:layout_height=\"wrap_content\" android:layout_below=\"@id/player_tell_message\"
        android:verticalSpacing=\"10dp\" android:horizontalSpacing=\"10dp\"
        android:numColumns=\"4\" android:columnWidth=\"45dp\"
        android:layout_marginLeft=\"15dp\" android:layout_marginRight=\"10dp\"
        android:stretchMode=\"columnWidth\" android:gravity=\"center\"
        android:background=\"@drawable/bg_tell\" android:shrinkColumns=\"*\">
    </GridView>
谢谢你的帮助。     
已邀请:
单个GridView无法完成您想做的事情。 如果项目数量有限,可以添加第二个(使用不同的填充),也可以考虑使用其他布局:TableLayout,RelativeLayout可能吗?     

要回复问题请先登录注册