android - Full screen pull down disabling -
i'm developing full screen application
it's possible user pull down status bar, , after, access wifi, bluetooth... features. have watched applications have complete full screen , don't allow pull down status bar. aproximation collapse solution allow user access these features. aproximation isn't valid me:
if (build.version.sdk_int > 16) { collapsestatusbar = statusbarmanager .getmethod("collapsepanels"); } else { collapsestatusbar = statusbarmanager .getmethod("collapse"); }
check it
this.requestwindowfeature(window.feature_no_title); // remove title bar this.getwindow().setflags(windowmanager.layoutparams.flag_fullscreen,windowmanager.layoutparams.flag_fullscreen);// remove notification bar setcontentview(r.layout.activity_home);
Comments
Post a Comment