Defines the width of a UI component.
Defines the height of a UI component.
Pins the left side of a UI component relative to its parent. Measured from the parent's left bound.
Pins the right side of a UI component relative to its parent. Measured from the parent's right bound.
Pins the top of a UI component relative to its parent. Measured from the parent's top bound.
Pins the bottom of a UI component relative to its parent. Measured from the parent's bottom bound.
Dictionary with properties
Defines how the component lays out its children. One of "vertical", "horizontal" or "composite".
Stack order of UI component in its parent. Higher values are rendered towards the top, in front of components with lower values.
Could be used as a layout parameter prior to Release 2.0. In Release 2.0,
New in Release 2.0,
View Types and Default Layout Behavior
In previous versions of the Titanium SDK, the sandbox height of a child was independent of its sibling's dimensions. Now all children in a row have the same sandbox height. (See section on #Horizontal and Vertical Layouts below).
The following code sample creates a view with horizontal layout that contains two children. In Release 1.8, the green child is laid out flush to the top of the parent view. In Release 2.0, the green child is centered relative to its larger neighbor.