Skip to content

Commit 9b7c248

Browse files
committed
Demo Ui refactor
1 parent 1d65725 commit 9b7c248

File tree

4 files changed

+13
-116
lines changed

4 files changed

+13
-116
lines changed

demo/app/App_Resources/Android/app.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
android {
99
defaultConfig {
1010
generatedDensities = []
11-
applicationId = "org.nativescript.demo"
1211
}
1312
aaptOptions {
1413
additionalParameters "--no-version-vectors"

demo/app/main-page.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" class="page">
2-
<StackLayout class="p-20" rows="auto,auto,*" columns="auto,auto">
3-
<Button text="View Search" tap="goToSearch"/>
4-
<Label row="0" col="0" colSpan="2" text="Add New Item" class="t-20 text-center c-black" textWrap="true"/>
5-
<TextField id="input" row="1" hint="Enter text here..." col="0"/>
6-
<Button row="1" col="!" text="Add" tap="addNew"/>
7-
<ListView row="2" colSpan="2" items="{{items}}">
2+
<GridLayout rows="auto, auto, auto, auto, *" class="p-20" flexDirection="column">
3+
<Button row="0" text="View Search" tap="goToSearch"/>
4+
<Label row="1" col="0" colSpan="2" text="Add New Item" class="t-20 text-center c-black" textWrap="true"/>
5+
<TextField row="2" id="input" hint="Enter text here..." col="0"/>
6+
<Button row="3" col="!" text="Add" tap="addNew"/>
7+
<ListView row="4" colSpan="2" items="{{items}}">
88
<ListView.itemTemplate>
99
<GridLayout>
1010
<Label text="{{title}}"/>
1111
</GridLayout>
1212
</ListView.itemTemplate>
1313
</ListView>
14-
</StackLayout>
14+
</GridLayout>
1515
</Page>

demo/app/package.json

Lines changed: 2 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,7 @@
11
{
2-
"name": "tns-template-hello-world-ts",
32
"main": "app.js",
4-
"version": "1.6.0",
5-
"author": {
6-
"name": "Telerik",
7-
"email": "[email protected]"
8-
},
9-
"description": "Nativescript hello-world-ts project template",
10-
"license": "Apache-2.0",
11-
"keywords": [
12-
"telerik",
13-
"mobile",
14-
"nativescript",
15-
"{N}",
16-
"tns",
17-
"appbuilder",
18-
"template"
19-
],
20-
"repository": {
21-
"type": "git",
22-
"url": "git+ssh://[email protected]/NativeScript/template-hello-world-ts.git"
23-
},
24-
"bugs": {
25-
"url": "https://github.com/NativeScript/template-hello-world-ts/issues"
26-
},
27-
"homepage": "https://github.com/NativeScript/template-hello-world-ts",
283
"android": {
294
"v8Flags": "--expose_gc",
30-
"requireModules": ["nativescript-couchbase-plugin"]
31-
},
32-
"devDependencies": {
33-
"nativescript-dev-typescript": "^0.3.0"
34-
},
35-
36-
"_shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8",
37-
"_resolved": "https://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz",
38-
"_from": "tns-template-hello-world-ts@latest",
39-
"scripts": {
40-
"build.plugin": "cd ../src && npm run build",
41-
"ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
42-
},
43-
"_npmVersion": "2.14.7",
44-
"_nodeVersion": "4.2.2",
45-
"_npmUser": {
46-
"name": "enchev",
47-
"email": "[email protected]"
48-
},
49-
"dist": {
50-
"shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8",
51-
"tarball": "http://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz"
52-
},
53-
"maintainers": [
54-
{
55-
"name": "enchev",
56-
"email": "[email protected]"
57-
},
58-
{
59-
"name": "erjangavalji",
60-
"email": "[email protected]"
61-
},
62-
{
63-
"name": "fatme",
64-
"email": "[email protected]"
65-
},
66-
{
67-
"name": "hdeshev",
68-
"email": "[email protected]"
69-
},
70-
{
71-
"name": "kerezov",
72-
"email": "[email protected]"
73-
},
74-
{
75-
"name": "ligaz",
76-
"email": "[email protected]"
77-
},
78-
{
79-
"name": "nsndeck",
80-
"email": "[email protected]"
81-
},
82-
{
83-
"name": "rosen-vladimirov",
84-
"email": "[email protected]"
85-
},
86-
{
87-
"name": "sdobrev",
88-
"email": "[email protected]"
89-
},
90-
{
91-
"name": "tailsu",
92-
"email": "[email protected]"
93-
},
94-
{
95-
"name": "teobugslayer",
96-
"email": "[email protected]"
97-
},
98-
{
99-
"name": "valio.stoychev",
100-
"email": "[email protected]"
101-
}
102-
],
103-
"_npmOperationalInternal": {
104-
"host": "packages-5-east.internal.npmjs.com",
105-
"tmp": "tmp/tns-template-hello-world-ts-1.6.0.tgz_1455717516189_0.6427943941671401"
106-
},
107-
"directories": {},
108-
"readme": "ERROR: No README data found!"
5+
"markingMode": "none"
6+
}
1097
}

demo/app/search/search-page.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" class="page">
2-
<StackLayout class="p-20" rows="auto,auto,*" columns="auto,auto">
3-
<SearchBar id="search" row="1" hint="Search here..." col="0" submit="{{search}}"/>
4-
<ListView row="2" colSpan="2" items="{{items}}">
2+
<GridLayout class="p-20" rows="auto,*">
3+
<SearchBar id="search" row="0" hint="Search here..." col="0" submit="{{search}}"/>
4+
<ListView row="1" items="{{items}}">
55
<ListView.itemTemplate>
66
<GridLayout>
77
<Label text="{{title}}"/>
88
</GridLayout>
99
</ListView.itemTemplate>
1010
</ListView>
11-
</StackLayout>
11+
</GridLayout>
1212
</Page>

0 commit comments

Comments
 (0)