Cloneablepublic static class TableLayout.LayoutConfig extends ComponentContainer.LayoutConfig
Table layout config integrate ComponentContainer.LayoutConfig and provides the
TableLayout.Specification. The former indicates margin layout config in the
component container, and the latter indicates row and column specifications.
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
TableLayout.Specification |
columnSpec |
Indicates the column specifications in the table layout.
|
TableLayout.Specification |
rowSpec |
Indicates the row specifications in the table layout.
|
height, MATCH_CONTENT, MATCH_PARENT, width| 构造器 | 说明 |
|---|---|
LayoutConfig() |
Default constructor used to create a
LayoutConfig instance. |
LayoutConfig(int width,
int height) |
A constructor used to specify the width and height of a table layout.
|
LayoutConfig(ComponentContainer.LayoutConfig params) |
A constructor used to copy a
ComponentContainer.LayoutConfig instance. |
LayoutConfig(TableLayout.LayoutConfig source) |
A constructor used to copy the row and column specifications of a
LayoutConfig instance. |
LayoutConfig(TableLayout.Specification rowSpec,
TableLayout.Specification columnSpec) |
A constructor used to create row and column specifications in a table layout.
|
LayoutConfig(Context context,
AttrSet attrSet) |
A constructor used to create a
LayoutConfig instance based on the context and attribute set. |
clone, getHorizontalEndMargin, getHorizontalStartMargin, getLayoutDirection, getMarginBottom, getMarginLeft, getMarginRight, getMargins, getMarginsLeftAndRight, getMarginsTopAndBottom, getMarginTop, isMarginsRelative, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginsLeftAndRight, setMarginsRelative, setMarginsTopAndBottom, setMarginToppublic TableLayout.Specification columnSpec
public TableLayout.Specification rowSpec
public LayoutConfig()
LayoutConfig instance.public LayoutConfig(Context context, AttrSet attrSet)
LayoutConfig instance based on the context and attribute set.context - Indicates the application context.attrSet - Indicates the attribute set to be used.public LayoutConfig(TableLayout.Specification rowSpec, TableLayout.Specification columnSpec)
rowSpec - Indicates the row specifications in the table layout.columnSpec - Indicates the column specifications in the table layout.public LayoutConfig(int width,
int height)
width - Indicates the width of the table layout, which cannot be less than 0.height - Indicates the height of the table layout, which cannot be less than 0.public LayoutConfig(TableLayout.LayoutConfig source)
LayoutConfig instance.source - Indicates the table layout to copy.public LayoutConfig(ComponentContainer.LayoutConfig params)
ComponentContainer.LayoutConfig instance.
This method invokes the method with the same name in the parent class ComponentContainer.
params - Indicates the layout parameters to copy.