有狀態列的畫面:
無狀態列的畫面:
做法如下,在程式碼中,onCreate跟onResume中加入hideBottomUIMenu():
protected void hideBottomUIMenu() { View decorView = getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); }
END
沒有留言:
張貼留言