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"/>
|