Today I saw the layout of simple Android controls, which may be absolute, relative, table, linear, or frame layout. Some attributes in the table layout are relatively complex, the following describes some attributes of table layout:
Frequently Used attributes of tablelayout include:
Android: collapsecolumns: hides the specified column in sequence of 0th actions:
Android: collapsecolumns when this attribute is null, the effect is as follows:
Remove columns 0th and 2nd from Android: collapsecolumns = --------------, for example:
Android: shrinkcolumns: automatically extends the specified columns to fill the available parts in the order of 0th actions:
When the controls in layoutrow are not full, shrinkcolumns does not work, for example:
If shrinkcolumns =, 2 is set, the layout is not changed because there is enough space in layoutrow.
When layoutrow is filled with controls, for example:
If shrinkcolumns = 2 is set, the result is as follows: the control automatically fills the space in the vertical direction:
Android: stretchcolumns: In The 0th action order, try to fill the specified column with the blank part:
Set stretchcolumns = 1. The result is as follows: column 1st is filled as much as possible (both button02 and textview02 are filled to the right until textview03 is pressed to the last side ).