Android 10.0 SystemUI状态栏屏蔽掉通知栏不显示通知

由于客户需求不需要通知,所以要求去掉所有通知,而通知部分就是在SystemUI部分管理的,所以就要从这里入手来去掉关于通知栏的部分
首选要从两部分入手

第一部分,状态栏显示通知图标的部分
状态栏布局为status_bar.xml
首选来看status_bar.xml

<com.android.systemui.statusbar.phone.PhoneStatusBarView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:layout_width="match_parent"
    android:layout_height="@dimen/status_bar_height"
    android:id="@+id/stat
    原文作者:安卓兼职framework应用工程师
    原文地址: https://blog.csdn.net/baidu_41666295/article/details/122853524
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞