The attributes that tablelayout often use are:
Android:collapsecolumns: Hides the specified column in the No. 0 behavior sequence:
Android:collapsecolumns This property is empty, the effect is as follows:
The android:collapsecolumns=0,2--------------means to remove columns No. 0 and 2nd, as shown below:
Android:shrinkcolumns: Automatically extends the specified columns to fill the available sections in the No. 0 behavior sequence:
The shrinkcolumns does not work when the controls inside the Layoutrow are not yet covered, as shown in the following figure:
Set the shrinkcolumns=0,1,2, the layout is completely unchanged, because there is enough space in the Layoutrow.
When Layoutrow is full of controls, the following figure:
setting is set to shrinkcolumns=2, the result is that the control automatically fills the space vertically in the following illustration:
Android:stretchcolumns: In the No. 0 behavior sequence, try to fill the specified column with a blank part:
Set Stretchcolumns=1, the results are as follows, and the 1th column is filled as much as possible (BUTTON02 and TextView02 are filled right at the same time until TextView03 is squeeze to the last side).