1 Introduction
In the system customization requirements of 11.0, during the UI customization development of systemui, some products have the need to modify the secondary expansion QSPanel in the native systemui drop-down status bar to a single expansion and prohibit the secondary expansion, so it is necessary to modify the
QuickQSpanel Height, then customize it in QuickQsPanel, and then disable secondary expansion, as
shown in the figure:
2. Prohibit secondary expansion of QuickQSPanel and set the core class of drop-down QSPanel height
framework\base\packages\SystemUI\res\layout\quick_status_bar_expanded_header.xml
framework\base\packages\SystemUI\res\values\dimens.xml
framework\base\packages\SystemUI\src\com\android\systemui\qs\QuickStatusBarHeader.java
framework\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\NotificationPanelView.java
3. Analysis and implementation of the core functions of prohibiting secondary expansion of QuickQSPanel and setting drop-down QSPanel height
In the system SystemUI, it is mainly responsible for feeding back the system and application status and maintaining a large amount of interaction with the user. The main core layout controls in systemui are the following parts. In SystemUI, QSPanel creation starts with StatusBar#makeStatusBarView. The core functions analyzed
next
are The layout is as follows:
StatusBarÿ