zoukankan      html  css  js  c++  java
  • 【Android 7.1.1】 锁屏界面点击“空白处”响应事件

    frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java

    frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java

    frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

    1. NotificationStackScrollLayout.java

    2.NotificationPanelView.java

    @Override
        protected boolean onMiddleClicked() {
            switch (mStatusBar.getBarState()) {
                case StatusBarState.KEYGUARD:
                    if (!mDozingOnDown) {
                        EventLogTags.writeSysuiLockscreenGesture(
                                EventLogConstants.SYSUI_LOCKSCREEN_GESTURE_TAP_UNLOCK_HINT,
                                0 /* lengthDp - N/A */, 0 /* velocityDp - N/A */);
                        startUnlockHintAnimation();
                    }
                    return true;
                case StatusBarState.SHADE_LOCKED:
                    if (!mQsExpanded) {
                        mStatusBar.goToKeyguard();
                    }
                    return true;
                case StatusBarState.SHADE:
    
                    // This gets called in the middle of the touch handling, where the state is still
                    // that we are tracking the panel. Collapse the panel after this is done.
                    //wtrom,zhaoxiaohui,20170221,for drop down menu
                    if(!isSupportWTRom){
                        post(mPostCollapseRunnable);
                    }
                    return false;
                default:
                    return true;
            }
        }

    3.PanelView.java

  • 相关阅读:
    MVC是什么?
    Slice Header中的field_pic_flag的含义?
    Slice header 中的frame_num的含义?
    上下文管理器 contextlib
    mixin模式特点
    Flask中路由原理
    使用Docker搭建Django,Nginx,R,Python部署环境
    使用Docker+Jenkins自动构建部署
    Jenkins 关闭和重启
    使用pipenv管理python项目
  • 原文地址:https://www.cnblogs.com/onelikeone/p/7159218.html
Copyright © 2011-2022 走看看