Skip to content

Instantly share code, notes, and snippets.

@WrathChaos
Last active December 28, 2019 12:56
Show Gist options
  • Save WrathChaos/a20ed714ed74ca1053e8 to your computer and use it in GitHub Desktop.
Save WrathChaos/a20ed714ed74ca1053e8 to your computer and use it in GitHub Desktop.
The easiest way to make status bar transparent in android
@OnCreate
{
  // FullScreen
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, 
  WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
// XML : 
<item name="android:windowTranslucentStatus">true</item>
@WrathChaos
Copy link
Author

You should implement this code segment into the @onCreate part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment