Table Layout
Android TableLayout groups views into rows and columns. You will use the <TableRow> element to build a row in the table. Each row has zero or more cells; each cell can hold one View object. TableLayout containers do not display border lines for their rows, columns, or cells. Important Attributes for the Table Layout: Attribute Description android:id This is the ID which uniquely identifies the layout. android:collapseColumns This specifies the zero-based index of the columns to collapse. The column indices must be separated by a comma: 1,2,5 android:stretchColumns The zero-based index of the columns to stretch. The column indices must be separated by comma: 1,2,5 android:shrinkColumns The zero-based index of the columns to shrink. The column indices must be separated by comma: 1,2,5 For example, following is the content of activity_main.xml containing Table Layout: ...