public static class Ability.LayoutParamsHelper extends Object
Intent to set the layout parameters of the application startup window.SystemCapability.Aafwk#ABILITY| 构造器 | 说明 |
|---|---|
LayoutParamsHelper(Intent intentLayout) |
A constructor used to create a
LayoutParamsHelper instance that contains the layout parameters
carried in the specified Intent object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Ability.LayoutParamsHelper |
setAlignment(int alignment) |
Sets the alignment of the window.
|
Ability.LayoutParamsHelper |
setAlpha(float alpha) |
Sets the alpha of the window.
|
Ability.LayoutParamsHelper |
setDimAmount(float dimAmount) |
Sets the amount of dim behind the window.
|
Ability.LayoutParamsHelper |
setFlags(int flags,
int mask) |
Sets the flags of the window.
|
Ability.LayoutParamsHelper |
setHeight(int height) |
Sets the height of the window.
|
Ability.LayoutParamsHelper |
setWidth(int width) |
Sets the width of the window.
|
Ability.LayoutParamsHelper |
setX(int x) |
Sets the X coordinate of the window.
|
Ability.LayoutParamsHelper |
setY(int y) |
Sets the Y coordinate of the window.
|
public LayoutParamsHelper(Intent intentLayout)
LayoutParamsHelper instance that contains the layout parameters
carried in the specified Intent object.intentLayout - Indicates the Intent object that carries layout parameters.public Ability.LayoutParamsHelper setX(int x)
x - Indicates the X coordinate set in WindowManager.LayoutConfig.x.LayoutParamsHelper object with the specified X coordinate.public Ability.LayoutParamsHelper setY(int y)
y - Indicates the Y coordinate set in WindowManager.LayoutConfig.y.LayoutParamsHelper object with the specified Y coordinate.public Ability.LayoutParamsHelper setWidth(int width)
width - Indicates the width set in
WindowManager.LayoutConfig.width.LayoutParamsHelper object with the specified width.public Ability.LayoutParamsHelper setHeight(int height)
height - Indicates the height set in
WindowManager.LayoutConfig.height.LayoutParamsHelper object with the specified height.public Ability.LayoutParamsHelper setAlpha(float alpha)
alpha - Indicates the alpha set in
WindowManager.LayoutConfig.alpha.LayoutParamsHelper object with the specified alpha.public Ability.LayoutParamsHelper setDimAmount(float dimAmount)
dimAmount - Indicates the amount of dim set in
WindowManager.LayoutConfig.dim.LayoutParamsHelper object with the specified amount of dim.public Ability.LayoutParamsHelper setFlags(int flags, int mask)
flags - Indicates the flags set in
WindowManager.LayoutConfig.flags.mask - bit mask for flagsLayoutParamsHelper object with the specified flags.public Ability.LayoutParamsHelper setAlignment(int alignment)
alignment - Indicates the alignment set in
WindowManager.LayoutConfig.alignment.LayoutParamsHelper object with the specified alignment.