• StatusBarManager中的相关标志位


    public static final int DISABLE_MASK = DISABLE_EXPAND | DISABLE_NOTIFICATION_ICONS
     | DISABLE_NOTIFICATION_ALERTS | DISABLE_NOTIFICATION_TICKER
     | DISABLE_SYSTEM_INFO | DISABLE_RECENT | DISABLE_HOME | DISABLE_BACK | DISABLE_CLOCK
     | DISABLE_SEARCH;
    
    • 1
    • 2
    • 3
    • 4

    1.DISABLE_EXPAND

    public static final int DISABLE_EXPAND = View.STATUS_BAR_DISABLE_EXPAND;
    /**
     * @hide
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to make the status bar not expandable. Unless you also
     * set {@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS}, new notifications will continue to show.
     */
    Disable{@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS}
    @UnsupportedAppUsage
    public static final int STATUS_BAR_DISABLE_EXPAND = 0x00010000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    2.DISABLE_NOTIFICATION_ICONS

    /**
     * @hide
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to hide notification icons and scrolling ticker text.
     */
    public static final int STATUS_BAR_DISABLE_NOTIFICATION_ICONS = 0x00020000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    3.DISABLE_NOTIFICATION_ALERTS

    /**
     * @hide
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to disable incoming notification alerts. This will not block
     * icons, but it will block sound, vibrating and other visual or aural notifications.
     */
    public static final int STATUS_BAR_DISABLE_NOTIFICATION_ALERTS = 0x00040000;
    PhoneStatusBarNotificationManagerService
    DISABLE_EXPANDDISABLE_NOTIFICATION_ALERTS 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    4.DISABLE_NOTIFICATION_TICKER

    Flag to hide only the scrolling ticker. Note that
    * {@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS} implies
    * {@link #STATUS_BAR_DISABLE_NOTIFICATION_TICKER}.
    public static final int STATUS_BAR_DISABLE_NOTIFICATION_TICKER = 0x00080000;
    隐藏通知的滚动条。    
    注意:{@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS}已经包含了{@link 
    #STATUS_BAR_DISABLE_NOTIFICATION_TICKER}的功能。
    立刻终止正在进行的ticking动作,并在PhoneStatusBar.tick()方法中阻止tick。这样一来通知的内容将不会出现在状态栏之上
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    5.DISABLE_SYSTEM_INFO

    Flag to hide the center system info area.
    public static final int DISABLE_SYSTEM_INFO = View.STATUS_BAR_DISABLE_SYSTEM_INFO;
    public static final int STATUS_BAR_DISABLE_SYSTEM_INFO = 0x00100000;
    mSystemlconArea0mSystemlconArea
    
    • 1
    • 2
    • 3
    • 4

    6.DISABLE_RECENT

    public static final int DISABLE_RECENT = View.STATUS_BAR_DISABLE_RECENT;
    /**
     * Flag to hide only the recent apps button. Don't use this
     * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
     */
    @UnsupportedAppUsage
    public static final int STATUS_BAR_DISABLE_RECENT = 0x01000000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    7.DISABLE_HOME

    public static final int DISABLE_HOME = View.STATUS_BAR_DISABLE_HOME;
    /**
     * @hideFULISCREENFULISCREEN
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to hide only the home button. Don't use this
     * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
     */
    @UnsupportedAppUsage
    public static final int STATUS_BAR_DISABLE_HOME = 0x00200000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    8.DISABLE_BACK

    /** @hide */
    public static final int DISABLE_BACK = View.STATUS_BAR_DISABLE_BACK;
    /**
     * @hide
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to hide only the back button. Don't use this
     * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
     */
    @UnsupportedAppUsage
    public static final int STATUS_BAR_DISABLE_BACK = 0x00400000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    9.DISABLE_CLOCK

    public static final int DISABLE_CLOCK = View.STATUS_BAR_DISABLE_CLOCK;
    /**
     * @hide
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to hide only the clock. You might use this if your activity has
     * its own clock making the status bar's clock redundant.
     */
    public static final int STATUS_BAR_DISABLE_CLOCK = 0x00800000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11

    10.DISABLE_SEARCH

    public static final int DISABLE_SEARCH = View.STATUS_BAR_DISABLE_SEARCH;
    /**
     * @hide
    *
     * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
     * out of the public fields to keep the undefined bits out of the developer's way.
     *
     * Flag to disable the global search gesture. Don't use this
     * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
     */
    public static final int STATUS_BAR_DISABLE_SEARCH = 0x02000000;
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11

    11.DISABLE_NAVIGATION

    public static final int DISABLE_NAVIGATION =
     View.STATUS_BAR_DISABLE_HOME | View.STATUS_BAR_DISABLE_RECENT;
    HOME
    StatusBarManagerViewSTATUS_BAR_STATUS_BAR_
    —SystemUIVisibilityStatusBarManager.disable(SystemUIVisibility
    
    • 1
    • 2
    • 3
    • 4
    • 5
  • 相关阅读:
    基础算法--离散化
    使用centos linux vps搭建云端jupyter notebook踩坑日记
    【翻译】分布式系统
    【心电信号】Simulink胎儿心电信号提取【含Matlab源码 1550期】
    复盘:什么是秋招提前批?什么是普通秋招?都是招聘,为啥要设置这两个招聘时间段
    怎么让英文大预言模型支持中文?(一)构建自己的tokenization
    智能汽车软硬件产品CES展示汽车技术新亮点
    Linux基本指令笔记
    如何做外贸网站的SEO优化
    关于内存条的知识要点⑴
  • 原文地址:https://blog.csdn.net/asd501823206/article/details/134344330