Skip to content

Instantly share code, notes, and snippets.

@wutianlong
Created November 16, 2016 08:22
Show Gist options
  • Save wutianlong/fbe93b638486531b15c9be5806bc0251 to your computer and use it in GitHub Desktop.
Save wutianlong/fbe93b638486531b15c9be5806bc0251 to your computer and use it in GitHub Desktop.
private void deleteBars() {
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
View decorView = getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
decorView.setSystemUiVisibility(uiOptions);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment