Dynamic Space¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Dynamic Components | API 21, Android 5.0 Lollipop | 2 |
Overview¶
A component to create dynamic space in Arrangements.
Methods¶
Create Space¶
Create a new space component dynamically. Use for width/height '-1' for wrap content or '-2' for fill parent.
Params | |
---|---|
id | Number |
arrangement | Component |
width | Number |
height | Number |
Delete Space¶
Remove a space component with the given id.
Params | |
---|---|
id | Number |
Get Height¶
Returns: Number
Get the Height of a space component.
Params | |
---|---|
id | Number |
Get Space By Id¶
Returns: Component
Returns the space referenced by its id.
Params | |
---|---|
id | Number |
Get Width¶
Returns: Number
Get the Width of a space component.
Params | |
---|---|
id | Number |
Set Height¶
Update the Height of a space component.
Params | |
---|---|
id | Number |
height | Number |
Set Width¶
Update the Width of a space component.
Params | |
---|---|
id | Number |
width | Number |
Last update: November 9, 2022