• 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
  • 相关阅读:
    电商商品的前后台类目设计思路,小本本记下来(提供获取京东淘宝商品类目信息API 免费测试)
    Spring Boot 2 (十):Spring Boot 中的响应式编程和 WebFlux 入门
    为什么要分库分表?
    基于nodejs+vue电子病历管理系统-计算机毕业设计
    Spring Cloud Alibaba—Sentinel 控制台安装
    程序环境和预处理
    java毕业生设计爱心公益网站设计与制作计算机源码+系统+mysql+调试部署+lw
    JSON.stringify()的深入学习和理解
    关于MybatisPlus使用的部分经验
    (01)ORB-SLAM2源码无死角解析-(44) EPnP 源代码分析(5)→ICP 求解相机位姿
  • 原文地址:https://blog.csdn.net/asd501823206/article/details/134344330