Last active
August 29, 2015 14:24
-
-
Save jldubz/cffa94b6b029c72f0b0c to your computer and use it in GitHub Desktop.
Set your Android application to fullscreen. This does not hide/lock out the button bar or permanently remove the notification bar. It only hides them.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
View decorView = getWindow().getDecorView(); | |
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN; | |
decorView.setSystemUiVisibility(uiOptions); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<application android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment