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 ).