forked from NativeScript/NativeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainPage.xml
More file actions
84 lines (80 loc) · 3.34 KB
/
mainPage.xml
File metadata and controls
84 lines (80 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="MyPageLoaded"
xmlns:customControls="xml-declaration/mymodule"
xmlns:customControls2="xml-declaration/mymodulewithxml">
<TabView>
<TabView.items>
<TabViewItem title="Tab 1">
<TabViewItem.view>
<StackLayout>
<WebView src="<html><body><span style='color:red'>Test</span></body></html>" />
<!--<ToolBar>
<ToolBar.items>
<ToolBarItem>
<ToolBarItem.view>
<Label text="Label" />
</ToolBarItem.view>
</ToolBarItem>
<ToolBarItem>
<ToolBarItem.view>
<Button text="Button" />
</ToolBarItem.view>
</ToolBarItem>
<ToolBarItem>
<ToolBarItem.view>
<Image url="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Places-favorites-icon.png" />
</ToolBarItem.view>
</ToolBarItem>
</ToolBar.items>
</ToolBar>-->
<SegmentedBar selectedIndex="1" style="background-color: red; color: white" selectedBackgroundColor="green">
<SegmentedBar.items>
<SegmentedBarItem title="MAY 3" />
<SegmentedBarItem title="MAY 4" />
<SegmentedBarItem title="MAY 5" />
</SegmentedBar.items>
</SegmentedBar>
<ListPicker items="{{ someItems }}" selectedIndex="3"/>
<DatePicker year="1976" month="10" day="30" />
<TimePicker hour="10" minute="34" />
<Image id="cameraImage" />
<Button tap="setPicture" text="Get picture and set is to the image" />
<Border cornerRadius="10" borderWidth="1" borderColor="#FF0000">
<Button text="{{ text }}" tap="{{ myFunction }}" />
</Border>
<Label id="Label1" text="This is Label!" />
<StackLayout orientation="horizontal">
<Label text="From expression {{ id + 1 }}: " />
<Label text="{{ id + 1 }}" />
<customControls:MyControl>
<Label text="This is test!" />
</customControls:MyControl>
</StackLayout>
<StackLayout orientation="horizontal">
<Label text="From sub prop {{ subObj.subId + 1 }}: " />
<Label text="{{ subObj.subId + 1 }}" />
</StackLayout>
<Button text="This is Button!" tap="buttonTap" />
<customControls:MyControl />
</StackLayout>
</TabViewItem.view>
</TabViewItem>
<TabViewItem title="Tab 2">
<TabViewItem.view>
<StackLayout>
<customControls2:MyControl />
<Label text="This is Label in Tab 2" />
</StackLayout>
</TabViewItem.view>
</TabViewItem>
<TabViewItem title="Tab 3">
<TabViewItem.view>
<GridLayout columns="50, auto, *" rows="50, auto, *">
<Label text="This is Label in Tab 3" row="0" />
<Label text="This is second Label in Tab 3" row="1" />
<customControls:MyControl />
</GridLayout>
</TabViewItem.view>
</TabViewItem>
</TabView.items>
</TabView>
</Page>