API changes - ios and android settings objcets

This commit is contained in:
vakrilov
2015-07-14 18:20:28 +03:00
parent 2cdf1e222b
commit d5687a8e9c
9 changed files with 165 additions and 118 deletions

View File

@@ -23,14 +23,17 @@ export function optionTap(args) {
var i = 0;
export function buttonTap(args: observable.EventData) {
currentPage.actionBar.title = "hi " + i++;
if (i % 3 === 0) {
currentPage.actionBar.icon = "res://ic_test";
}
else if (i % 3 === 1) {
currentPage.actionBar.icon = "~/test-icon.png";
}
else if (i % 3 === 2) {
currentPage.actionBar.icon = undefined;
if (currentPage.actionBar.android) {
if (i % 3 === 0) {
currentPage.actionBar.android.icon = "res://ic_test";
}
else if (i % 3 === 1) {
currentPage.actionBar.android.icon = "~/test-icon.png";
}
else if (i % 3 === 2) {
currentPage.actionBar.android.icon = undefined;
}
}
}