-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpage.xml
More file actions
47 lines (47 loc) · 1.74 KB
/
page.xml
File metadata and controls
47 lines (47 loc) · 1.74 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
<Page
xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
<Page.actionBar>
<ActionBar title="Settings" />
</Page.actionBar>
<ScrollView>
<StackLayout style="margin: 15;">
<Label text="Duration (in seconds):" />
<GridLayout columns="*,auto">
<Slider col="0" minValue="0" maxValue="10" value="{{ duration }}" />
<Label col="1" text="{{ duration }}" />
</GridLayout>
<Label text="Delay (in seconds):" />
<GridLayout columns="*,auto">
<Slider minValue="0" maxValue="10" value="{{ delay }}" />
<Label col="1" text="{{ delay }}" />
</GridLayout>
<Label text="Iterations count:" />
<GridLayout columns="*,auto">
<Slider minValue="0" maxValue="10" value="{{ iterations }}" />
<Label col="1" text="{{ iterations }}" />
</GridLayout>
<GridLayout rows="auto,auto">
<Label text="Direction:"/>
<SegmentedBar row="1" id="direction" style="margin: 5" selectedIndex="{{ selectedDirectionIndex }}">
<SegmentedBar.items>
<SegmentedBarItem title="Normal" />
<SegmentedBarItem title="Reverse" />
</SegmentedBar.items>
</SegmentedBar>
</GridLayout>
<GridLayout rows="auto,auto">
<Label text="Fill mode:" />
<SegmentedBar row="1" id="fill" style="margin: 5" selectedIndex="{{ selectedFillIndex }}">
<SegmentedBar.items>
<SegmentedBarItem title="None" />
<SegmentedBarItem title="Forwards" />
</SegmentedBar.items>
</SegmentedBar>
</GridLayout>
<Button text="Animate" tap="{{ onAnimate }}" height="40"/>
<AbsoluteLayout height="100" clipToBounds="true" backgroundColor="LightGray" margin="5">
<Image id="img" src="~/res/icon_100x100.png" width="50" height="50" left="0" top="25" />
</AbsoluteLayout>
</StackLayout>
</ScrollView>
</Page>