1
- <Page xmlns =" http://schemas.nativescript.org/tns.xsd" >
1
+ <Page xmlns =" http://schemas.nativescript.org/tns.xsd" actionBarHidden = " true " >
2
2
<GridLayout rows =" auto, *" >
3
- <GridLayout class =" control" columns =" auto, *" rows =" 30, 30, 30, 30, 30, 25, 15, 15, 15, 30, 30" >
4
- <Label row =" 0" text =" FlexDirection" verticalAlignment =" center" />
5
- <FlexboxLayout row =" 0" col =" 1" flexWrap =" wrap" alignContent =" stretch" >
3
+ <GridLayout class =" control" columns =" auto, *" rows =" 25, 15, 25, 15, 25, 15, 15, 15, 15, 25, 15" >
4
+
5
+ <Label row =" 0" text =" flexDirection" verticalAlignment =" center" />
6
+ <FlexboxLayout row =" 0" col =" 1" >
6
7
<Button text =" row" tap =" flexDirection" flexGrow =" 1" automationText =" flexDirection-row" />
7
8
<Button text =" row-reverse" tap =" flexDirection" flexGrow =" 1" automationText =" flexDirection-row-reverse" />
8
9
<Button text =" column" tap =" flexDirection" flexGrow =" 1" automationText =" flexDirection-column" />
9
10
<Button text =" column-reverse" tap =" flexDirection" flexGrow =" 1" automationText =" flexDirection-column-reverse" />
10
11
</FlexboxLayout >
11
12
12
- <Label row =" 1" text =" FlexWrap " verticalAlignment =" center" />
13
- <FlexboxLayout row =" 1" col =" 1" flexWrap = " wrap " alignContent = " stretch " >
13
+ <Label row =" 1" text =" flexWrap " verticalAlignment =" center" />
14
+ <FlexboxLayout row =" 1" col =" 1" >
14
15
<Button text =" nowrap" tap =" flexWrap" flexGrow =" 1" automationText =" flexWrap-nowrap" />
15
16
<Button text =" wrap" tap =" flexWrap" flexGrow =" 1" automationText =" flexWrap-wrap" />
16
17
<Button text =" wrap-reverse" tap =" flexWrap" flexGrow =" 1" automationText =" flexWrap-wrap-reverse" />
17
18
</FlexboxLayout >
18
19
19
- <Label row =" 2" text =" JustifyContent " verticalAlignment =" center" />
20
- <FlexboxLayout row =" 2" col =" 1" flexWrap = " wrap " alignContent = " stretch " >
20
+ <Label row =" 2" text =" justifyContent " verticalAlignment =" center" />
21
+ <FlexboxLayout row =" 2" col =" 1" >
21
22
<Button text =" flex-start" tap =" justifyContent" flexGrow =" 1" automationText =" justifyContent-flex-start" />
22
23
<Button text =" flex-end" tap =" justifyContent" flexGrow =" 1" automationText =" justifyContent-flex-end" />
23
24
<Button text =" center" tap =" justifyContent" flexGrow =" 1" automationText =" justifyContent-center" />
26
27
</FlexboxLayout >
27
28
28
29
<Label row =" 3" text =" alignItems" verticalAlignment =" center" />
29
- <FlexboxLayout row =" 3" col =" 1" flexWrap = " wrap " alignContent = " stretch " >
30
+ <FlexboxLayout row =" 3" col =" 1" >
30
31
<Button text =" flex-start" tap =" alignItems" flexGrow =" 1" automationText =" alignItems-flex-start" />
31
32
<Button text =" flex-end" tap =" alignItems" flexGrow =" 1" automationText =" alignItems-flex-end" />
32
33
<Button text =" center" tap =" alignItems" flexGrow =" 1" automationText =" alignItems-center" />
35
36
</FlexboxLayout >
36
37
37
38
<Label row =" 4" text =" alignContent" verticalAlignment =" center" />
38
- <FlexboxLayout row =" 4" col =" 1" flexWrap = " wrap " alignContent = " stretch " >
39
+ <FlexboxLayout row =" 4" col =" 1" >
39
40
<Button text =" flex-start" tap =" alignContent" flexGrow =" 1" automationText =" alignItems-flex-start" />
40
41
<Button text =" flex-end" tap =" alignContent" flexGrow =" 1" automationText =" alignItems-flex-end" />
41
42
<Button text =" center" tap =" alignContent" flexGrow =" 1" automationText =" alignItems-center" />
47
48
<Label row =" 5" colSpan =" 2" text =" --- selected item properties ---" />
48
49
49
50
<Label text =" order" row =" 6" />
50
- <FlexboxLayout row =" 6" col =" 1" alignContent = " stretch " >
51
+ <FlexboxLayout row =" 6" col =" 1" >
51
52
<Button text =" 0" tap =" order" flexGrow =" 1" automationText =" order-0" />
52
53
<Button text =" 1" tap =" order" flexGrow =" 1" automationText =" order-1" />
53
54
<Button text =" 2" tap =" order" flexGrow =" 1" automationText =" order-2" />
56
57
</FlexboxLayout >
57
58
58
59
<Label text =" flexGrow" row =" 7" />
59
- <FlexboxLayout row =" 7" col =" 1" alignContent = " stretch " >
60
+ <FlexboxLayout row =" 7" col =" 1" >
60
61
<Button text =" 0" tap =" flexGrow" flexGrow =" 1" automationText =" flexGrow-0" />
61
62
<Button text =" 1" tap =" flexGrow" flexGrow =" 1" automationText =" flexGrow-1" />
62
63
<Button text =" 2" tap =" flexGrow" flexGrow =" 1" automationText =" flexGrow-2" />
65
66
</FlexboxLayout >
66
67
67
68
<Label text =" flexShrink" row =" 8" />
68
- <FlexboxLayout row =" 8" col =" 1" alignContent = " stretch " >
69
+ <FlexboxLayout row =" 8" col =" 1" >
69
70
<Button text =" 0" tap =" flexShrink" flexGrow =" 1" automationText =" flexShrink-0" />
70
71
<Button text =" 1" tap =" flexShrink" flexGrow =" 1" automationText =" flexShrink-1" />
71
72
<Button text =" 2" tap =" flexShrink" flexGrow =" 1" automationText =" flexShrink-2" />
74
75
</FlexboxLayout >
75
76
76
77
<Label row =" 9" text =" alignSelf" verticalAlignment =" center" />
77
- <FlexboxLayout row =" 9" col =" 1" flexWrap = " wrap " alignContent = " stretch " >
78
+ <FlexboxLayout row =" 9" col =" 1" >
78
79
<Button text =" auto" tap =" alignSelf" flexGrow =" 1" automationText =" alignSelf-auto" />
79
80
<Button text =" flex-start" tap =" alignSelf" flexGrow =" 1" automationText =" alignSelf-flex-start" />
80
81
<Button text =" flex-end" tap =" alignSelf" flexGrow =" 1" automationText =" alignSelf-flex-end" />
84
85
</FlexboxLayout >
85
86
86
87
<Label row =" 10" text =" flexWrapBefore" verticalAlignment =" center" />
87
- <FlexboxLayout row =" 10" col =" 1" flexWrap = " wrap " alignContent = " stretch " >
88
+ <FlexboxLayout row =" 10" col =" 1" >
88
89
<Button text =" true" tap =" flexWrapBefore" flexGrow =" 1" automationText =" flexWrapBefore-true" />
89
90
<Button text =" false" tap =" flexWrapBefore" flexGrow =" 1" automationText =" flexWrapBefore-false" />
90
91
</FlexboxLayout >
91
92
</GridLayout >
92
93
93
- <FlexboxLayout id =" container" row =" 1" borderWidth =" 1" borderColor =" black" margin =" 10" >
94
- <Label text =" row" tap =" select" margin =" 10" />
95
- <Label text =" row-reverse" tap =" select" />
96
- <Label text =" column" tap =" select" />
97
- <Label text =" column-reverse" tap =" select" />
98
- <Label text =" row" tap =" select" />
99
- <Label text =" row-reverse" tap =" select" />
100
- <Label text =" column" tap =" select" />
101
- <Label text =" column-reverse" tap =" select" />
102
- <Label text =" row" tap =" select" />
103
- <Label text =" row-reverse" tap =" select" />
104
- <Label text =" column" tap =" select" />
105
- <Label text =" column-reverse" tap =" select" />
106
- <Label text =" row" tap =" select" />
94
+ <FlexboxLayout id =" container" row =" 1" >
95
+ <Label text =" row" tap =" select" margin =" 10" backgroundColor =" yellow" automationText =" itemRow-0" />
96
+ <Label text =" row-reverse" tap =" select" backgroundColor =" lightgreen" automationText =" itemRowReverse-0" />
97
+ <Label text =" column" tap =" select" backgroundColor =" lightblue" automationText =" itemColumn-0" />
98
+ <Label text =" column-reverse" tap =" select" backgroundColor =" lightsalmon" automationText =" itemColumnReverse-0" />
99
+
100
+ <Label text =" row" tap =" select" backgroundColor =" yellow" automationText =" itemRow-1" />
101
+ <Label text =" row-reverse" tap =" select" backgroundColor =" lightgreen" automationText =" itemRowReverse-1" />
102
+ <Label text =" column" tap =" select" backgroundColor =" lightblue" automationText =" itemColumn-1" />
103
+ <Label text =" column-reverse" tap =" select" backgroundColor =" lightsalmon" automationText =" itemColumnReverse-1" />
104
+
105
+ <!--
106
+ <Label text="row" tap="select" backgroundColor="yellow" automationText="itemRow-2" />
107
+ <Label text="row-reverse" tap="select" backgroundColor="lightgreen" automationText="itemRowReverse-2" />
108
+ <Label text="column" tap="select" backgroundColor="lightblue" automationText="itemColumn-2" />
109
+ <Label text="column-reverse" tap="select" backgroundColor="lightsalmon" automationText="itemColumnReverse-2" />
110
+ -->
107
111
</FlexboxLayout >
108
112
</GridLayout >
109
113
</Page >
0 commit comments