Cloneablepublic static class SlideDrawer.LayoutConfig extends ComponentContainer.LayoutConfig
SlideDrawer, including the width, height, margin,
SlideDirection, and DisplayMode.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
SlideDrawer.SlideDirection |
direction |
Indicates the direction value.
|
height, MATCH_CONTENT, MATCH_PARENT, width| 构造器 | 说明 |
|---|---|
LayoutConfig() |
Default constructor used to create a
LayoutConfig instance, where the default width and height have
been set for MATCH_CONTENT. |
LayoutConfig(int width,
int height) |
A constructor used to create a
LayoutConfig instance with specified layout width and height. |
LayoutConfig(int width,
int height,
SlideDrawer.SlideDirection direction) |
A constructor used to create a
LayoutConfig instance with the specified width, height, and alignment
parameters of a layout. |
LayoutConfig(ComponentContainer.LayoutConfig source) |
A constructor used to create a
LayoutConfig instance with the parameters (width, height, and margin)
of a source layout. |
LayoutConfig(SlideDrawer.LayoutConfig source) |
A constructor used to create a
LayoutConfig instance with the parameters
(width, height, margin, SlideDirection, and DisplayMode) of a source 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 SlideDrawer.SlideDirection direction
public LayoutConfig()
LayoutConfig instance, where the default width and height have
been set for MATCH_CONTENT.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 use.public LayoutConfig(int width,
int height)
LayoutConfig instance with specified layout width and height.width - Indicates the width, which can be
ComponentContainer.LayoutConfig.MATCH_PARENT or ComponentContainer.LayoutConfig.MATCH_CONTENT.height - Indicates the height, which can be
ComponentContainer.LayoutConfig.MATCH_PARENT or ComponentContainer.LayoutConfig.MATCH_CONTENT.public LayoutConfig(int width,
int height,
SlideDrawer.SlideDirection direction)
LayoutConfig instance with the specified width, height, and alignment
parameters of a layout.width - Indicates the width, which can be
ComponentContainer.LayoutConfig.MATCH_PARENT or ComponentContainer.LayoutConfig.MATCH_CONTENT.height - Indicates the height, which can be
ComponentContainer.LayoutConfig.MATCH_PARENT or ComponentContainer.LayoutConfig.MATCH_CONTENT.direction - Indicates the SlideDirection value.public LayoutConfig(SlideDrawer.LayoutConfig source)
LayoutConfig instance with the parameters
(width, height, margin, SlideDirection, and DisplayMode) of a source layout.source - Indicates parameters of the source layout.public LayoutConfig(ComponentContainer.LayoutConfig source)
LayoutConfig instance with the parameters (width, height, and margin)
of a source layout.source - Indicates parameters of the source layout.