Posts tagged go
Android Tip — Go Fullscreen
Feb 18th
In your applications and games, you often have to go fullscreen. Actually, different kinds of fullscreen exist. You may need to remove the title bar only or to get a real fullscreen.
If you want to remove the title bar, but not the Android notifications bar, simply modify your manifest under the activity tag of your XML:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
If you need a real fullscreen, then you have to use this code in your Activity class:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
