Skip to content

Instantly share code, notes, and snippets.

@dynoChris
Last active December 9, 2018 01:08
Show Gist options
  • Save dynoChris/78450c8425696860390b8464e2a3a399 to your computer and use it in GitHub Desktop.
Save dynoChris/78450c8425696860390b8464e2a3a399 to your computer and use it in GitHub Desktop.
How to hide status bar in Android
//source: https://developer.android.com/training/system-ui/status
View decorView = getWindow().getDecorView();
// Hide the status bar.
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment