可以给每个单元格的LayoutParam设置margin来曲线达到目标吧

解决方案 »

  1.   

    好像只能通过1楼的方法曲线救国了。但是gridview有方法可以设置
      

  2.   

    <TableLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" >
            <TableRow>
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/ic_launcher"/>
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/ic_launcher"/>
            </TableRow>        <TableRow>
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/ic_launcher"/>
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/ic_launcher"/>
            </TableRow>
        </TableLayout>
      

  3.   

    如何设置tablerow中的每列的间距?
    麻烦知情人改下……
      

  4.   

    有一种比较土的方法,在各单元格之间加控件
    比如TextView设置android:width="10dp"
    这样就能使单元格控件间距为10dp了,虽然是小米加步枪,解决问题可是一针见血