Skip to content

Commit 3094033

Browse files
committed
change demo to look a bit better
1 parent 83ed6b0 commit 3094033

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

demo-ng/app/App_Resources/Android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
android:name="com.tns.NativeScriptApplication"
2323
android:allowBackup="true"
2424
android:icon="@drawable/icon"
25-
android:label="@string/app_name"
25+
android:label="GridView NG"
2626
android:theme="@style/AppTheme">
2727

2828
<activity

demo-ng/app/App_Resources/Android/app.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
android {
99
defaultConfig {
1010
generatedDensities = []
11-
applicationId = "org.nativescript.tnsnggridview"
11+
applicationId = "com.tangrainc.nggridviewsample"
1212
}
1313
aaptOptions {
1414
additionalParameters "--no-version-vectors"

demo-ng/app/App_Resources/iOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
77
<key>CFBundleDisplayName</key>
8-
<string>${PRODUCT_NAME}</string>
8+
<string>GridView NG</string>
99
<key>CFBundleExecutable</key>
1010
<string>${EXECUTABLE_NAME}</string>
1111
<key>CFBundleInfoDictionaryVersion</key>

demo-ng/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ItemDetailComponent } from "./item/item-detail.component";
1616
import { GridViewModule } from 'nativescript-grid-view/angular';
1717
import * as trace from 'tns-core-modules/trace';
1818
trace.setCategories('ns-grid-view');
19-
trace.enable();
19+
// trace.enable();
2020

2121
@NgModule({
2222
bootstrap: [

demo-ng/app/item/items.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
The ActionBar is the NativeScript common abstraction over the Android ActionBar and iOS NavigationBar.
1111
http://docs.nativescript.org/ui/action-bar
1212
-->
13-
<ActionBar title="My App" class="action-bar">
13+
<ActionBar title="GridView NG" class="action-bar">
1414
</ActionBar>
1515

1616
<!--
@@ -24,10 +24,10 @@
2424
class names available for styling your app at https://docs.nativescript.org/ui/theme.
2525
-->
2626
<GridLayout class="page">
27-
<GridView [items]="items">
27+
<GridView [items]="items" colWidth="30%" rowHeight="100">
2828
<ng-template let-item="item" let-odd="odd">
29-
<StackLayout [nsRouterLink]="['/item', item.id]" borderColor="blue" borderWidth="2" borderRadius="5" verticalAlignment="stretch" class="list-group-item" [class.odd]="odd">
30-
<Label verticalAlignment="center" [text]="item.name" class="list-group-item-text"></Label>
29+
<StackLayout margin="10" [nsRouterLink]="['/item', item.id]" borderColor="blue" borderWidth="2" borderRadius="5" verticalAlignment="stretch" class="list-group-item" [class.odd]="odd">
30+
<Label verticalAlignment="center" [text]="item.name" class="list-group-item-text" textWrap="true"></Label>
3131
</StackLayout>
3232
</ng-template>
3333
</GridView>

demo-ng/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"ns-bundle": "ns-bundle",
5151
"publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
5252
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
53-
"start-android-bundle": "npm run ns-bundle --android --run-app --uglify",
54-
"start-ios-bundle": "npm run ns-bundle --ios --run-app --uglify",
53+
"start-android-bundle": "npm run ns-bundle --android --run-app",
54+
"start-ios-bundle": "npm run ns-bundle --ios --run-app",
5555
"build-android-bundle": "npm run ns-bundle --android --build-app",
5656
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
5757
}

0 commit comments

Comments
 (0)