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.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;

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;

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 

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。这样一来通知的内容将不会出现在状态栏之上

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

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;

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;

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;

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;

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;

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
相关推荐
AFinalStone20 天前
Android7 SystemUI源码解析(七)Keyguard锁屏模块深度解析
android·systemui
AFinalStone20 天前
Android7 SystemUI 源码解析(四)NavigationBar 导航栏与 SystemBars
android·systemui
AFinalStone20 天前
Android7 SystemUI 源码解析(二)启动流程深度解析
android·systemui
AFinalStone20 天前
Android7 SystemUI 源码解析(一)全景概览与架构设计
android·systemui
AFinalStone20 天前
Android7 SystemUI 源码解析(六)QuickSettings快捷设置面板
android·systemui
陆业聪6 个月前
SystemUI 里做 Launcher App 列表:四种方案的 Framework 原理与工程取舍
android·framework·systemui·launcher
Just_Paranoid9 个月前
【TaskbarDelegate】屏蔽上滑返回桌面手势功能
android·systemui·navigation·launcher·gesture
Just_Paranoid10 个月前
【SystemUI】基于 Android R 实现下拉状态栏毛玻璃背景
android·canvas·systemui·renderscript
ItJavawfc10 个月前
SystemUI-下拉去掉后去掉用户切换-去掉电源按键中的紧急呼叫
systemui·systemui去除紧急呼叫·去除紧急呼叫·去除用户切换·去除用户选择
千里马学框架10 个月前
wms开发常用调试开发技巧之WMShell的实用命令
android·framework·wms·安卓framework开发·systemui·proto·wmshell