Skip to content

Instantly share code, notes, and snippets.

@kuraydev
Last active December 28, 2019 12:56
Show Gist options
  • Select an option

  • Save kuraydev/a20ed714ed74ca1053e8 to your computer and use it in GitHub Desktop.

Select an option

Save kuraydev/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>
@kuraydev
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