class WidgetLayoutParam
class WidgetLayoutParam implements Parcelable
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Widget layout parameters (used for layout configuration of child views within a parent container).
Supported since MSDK 5.20.1
Class Members:
method setMargin
void setMargin(int left, int top, int right, int bottom)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the margins on all four sides.
Supported since MSDK 5.20.1
| int left | Left margin (dp). |
| int top | Top margin (dp). |
| int right | Right margin (dp). |
| int bottom | Bottom margin (dp). |
method setMarginLeft
void setMarginLeft(int margin)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the left margin.
Supported since MSDK 5.20.1
| int margin | Left margin (dp). |
method setMarginTop
void setMarginTop(int margin)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the top margin.
Supported since MSDK 5.20.1
| int margin | Top margin (dp). |
method setMarginRight
void setMarginRight(int margin)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the right margin.
Supported since MSDK 5.20.1
| int margin | Right margin (dp). |
method setMarginBottom
void setMarginBottom(int margin)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the bottom margin.
Supported since MSDK 5.20.1
| int margin | Bottom margin (dp). |
method getMarginLeft
| Package: | dji.open.pilot.base.ui.model |
Description:
Gets the left margin.
Supported since MSDK 5.20.1
Return:
method getMarginTop
| Package: | dji.open.pilot.base.ui.model |
Description:
Gets the top margin.
Supported since MSDK 5.20.1
Return:
method getMarginRight
| Package: | dji.open.pilot.base.ui.model |
Description:
Gets the right margin.
Supported since MSDK 5.20.1
Return:
method getMarginBottom
| Package: | dji.open.pilot.base.ui.model |
Description:
Gets the bottom margin.
Supported since MSDK 5.20.1
Return:
method setWeight
void setWeight(float weight)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the weight (used with LinearLayout; the dimension in the corresponding direction should be set to 0).
Supported since MSDK 5.20.1
| float weight | The weight value. |
method getWeight
| Package: | dji.open.pilot.base.ui.model |
Description:
Gets the weight.
Supported since MSDK 5.20.1
Return:
method setLayoutGravity
void setLayoutGravity(GravityType gravity)
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Sets the alignment within the parent container.
Supported since MSDK 5.20.1
method getLayoutGravity
GravityType getLayoutGravity()
|
| Package: | dji.open.pilot.base.ui.model |
Description:
Gets the alignment within the parent container.
Supported since MSDK 5.20.1
Return: