// 去掉标题栏 supportRequestWindowFeature(Window.FEATURE_NO_TITLE); // 全屏、隐藏状态栏 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // 横屏 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
PS:注意在 setContentView() 方法前调用。