博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【Android 7.1.1】 锁屏界面点击“空白处”响应事件
阅读量:7091 次
发布时间:2019-06-28

本文共 1579 字,大约阅读时间需要 5 分钟。

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

转载于:https://www.cnblogs.com/onelikeone/p/7159218.html

你可能感兴趣的文章
tomcat与resin
查看>>
android应用要搞起了
查看>>
一个简单的css3 动画例子
查看>>
关于几道SQL经典题详解
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
Facebook ATC 弱网测试项目部署
查看>>
关于p-vol和s-vol
查看>>
一八年第三天晚上十点半的thinking
查看>>
ksh和bash区别
查看>>
keepalived 组播的配置
查看>>
华为路由器交换机配置相关功能
查看>>
谷歌收购眼球追踪技术公司Eyefluence,眼动关注度将成为VR的新视角
查看>>
【蜕变之路】第32天 使用STS创建SpringBoot项目 (2019年3月22日)
查看>>
Oracle之数据挖掘的更新介绍
查看>>
NFS
查看>>
Exception异常处理
查看>>
第二十讲 任务的挂起和恢复
查看>>
emmm算是来了
查看>>
do…while语句
查看>>