[AndroidLayout] Table Layout
- The total width of the table is defined by its parent container.
- The children of a TableLayout cannot specify the layout_width attribute. Width is always MATCH_PARENT.
- However, the layout_height attribute can be defined by a child; default value is WRAP_CONTENT.
- If the child is a TableRow, then the height is always WRAP_CONTENT.
- android:stretchColumns="1"
- column 1 will fill the rest spaces
- android:shrinkColumns
- 指定不延伸寬度的 column,星號表示全部,或者以逗號區隔從 0 算起的 column index。
- android:collapseColumns
- 指定不顯示的 column,星號表示全部,或者以逗號區隔從 0 算起的 column index。
- android:layout_span
- android:layout_column="0"
沒有留言:
張貼留言