Android设置全屏

//全屏
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

requestWindowFeature(Window.FEATURE_NO_TITLE);


注意:一定要在setContentView(R.layout.main);之前设置

你可能感兴趣的:(android)