Useful notes & manuals
from the
world wide web
L:
P:
Register now!
Remove/hide status/title bar from the top of the app Android
Source code from: unknown Created by tlw on 10.02.2025 @ 12:40

Each application has 2 bars at the top: status bar and title bar. Sometimes it's useful to remove/hide them (especially in gaming apps).

JAVA:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Hide the Title Bar
requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.tabs1);

// Hide the Status Bar
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

}

AndroidManifest.xml - no title bar:

<activity android:name=".YourClassName"
android:theme="@android:style/Theme.NoTitleBar"/>

AndroidManifest.xml - no status bar:

<activity android:name=".YourClassName"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>

remove   hide   status   title   bar   top   screen
 
Created by THE LOST WEB © 2009-2012