WindowManager.LayoutParams.privateFlags
时间: 2024-05-21 16:11:06 浏览: 94
WindowManager.LayoutParams.privateFlags is a set of private flags used by the WindowManager to control various aspects of a window. These flags are not intended to be used by applications and are subject to change without notice. Some of the commonly used private flags are:
- FLAG_PREVENT_WALLPAPER - If set, this flag prevents the window from being displayed behind the wallpaper.
- FLAG_SHOW_WHEN_LOCKED - If set, this flag allows the window to be shown even when the device is locked.
- FLAG_SYSTEM_ERROR - If set, this flag indicates that the window represents a system error dialog.
- FLAG_LAYOUT_NO_LIMITS - If set, this flag indicates that the window should be laid out without any constraints.
- FLAG_HARDWARE_ACCELERATED - If set, this flag indicates that the window should be hardware accelerated.
It is important to note that using private flags can be risky as they may not be supported on all devices or may change in future versions of the platform. It is recommended to use the public flags defined in the WindowManager.LayoutParams class instead.
阅读全文