SystemUI KeyguardBouncer的加载
程序员文章站
2022-05-27 09:09:49
...
不积跬步无以至千里
Bouncer界面就是安全解锁界面,绘制在statusbar的window上.
一.keyguardbouncer在statusbar布局上添加,移除:
1.code/app/src/com/android/systemui/statusbar/phone/StatusBar.java
protected void startKeyguard() {
...
mStatusBarKeyguardViewManager = keyguardViewMediator.registerStatusBar(this,
getBouncerContainer(), mScrimController,
mFingerprintUnlockController);
...
}
...
//StatusBar的布局
protected ViewGroup getBouncerContainer() {
return mStatusBarWindow;
}
2.code/app/src/com/android/systemui/keyguard/KeyguardViewMediator.java
public StatusBarKeyguardViewManager registerStatusBar(StatusBar statusBar,
ViewGroup contain
上一篇: 让电脑不被锁屏的方法,亲测有效