TableLayout
declare class TableLayout extends ViewGroup {}
A layout that arranges its children into rows and columns. A TableLayout
consists of a number of objects, each defining
a row (actually, you can have other children, which will be explained below). TableLayout containers do not display border
lines for their rows, columns, or cells. Each row has zero or more cells; each cell can hold one object. The table has as
many columns as the row with the most cells. A table can leave cells empty. Cells can span columns, as they can in HTML
Attribute
collapseColumns
<TableLayout collapseColumns="2">
...
</TableLayout>
Description
The zero-based index of the columns to collapse.
shrinkColumns
<TableLayout shrinkColumns="2">
...
</TableLayout>
Description
The zero-based index of the columns to shrink.
stretchColumns
<TableLayout stretchColumns="2">
...
</TableLayout>
Description
The zero-based index of the columns to stretch.
TableLayout.LayoutParams
This set of layout parameters enforces the width of each child to be and the height of each child to be , but only if
the height is not specified ViewGroup.LayoutParams.MATCH_PARENT
ViewGroup.LayoutParams.WRAP_CONTENT
.
declare class LayoutParams extends LinearLayout.LayoutParams {}