Skip to content

Commit 9fa4b3c

Browse files
Fixed Android Properties, Updated demo
1 parent 7969a8a commit 9fa4b3c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

demo/app/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ button {
2222
horizontal-align: right;
2323
vertical-align: bottom;
2424
color: #FFF;
25-
/*background-color: #ff4081;*/
25+
background-color: #ff4081;
2626
}

demo/app/main-page.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var app = require("application");
22
var observable = require("data/observable");
3+
var observableArrayModule = require("data/observable-array");
34
var platformModule = require("platform");
45
var color = require("color");
56

@@ -14,7 +15,7 @@ var users = [
1415
{ name: 'Franklin' }
1516
];
1617
var viewModel = new observable.Observable({
17-
users: users
18+
users: new observableArrayModule.ObservableArray(users)
1819
});
1920

2021
function pageLoaded(args) {
@@ -31,5 +32,5 @@ function pageLoaded(args) {
3132
exports.pageLoaded = pageLoaded;
3233

3334
exports.fabTap = function(args){
34-
alert("FAB TAP")
35+
viewModel.users.push({ name: "Gary"});
3536
}

demo/app/main-page.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
icon="res://ic_add_white"
1616
tap="fabTap"
1717
backColor="#ff4081"
18+
rippleColor="blue"
1819
class="fab-button" />
1920
</grid-layout>
2021
</Page>

0 commit comments

Comments
 (0)