Class LinearLayout
Definition
- Assembly:
- Tizen.NUI.dll
[Draft] This class implements a linear box layout, automatically handling right to left or left to right direction change.
public class LinearLayout : LayoutGroup, ILayoutParent
- Inheritance
- Implements
Constructors
View SourceLinearLayout()
[Draft] Constructor
Declaration
public LinearLayout()
Properties
View SourceCellPadding
[Draft] Get/Set the padding between cells in the layout
Declaration
public Size2D CellPadding { get; set; }
Property Value
Type | Description |
---|---|
Size2D |
LinearAlignment
[Draft] Get/Set the alignment in the layout
Declaration
public LinearLayout.Alignment LinearAlignment { get; set; }
Property Value
Type | Description |
---|---|
LinearLayout.Alignment |
LinearOrientation
[Draft] Get/Set the orientation in the layout
Declaration
public LinearLayout.Orientation LinearOrientation { get; set; }
Property Value
Type | Description |
---|---|
LinearLayout.Orientation |
Methods
View SourceOnLayout(bool, LayoutLength, LayoutLength, LayoutLength, LayoutLength)
Layout should assign a size and position to each of its children.
Declaration
protected override void OnLayout(bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom)
Parameters
Type | Name | Description |
---|---|---|
bool | changed | This is a new size or position for this layout. |
LayoutLength | left | Left position, relative to parent. |
LayoutLength | top | Top position, relative to parent. |
LayoutLength | right | Right position, relative to parent. |
LayoutLength | bottom | Bottom position, relative to parent. |
Overrides
View SourceOnMeasure(MeasureSpecification, MeasureSpecification)
Measure the layout and its content to determine the measured width and the measured height.
Declaration
protected override void OnMeasure(MeasureSpecification widthMeasureSpec, MeasureSpecification heightMeasureSpec)
Parameters
Type | Name | Description |
---|---|---|
MeasureSpecification | widthMeasureSpec | horizontal space requirements as imposed by the parent. |
MeasureSpecification | heightMeasureSpec | vertical space requirements as imposed by the parent. |