BlazeObjectPositioning - Android
BlazeObjectPositioning defines the horizontal and vertical position of an object within a container. Use it to position UI elements such as titles and indicators inside a widget item.


Properties
xPosition
var xPosition: BlazeObjectXPositionThe horizontal position of the object. See BlazeObjectXPosition below.
yPosition
var yPosition: BlazeObjectYPositionThe vertical position of the object. See BlazeObjectYPosition below.
BlazeObjectXPosition
The BlazeObjectXPosition enum defines the horizontal position of an object relative to a sibling object's start, end, or center axis.
Cases
| Value | Description |
|---|---|
| START_TO_START | Aligns the start edge of the object to the start edge of the second element. |
| START_TO_END | Aligns the start edge of the object to the end edge of the second element. |
| END_TO_START | Aligns the end edge of the object to the start edge of the second element. |
| END_TO_END | Aligns the end edge of the object to the end edge of the second element. |
| CENTER_X | Aligns the center of the object with the center of the second element along the x-axis. |
| CENTER_TO_START | Aligns the center of the object to the start edge of the second element. |
| CENTER_TO_END | Aligns the center of the object to the end edge of the second element. |
BlazeObjectYPosition
The BlazeObjectYPosition enum defines the vertical position of an object relative to a sibling object's top, bottom, or center axis.
Cases
| Value | Description |
|---|---|
| BOTTOM_TO_TOP | Aligns the bottom edge of the object to the top edge of the second element. |
| TOP_TO_TOP | Aligns the top edge of the object to the top edge of the second element. |
| BOTTOM_TO_BOTTOM | Aligns the bottom edge of the object to the bottom edge of the second element. |
| TOP_TO_BOTTOM | Aligns the top edge of the object to the bottom edge of the second element. |
| CENTER_TO_TOP | Aligns the center of the object to the top edge of the second element. |
| CENTER_Y | Aligns the center of the object with the center of the second element along the y-axis. |
| CENTER_TO_BOTTOM | Aligns the center of the object to the bottom edge of the second element. |
Updated 11 days ago
Did this page help you?
