1.status_bar.xml ( PhoneStatusBarView.java)
id="@+id/notification_lights_out" /id="@+id/status_bar_contents" /id="@+id/notification_icon_area" /id="@+id/clock" /id="@+id/emergency_cryptkeeper_text"
2.加载入口 statusbar.java
start() ---- createAndAddWindows() ---- addStatusBarWindow() ---makeStatusBarView() -----inflateStatusBarWindow();;
private void addStatusBarWindow() {
makeStatusBarView();
}
protected void makeStatusBarView() {
状态栏显示的接口基本都在这里开始
............
inflateStatusBarWindow
}
protected void inflateStatusBarWindow(Context context) {
mStatusBarWindow = (StatusBarWindowView) View.inflate(context, //status_bar.xml文件是在super_status_bar.xml里被include的
R.layout.super_status_bar, null); //状态栏窗口显示
}
3.
下拉快速设置 qs_panel.xml
网友评论