How to remove or edit title bar when nativescript app runs on android platform -
i've tried in every way call requestwindowfeature method, first inside page script (but raised nice error), second on app js, working inside application.launchevent closure:
var application = require("application"); application.mainmodule = "main-page"; application.cssfile = "./app.css"; application.on(application.launchevent, function (args) { if (args.android) { // how work android activity in closure? } });
application.start();
i not able android activity instance in order hide default title bar.
assuming "launchevent" event assimilable "oncreate" event, there way android activity in context? or necessary assume isn't proper way in order achieve goal?
for time being can try this:
application.on(application.launchevent, function (args) { if (application.android) { var activity = application.android.startactivity; // activity... } });
our next release include android activity events. here pull request.
Comments
Post a Comment