Android 移除狀態列、移除標題、旋轉螢幕
想要移除狀態列
this.getWindow().setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WndowManager.LayoutParams.FLAG_FULLSCREEN);
想要移除標題列
requestWindowFeature(Window.FEATURE_NO_TITLE);
想要設定螢幕的旋轉方向
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
this.getWindow().setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WndowManager.LayoutParams.FLAG_FULLSCREEN);
想要移除標題列
requestWindowFeature(Window.FEATURE_NO_TITLE);
想要設定螢幕的旋轉方向
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
留言