/** * hide action bar */ private void hideActionBar() { // Hide UI ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.hide(); } } /** * set the activity display in full screen */ private void setFullScreen() { this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
隐藏标题栏和信息栏,实现全屏显示
最新推荐文章于 2022-06-13 19:31:10 发布