Android 12.0 SystemUI下拉状态栏禁止QuickQSPanel展开

1.概述

   在12.0系统rom产品定制化开发中,对于SystemUI定制开发功能也有不少的,增加快捷功能模块,隐藏状态栏图标项目开发需要要求定制QSPanel相关UI和开发功能,
要求首次下拉后展示快捷功能模块以后就是显示QuickQSPanel而不展开QSPanel,接下来要从下滑手势下拉出状态栏分析功能实现

2.SystemUI下拉状态栏禁止QuickQSPanel展开的核心类

    frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\NotificationPanelViewController.java
    frameworks/base/packages/SystemUI/res/layout/status_bar_expanded.xml

3.SystemUI下拉状态栏禁止QuickQSPanel展开的核心功能分析和实现
3.1 status_bar_expanded.xml下拉状态栏布局分析

    <com.android.systemui.statusbar.phone.NotificationPanelView
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:systemui="http://schemas.android.com/apk/res-auto"
        android:id="@+id/notification_panel"
        android:layout_width="match_parent"
        android:layout_height="match_

猜你喜欢

转载自blog.csdn.net/baidu_41666295/article/details/131012696