Target
Do not allow users to drop the status bar from top to bottom
Case 1
Intercepts gestures and does not handle the gesture.
Systemgesturespointereventlistener
public void Onpointerevent (Motionevent event) {
if (swipe = = Swipe_from_top) {
Do not invoke gesture processing}
Case 1 Effect
No effect.
ADB log Discovery Code did come, stating that this is just a notification mechanism.
Case 2
Break gestures or touch commands on the status bar
The Onintercepttouchevent method of Statusbarwindowview is modified to return true directly.
Case 2 Effect
Meet expectations
Status bar summary of knowledge points
Family: belongs to the systemui level. is a special system-level UI component. Systemui = status bar + Bottom navigation bar + recent App list + screenshot operation + Battery warning, etc.
Vector: existing in apk form
Life begins: Ams.systemready () method when the system is ready, Startsystemui
2 Brother layout: Phonewindowmanager.mhassystemnavbar status bar separate from navigation bar (Phonestatusbar) vs status bar with navigation bar (Tabletstatusbar)
1 son: Basestatusbar processing requests with Istatusbarservice createandaddwindows (each sibling implements the layout unit)
http://blog.csdn.net/yin1031468524/article/details/51532663
Https://wizardforcel.gitbooks.io/deepin-android-vol3/content/7.html
ADB logcat panelbar:d Phonestatusbar:d Windowmanager:d *:s
adb logcat wifihw:d *:s
Systemgesturespointereventlistener
Android6.0 status bar (customization of the System dropdown status bar)