Tag Archives: fullscreen

activity full screen mode – remove title and status bar

Status bar comes from the android system.

Title bar comes from the application.

you can remove either of them either by editing the manifest of the activity.

Remove Title Bar

in Manifest: in the activity element add: android: theme=”@android:style/Theme.NoTitleBar”

in Activity: code in OnCreate before setting the layout add: requestWindowFeature(Window.FEATURE_NO_TITLE);

Remove Title Bar and Status Bar

in Manifest: in the activity element add: android: theme=”@android:style/Theme.NoTitleBar.Fullscreen”

in Activity: code in OnCreate  add: this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);