Android6.0 status bar (customization of the System dropdown status bar)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.