Cloneablepublic static class AdaptiveBoxLayout.LayoutConfig extends ComponentContainer.LayoutConfig
AdaptiveBoxLayout instance, including their width,
height, margins, and gravity.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
alignment |
Indicates the alignment value of a component.
|
height, MATCH_CONTENT, MATCH_PARENT, width| 构造器 | 说明 |
|---|---|
LayoutConfig() |
Default constructor used to create an
AdaptiveBoxLayout.LayoutConfig instance by setting the width
and height to the default value MATCH_CONTENT. |
LayoutConfig(int width,
int height) |
A constructor used to create an
AdaptiveBoxLayout.LayoutConfig instance by specifying the width
and height. |
LayoutConfig(int width,
int height,
int alignment) |
A constructor used to create an
AdaptiveBoxLayout.LayoutConfig instance by specifying the width,
height, and gravity. |
LayoutConfig(AdaptiveBoxLayout.LayoutConfig source) |
A constructor used to create an
AdaptiveBoxLayout.LayoutConfig instance by extracting width,
height, margin, and gravity settings from an existing instance. |
LayoutConfig(ComponentContainer.LayoutConfig source) |
A constructor used to create an
AdaptiveBoxLayout.LayoutConfig instance by extracting width,
height, and margin settings from an existing instance. |
LayoutConfig(Context context,
AttrSet attrSet) |
A constructor used to create a
AdaptiveBoxLayout.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 int alignment
LayoutAlignmentpublic LayoutConfig()
AdaptiveBoxLayout.LayoutConfig instance by setting the width
and height to the default value MATCH_CONTENT.public LayoutConfig(int width,
int height)
AdaptiveBoxLayout.LayoutConfig instance by specifying the width
and height.width - Indicates the width, which can be a specific value, ComponentContainer.LayoutConfig.MATCH_PARENT, or
ComponentContainer.LayoutConfig.MATCH_CONTENT.height - Indicates the height, which can be a specific value, ComponentContainer.LayoutConfig.MATCH_PARENT, or
ComponentContainer.LayoutConfig.MATCH_CONTENT.public LayoutConfig(int width,
int height,
int alignment)
AdaptiveBoxLayout.LayoutConfig instance by specifying the width,
height, and gravity.width - Indicates the width, which can be a specific value, ComponentContainer.LayoutConfig.MATCH_PARENT, or
ComponentContainer.LayoutConfig.MATCH_CONTENT.height - Indicates the height, which can be a specific value, ComponentContainer.LayoutConfig.MATCH_PARENT, or
ComponentContainer.LayoutConfig.MATCH_CONTENT.alignment - Indicates the alignment value.public LayoutConfig(Context context, AttrSet attrSet)
AdaptiveBoxLayout.LayoutConfig instance based on the context and
attribute set.context - Indicates the application context.attrSet - Indicates the attribute set to be used.public LayoutConfig(ComponentContainer.LayoutConfig source)
AdaptiveBoxLayout.LayoutConfig instance by extracting width,
height, and margin settings from an existing instance.source - Indicates the parameters of the existing instance.public LayoutConfig(AdaptiveBoxLayout.LayoutConfig source)
AdaptiveBoxLayout.LayoutConfig instance by extracting width,
height, margin, and gravity settings from an existing instance.source - Indicates the parameters of the existing instance.