Tag Archives: status bar

Android StatusBar and Notification View Summary

Brief overview of the history of the status bar and notification view(quick settings for 4.2+) in android.

Status Bar history:

1.5 – 2.2.2: com.android.server.status.StatusBarView

2.3 -2.3.7: com.android.systemui.statusbar.StatusBarView

4.0.1 – 4.2.2:             com.android.systemui.statusbar.phone.StatusBarWindowView(from 4.1.1) -> com.android.systemui.statusbar.phone.PhoneStatusBarView

there is also

com.android.systemui.statusbar.tablet.TabletStatusBarView

Notification +  Quick Settings View history:

1.5 – 2.2.2: com.android.server.status.StatusBarService.ExpandedDialog
2.3 – 2.3.7: com.android.systemui.statusbar.StatusBarService.ExpandedDialog
4.0.1 – 4.1.2 :         com.android.systemui.statusbar.phone.PhoneStatusBar.ExpandedDialog
4.2 – 4.2.2: com.android.systemui.statusbar.phone.NotificationPanelView  + com.android.systemui.statusbar.phone.SettingsPanelView
____________________
so basically before 4.2 the status bar and notification view were 2 different root views.
From 4.2 we have only com.android.systemui.statusbar.phone.StatusBarWindowView as a root view and then both notification and settings on different child views.
For non tablets it can be that we don’t have com.android.systemui.statusbar.phone.SettingsPanelView but on top of NotificationPanelView we can have:
com.android.systemui.statusbar.phone.QuickSettingsScrollView
->  com.android.systemui.statusbar.phone.QuickSettingsContainerView
->  com.android.systemui.statusbar.phone.QuickSettingsTileView (for every item)

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);