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

  • 相关阅读:
    Visual Studio 2015 开发 ASP.NET 5
    全新的membership框架Asp.net Identity
    VS2013下实现移动端的跨平台开发
    用SQL语句,删除掉重复项只保留一条
    SOA IN Real World
    Asp.net负载均衡之Session
    C#时常需要调用C++DLL
    C# 支付宝接口
    好代码是怎么炼成的
    ASP.net 服务器监控
  • 原文地址:https://www.cnblogs.com/onelikeone/p/7159218.html
Copyright © 2011-2022 走看看