[Android Pro] Android flag Introduction

Source: Internet
Author: User

Introduction to some Flags
The content after the window is dimmed.
public static final int flag_dim_behind = 0x00000002;

The content after the window becomes blurred.
public static final int flag_blur_behind = 0x00000004;

Don't get the spotlight.
You cannot get key input focus, so you cannot send a button or button event to it. Those times will be sent to the window behind it to get the focus. This option also sets the Flag_not_touch_modal option. Setting this option means that the window cannot interact with the soft input method, so its z-order is independent of any active input method (in other words, it can be displayed in full screen and can overwrite the IME window if needed). To modify this behavior, refer to the FLAG_ALT_FOCUSALBE_IM option.
public static final int flag_not_focusable = 0x00000008;

Touch screen events are not accepted.
public static final int flag_not_touchable = 0x00000010;

When the window can get focus (without setting the FLAG_NOT_FOCUSALBE option), the Point device events (mouse, touch screen) that are outside the window range are still sent to the subsequent window processing. Otherwise it will monopolize all point device events, regardless of whether they occur within the window range.
public static final int flag_not_touch_modal = 0x00000020;

If this flag is set, when the device sleeps, tap on the touchscreen and the device will receive this first touch event.
Usually the first touch event is consumed by the system, and the user will not see what happens when they click on the screen.
public static final int flag_touchable_when_waking = 0x00000040;

When this window is visible to the user, keep the device normally open and keep the brightness constant.
public static final int flag_keep_screen_on = 0x00000080;

The window fills the entire screen, ignoring the surrounding decorative borders (such as the status bar). This window takes into account the contents of the decorative border.
public static final int flag_layout_in_screen =0x00000100;

Allow the window to extend beyond the screen.
public static final int flag_layout_no_limits =0x00000200;

When the window is displayed, hide all of the screen decorations (such as the status bar). Causes the window to occupy the entire display area.
public static final int flag_fullscreen = 0x00000400;

This option overrides the Flag_fullscreen option and forces the screen decorations (such as the status bar) to pop up.
public static final int flag_force_not_fullscreen =0x00000800;

Jitter. Refers to the method of displaying translucent. Also known as "point through". Devices with poor graphics tend to use "point through" instead of alpha blending.
public static final int flag_dither = 0x00001000;

Screen is not allowed.
public static final int flag_secure = 0x00002000;

A special mode in which layout parameters are used to indicate the scale of the display.
public static final int flag_scaled = 0x00004000;

This option prevents the cheek from operating incorrectly on the screen when the screen is likely to have a face attached.
public static final int flag_ignore_cheek_presses = 0x00008000;

When you request a layout, your window may appear above or below the status bar, causing occlusion. When this option is set, the window manager ensures that the contents of the window are not covered by the trim bar (status bar).
public static final int flag_layout_inset_decor = 0x00010000;

Reverses the flag_not_focusable option.
If both the flag_not_focusable option and this option are set, the window will be able to interact with the IME, allowing the IME window to be overwritten;
If the flag_not_focusable is not set and the option is set, the window cannot interact with the IME and can overwrite the IME window.
public static final int flag_alt_focusable_im = 0x00020000;

If you set the Flag_not_touch_modal, then when the touchscreen event occurs outside the window, you can receive a Motionevent.action_outside event by setting this flag. Note that you will not receive the full Down/move/up event, only the first down event can receive action_outside.
public static final int flag_watch_outside_touch = 0x00040000;

When the screen is locked, the window can be seen. This allows the application window to take precedence over the lock screen. The screen can be lit with the flag_keep_screen_on option and displayed directly before the lock screen. Unlocked lock screen status can be lifted directly using the Flag_dismiss_keyguard option. This option is only available for the topmost full-screen window.
Public static final int flag_show_when_locked = 0x00080000;

The request system wallpaper is displayed behind your window. The window must be translucent.
public static final int flag_show_wallpaper = 0x00100000;

Once the window is displayed, the system will light up the screen just as the user wakes up the device.
public static final int flag_turn_screen_on = 0x00200000;

unlocks the lock screen. Only the lock screen interface is not encrypted to unlock. If the lock screen is encrypted, the user will not see the underlying window until the flag_show_when_locked option is set.
Public static final int flag_dismiss_keyguard = 0x00400000;

When the lock screen fades out, it continues to run its animation.
public static final int flag_keep_surface_while_animating =0x10000000;

Displays the window in its original size. Used to run the program in compatibility mode.
public static final int flag_compatible_window = 0x20000000;

for System dialog boxes. The window that sets this option will receive the focus unconditionally.
Public static final int flag_system_error = 0x40000000;

[Android Pro] Android flag Introduction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.