Tablelayout table layout developed by Android

The table layout model manages child controls in the form of rows and columns. Each row can be an object of tablerow or, of course, a view object. Tablerow can add child controls, each of which is a column.

Tablelayout property:

Android: columnsecolumns: hide the columns specified in tablelayout. If there are multiple columns to be hidden, please separate the column numbers to be hidden with commas.

Android: stretchcolumns: set the specified column to be extensible to fill the remaining excess space. If multiple columns need to be set to be extensible, please separate the column numbers to be extended with commas.

Android: shrinkcolumns: sets the specified column to be shrinkable. When the shrinkable column is too wide (too much content), it will not be squeezed out of the screen. When multiple columns need to be set as shrinkable, the column serial numbers are separated by commas.

Column element (button) attribute: (strangely, there are no android: layout_column and Android: layout_span attributes in the button. There is no response when written in. I don't know why)

android:layout_ Colum: sets the column specified by the control in tablerow.

android:layout_ Span: sets the number of columns the control spans.

Picture:

code:

I hope this article will help you learn Android Software Programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>