demo/app/main-page.js
// Event handler for Page "loaded" event attached in main-page.xml
Event handler for Page "loaded" event attached in main-page.xml
Event handler for Page " loaded " event attached in main - page . xml
function pageLoaded(args) {
    var page = args.object;
    if (app.android && platform.device.sdkVersion >= "21") {
        var window = app.android.startActivity.getWindow();
        window.setStatusBarColor(new color.Color("#1976D2").android);
        window.setNavigationBarColor(new color.Color("#1976D2").android);
    }
}
function pageLoaded ( args ) { var page = args . object ; if ( app . android && platform . device . sdkVersion >= "21" ) { var window = app . android . startActivity . getWindow ( ) ; window . setStatusBarColor ( new color . Color ( "#1976D2" ) . android ) ; window . setNavigationBarColor ( new color . Color ( "#1976D2" ) . android ) ; } }
Event handler for Page "loaded" event attached in main-page.xml
Event handler for Page " loaded " event attached in main - page . xml
// Change statusbar color on Lollipop