用多个TableLayout? 看看有没有你想要的效果 http://blog.csdn.net/ameyume/archive/2011/05/22/6437778.aspx The width of a column is defined by the row with the widest cell in that column. However, a TableLayout can specify certain columns as shrinkable or stretchable by calling setColumnShrinkable() or setColumnStretchable(). Finally, you can hide a column by calling setColumnCollapsed(). 通过隐藏某列呢?
你可以用gridview来替代表格布局的效果
看看有没有你想要的效果
http://blog.csdn.net/ameyume/archive/2011/05/22/6437778.aspx
The width of a column is defined by the row with the widest cell in that column. However, a TableLayout can specify certain columns as shrinkable or stretchable by calling setColumnShrinkable() or setColumnStretchable().
Finally, you can hide a column by calling setColumnCollapsed().
通过隐藏某列呢?
android:layout_marginBottom="像素"、android:layout_marginRight="像素"
这几个属性行不行?在线性排列中这几个属性是设置相邻视图的间距。
各种padding 上下左右