-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathcamera.xml
More file actions
30 lines (30 loc) · 1.74 KB
/
camera.xml
File metadata and controls
30 lines (30 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
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo">
<ScrollView>
<GridLayout rows="auto, *, auto, auto, auto">
<StackLayout row="0" orientation="vertical" padding="5">
<StackLayout orientation="horizontal" row="0" padding="5">
<Label text="saveToGallery" />
<Switch checked="{{ saveToGallery }}"/>
</StackLayout>
<StackLayout android:visibility="collapsed" orientation="horizontal" row="0" padding="5">
<Label text="allowsEditing" />
<Switch checked="{{ allowsEditing }}"/>
</StackLayout>
<StackLayout orientation="horizontal" row="0" padding="5">
<Label text="keepAspectRatio" />
<Switch checked="{{ keepAspectRatio }}"/>
</StackLayout>
<StackLayout orientation="horizontal" padding="5">
<Label text="width"></Label>
<TextField hint="Enter width" keyboardType="number" text="{{ width }}" class="input"></TextField>
<Label text="height"></Label>
<TextField hint="Enter height" keyboardType="number" text="{{ height }}" class="input"></TextField>
</StackLayout>
</StackLayout>
<Image row="1" src="{{ cameraImage }}" id="image" stretch="aspectFit" margin="10"/>
<TextView row="2" text="{{ labelText }}" editable="false"></TextView>>
<Button row="3" text="Take Picture" tap="{{ onTakePictureTap }}" padding="10"/>
<Button row="4" text="Record Video" tap="{{ onRecordVideoTap }}" padding="10"/>
</GridLayout>
</ScrollView>
</Page>