Skip to content
UILayout

UI / UILayout

UILayout Class

Container Automatic layout Rules

Table of contents

Properties

autoLayout: boolean
Auto layout
autoWrap: boolean
Is it grid mode
childCollation: UIChildCollation
Child object layout Rules
layout: UILayoutType
Automatic layout rules
layoutPacket: UILayoutPacket
Automatic Layout Node Arrangement Rules
layoutSpace: number
Arrangement interval
padding: Margin
Four sided margin

Constructor, pass in each value

Parameters

InLayoutSpace numberUsage: Arrange interval range: No restrictions type: Floating point number
InPadding MarginUsage: Four sided margin
InLayout UILayoutTypeUsage: automatic layout rules
InLayoutPacket UILayoutPacketUsage: Automatic Layout Node Arrangement Rules
InHugType UIHugContentAuto layout Type
InAutoLayout booleanUsage: Does it automatically layout
InAutoWrap booleanUsage: Grid mode or not

new UILayout(InLayoutSpace, InPadding, InLayout, InLayoutPacket, InHugType, InAutoLayout, InAutoWrap, InChildCollation)

Constructor, pass in each value

Parameters

InLayoutSpace numberUsage: Arrange interval range: No restrictions type: Floating point number
InPadding MarginUsage: Four sided margin
InLayout UILayoutTypeUsage: automatic layout rules
InLayoutPacket UILayoutPacketUsage: Automatic Layout Node Arrangement Rules
InHugType UIHugContentAuto layout Type
InAutoLayout booleanUsage: Does it automatically layout
InAutoWrap booleanUsage: Grid mode or not
InChildCollation UIChildCollationUsage: Sub item sorting rules

Properties

autoLayout

autoLayout: boolean

Auto layout


autoWrap

autoWrap: boolean

Is it grid mode


childCollation

childCollation: UIChildCollation

Child object layout Rules


layout

layout: UILayoutType

Automatic layout rules


layoutPacket

layoutPacket: UILayoutPacket

Automatic Layout Node Arrangement Rules


layoutSpace

layoutSpace: number

Arrangement interval


padding

padding: Margin

Four sided margin