android 全屏去掉ActionBar 和状态栏

requestWindowFeature(Window.FEATURE_NO_TITLE);
int flag = WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
this.getWindow().setFlags(flag, flag);

你可能感兴趣的:(android,全屏)