1
+ <Page xmlns =" http://schemas.nativescript.org/tns.xsd" navigatingTo =" navigatingTo" class =" page" xmlns : kt =" @nativescript/keyboard-toolbar" >
2
+ <Page .actionBar>
3
+ <ActionBar title =" keyboard-toolbar" icon =" " class =" action-bar" >
4
+ </ActionBar >
5
+ </Page .actionBar>
6
+ <!-- This GridLayout wrapper is required; it wraps your layout and the Toolbar layouts-->
7
+ <GridLayout >
8
+ <ScrollView >
9
+ <StackLayout class =" p-x-20" >
10
+ <TextField id =" tf1" hint =" Enter the price" keyboardType =" number" borderColor =" #eee" borderWidth =" 1" class =" m-t-15" />
11
+ <TextField id =" tf2" text =" {{ getSliderValue() }}" keyboardType =" number" borderColor =" #eee" borderWidth =" 1" class =" m-t-15" />
12
+ <TextField id =" tf3" text =" {{ email }}" hint =" email@domain.com" keyboardType =" email" borderColor =" #eee" borderWidth =" 1" class =" m-t-15" />
13
+ <TextView id =" tv1" text =" " hint =" Tell us about yourself.." borderColor =" #eee" borderWidth =" 1" height =" 60" class =" m-t-15" android : paddingLeft =" 6" />
14
+ <TextView id =" tv2" text =" Say it with emoji!" borderColor =" #eee" borderWidth =" 1" height =" 60" class =" m-t-15" android : paddingLeft =" 6" />
15
+ <TextView id =" tv3" hint =" Don't @ me! " keyboardType =" email" borderColor =" #eee" borderWidth =" 1" height =" 60" class =" m-t-15 m-b-20" android : paddingLeft =" 6" />
16
+
17
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
18
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
19
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
20
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
21
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
22
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
23
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
24
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
25
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
26
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
27
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
28
+ <Label text =" Added some text to make the page scroll.." class =" scroll-text" />
29
+ </StackLayout >
30
+ </ScrollView >
31
+
32
+ <kt : Toolbar forId =" tf1" height =" 44" showWhenKeyboardHidden =" false" showAtBottomWhenKeyboardHidden =" false" >
33
+ <ScrollView orientation =" horizontal" >
34
+ <StackLayout orientation =" horizontal" class =" toolbar" >
35
+ <Label text =" Quick pick:" color =" #444444" verticalAlignment =" center" horizontalAlignment =" center" />
36
+ <Label text =" {{ iconPriceTag + ' ' + 5 }}" class =" icon price-picker" value =" 5.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
37
+ <Label text =" {{ iconPriceTag + ' ' + 10 }}" class =" icon price-picker" value =" 10.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
38
+ <Label text =" {{ iconPriceTag + ' ' + 50 }}" class =" icon price-picker" value =" 50.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
39
+ <Label text =" {{ iconPriceTag + ' ' + 100 }}" class =" icon price-picker" value =" 100.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
40
+ <Label text =" {{ iconPriceTag + ' ' + 250 }}" class =" icon price-picker" value =" 250.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
41
+ <Label text =" {{ iconPriceTag + ' ' + 500 }}" class =" icon price-picker" value =" 500.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
42
+ <Label text =" {{ iconPriceTag + ' ' + 1000 }}" class =" icon price-picker" value =" 1000.00" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ setAmountInTextField }}" />
43
+ </StackLayout >
44
+ </ScrollView >
45
+ </kt : Toolbar >
46
+
47
+ <kt : Toolbar forId =" tf2" height =" 60" >
48
+ <GridLayout rows =" auto, *" columns =" auto, *, auto" class =" toolbar" >
49
+ <Label colSpan =" 3" text =" {{ getSliderValue() }}" class =" slider-label slider-label-{{ getSliderValue() < 0 || getSliderValue() > 100 ? 'in' : '' }}valid" verticalAlignment =" bottom" horizontalAlignment =" center" />
50
+ <Label row =" 1" col =" 0" text =" 0" class =" slider-min-max" verticalAlignment =" bottom" horizontalAlignment =" center" />
51
+ <Slider row =" 1" col =" 1" value =" {{ sliderValue }}" width =" 100%" minValue =" 0" maxValue =" 100" verticalAlignment =" bottom" horizontalAlignment =" center" />
52
+ <Label row =" 1" col =" 2" text =" 100" class =" slider-min-max" verticalAlignment =" bottom" horizontalAlignment =" center" />
53
+ </GridLayout >
54
+ </kt : Toolbar >
55
+
56
+ <kt : Toolbar forId =" tf3" height =" 44" >
57
+ <GridLayout columns =" auto, auto, *" class =" toolbar" >
58
+ <Label col =" 0" text =" {{ iconValid }}" class =" icon m-l-10 email-valid" verticalAlignment =" center" horizontalAlignment =" center" visibility =" {{ emailOK() ? 'visible' : 'collapse' }}" />
59
+ <Label col =" 0" text =" {{ iconInvalid }}" class =" icon m-l-10 email-invalid" verticalAlignment =" center" horizontalAlignment =" center" visibility =" {{ !emailOK() ? 'visible' : 'collapse' }}" />
60
+ <Label col =" 1" text =" {{ emailOK() ? 'looks good! 🍻' : 'email not OK yet..' }}" verticalAlignment =" center" horizontalAlignment =" center" />
61
+ <Button col =" 2" text =" close" verticalAlignment =" center" horizontalAlignment =" right" class =" m-r-10" tap =" {{ hideKeyboardTf3 }}" />
62
+ </GridLayout >
63
+ </kt : Toolbar >
64
+
65
+ <kt : Toolbar forId =" tv1" height =" 44" showWhenKeyboardHidden =" false" showAtBottomWhenKeyboardHidden =" false" >
66
+ <GridLayout columns =" auto, auto, auto, auto, auto, auto, *, auto" class =" toolbar" >
67
+ <Label col =" 0" text =" {{ iconDown }}" class =" icon m-l-10" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ goToTv2 }}" />
68
+ <Label col =" 1" text =" {{ iconPaperclip }}" class =" icon" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ onTapTv1Camera }}" />
69
+ <Label col =" 2" text =" {{ iconCamera }}" class =" icon" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ onTapTv1Camera }}" />
70
+ <Label col =" 3" text =" {{ iconExpand }}" class =" icon" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ onTapTv1Expand }}" />
71
+ <Label col =" 4" text =" {{ iconContract }}" class =" icon" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ onTapTv1Contract }}" />
72
+ <Label col =" 5" text =" {{ iconTrash }}" class =" icon icon-trash" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ onTapTv1Trash }}" />
73
+ <!-- <Button col="6" text="{{ iconMicrophone }}" class="icon" verticalAlignment="center" horizontalAlignment="right"/>-->
74
+ <Button col =" 6" text =" close" verticalAlignment =" center" horizontalAlignment =" right" class =" m-r-10" tap =" {{ hideKeyboardTv1 }}" />
75
+ </GridLayout >
76
+ </kt : Toolbar >
77
+
78
+ <kt : Toolbar forId =" tv2" height =" 44" showWhenKeyboardHidden =" false" showAtBottomWhenKeyboardHidden =" false" >
79
+ <GridLayout columns =" *, *, *, *, *, *" class =" toolbar" >
80
+ <Label col =" 0" text =" 👍" tap =" {{ appendToTextView2 }}" />
81
+ <Label col =" 1" text =" 👎" tap =" {{ appendToTextView2 }}" />
82
+ <Label col =" 2" text =" 😄" tap =" {{ appendToTextView2 }}" />
83
+ <Label col =" 3" text =" 🎉" tap =" {{ appendToTextView2 }}" />
84
+ <Label col =" 4" text =" 😕" tap =" {{ appendToTextView2 }}" />
85
+ <Label col =" 5" text =" ❤️" tap =" {{ appendToTextView2 }}" />
86
+ </GridLayout >
87
+ </kt : Toolbar >
88
+
89
+ <kt : Toolbar forId =" tv3" height =" 44" >
90
+ <ScrollView orientation =" horizontal" class =" toolbar toolbar-twitter" >
91
+ <StackLayout orientation =" horizontal" >
92
+ <Label text =" Type an @ to search for a Twitter handle" visibility =" {{ showEddy || showRob || showTrumpsTies ? 'collapse' : 'visible' }}" verticalAlignment =" center" horizontalAlignment =" center" />
93
+ <Label text =" @eddyverbruggen" visibility =" {{ showEddy ? 'visible' : 'collapse' }}" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ appendToTextView3 }}" />
94
+ <Label text =" @roblauer" visibility =" {{ showRob ? 'visible' : 'collapse' }}" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ appendToTextView3 }}" />
95
+ <Label text =" @trumpsties" visibility =" {{ showTrumpsTies ? 'visible' : 'collapse' }}" verticalAlignment =" center" horizontalAlignment =" center" tap =" {{ appendToTextView3 }}" />
96
+ </StackLayout >
97
+ </ScrollView >
98
+ </kt : Toolbar >
99
+
100
+ </GridLayout >
101
+ </Page >
0 commit comments