public static class WindowManager.LayoutConfig extends Object
Window.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
alignment |
Indicate the direction of a window.
|
float |
alpha |
Indicate the transparency of the window.
|
static int |
ALTER_ALPHA |
Indicate that the alpha value has changed.
|
static int |
ALTER_DIM |
Indicate that the amount of dimming has changed.
|
static int |
ALTER_FLAGS |
Indicate that the flags have changed.
|
static int |
ALTER_FORMAT |
Indicate that the pixel format has changed.
|
static int |
ALTER_LAYOUT |
Indicate that the layout has changed.
|
static int |
ALTER_TITLE |
Indicate that the title has changed.
|
int |
animations |
The resource id which indicates window animation.
|
float |
dim |
Indicate the brightness of the window.
|
static int |
FIRST_SUB_WINDOW |
1000: Indicate the first sub window.
|
static int |
FIRST_SYSTEM_WINDOW |
2000: Indicate the first system window.
|
int |
flags |
Indicate various flags for a window.
|
int |
height |
Indicate the height of a window.
|
static int |
INPUT_ADJUST_NOTHING |
0x00000018: Do not adjust the input method window; resize or shift the window.
|
static int |
INPUT_ADJUST_PAN |
0x00000010: Shift the position of the window to show the soft input cursor's focus.
|
static int |
INPUT_ADJUST_RESIZE |
0x00000008: Re-size the window to ensure that the input focus is visible.
|
static int |
INPUT_ADJUST_UNSPECIFIED |
0x00: Window-dependent content.
|
static int |
INPUT_IS_FORWARD_NAVIGATION |
0x00000080: The system automatically sets this flag when this window requests focus by
the user.
|
static int |
INPUT_MASK_ADJUST |
0x00000078: Adjust the window to make the soft input area visible.
|
static int |
INPUT_MASK_STATE |
0x15: Confirming the display status of the soft input panel with the window.
|
static int |
INPUT_STATE_ALWAYS_HIDDEN |
0x80000001: When the panel receives the focus, the soft-input-area is hidden.
|
static int |
INPUT_STATE_ALWAYS_VISIBLE |
0x80000002: When the panel receives focus, the soft-input-area is always visible.
|
static int |
INPUT_STATE_HIDDEN |
0x00000001: The soft input panel is invisible when this window requests focus by the user.
|
static int |
INPUT_STATE_UNCHANGED |
0x80000000: The visibility of the soft input panel cannot be changed.
|
static int |
INPUT_STATE_UNSPECIFIED |
0: The soft input panel may be visible or invisible after the window
requests focus.
|
static int |
INPUT_STATE_VISIBLE |
0x00000002: While the user navigates forward to the panel, the soft input area is displayed.
|
static int |
LAYOUT_IN_DISPLAY_SIDE_MODE_ALWAYS |
Indicate that the sidebar is always displayed.
|
static int |
LAYOUT_IN_DISPLAY_SIDE_MODE_DEFAULT |
Indicate the default display mode of the sidebar.
|
static int |
LAYOUT_IN_DISPLAY_SIDE_MODE_NEVER |
Indicate that the sidebar is never displayed.
|
int |
layoutInDisplaySideMode |
Indicate the display mode of the sidebar of this window.
|
static int |
MARK_ALLOW_EXTEND_LAYOUT |
0x00000100: The panel can be extended outside the screen.
|
static int |
MARK_ALLOW_LAYOUT_COVER_SCREEN |
0x00000080: Extend the window to cover the full screen, while keeping the decorations
around the border (such as the status bar) properly displayed.
|
static int |
MARK_ALLOW_LAYOUT_OVERSCAN |
0x01000000: Indicate the window can content to spread to the over-scanned scope of
the screen, if any.
|
static int |
MARK_ALT_FOCUSABLE_IM |
0x00010000: Reverse the way of interaction between the window and the input method.
|
static int |
MARK_DIM_EVE_WINDOW_BEHIND |
0x00000001: Everything after the window gets darker.
|
static int |
MARK_DRAWS_SYSTEM_BAR_BACKGROUNDS |
0x40000000: Draw the system bar's background specially.
|
static int |
MARK_FOCUSABLE_IMPOSSIBLE |
0x00000004: No key input focus for the window.
|
static int |
MARK_FORCE_FULLSCREEN_IMPOSSIBLE |
0x00000400: Forcibly display the decor areas (such as the navigation bar).
|
static int |
MARK_FULL_SCREEN |
0x00000200: Hide all screen decorations (such as the status bar) when this window is
displayed in full-screen mode.
|
static int |
MARK_LAYOUT_ATTACHED_IN_DECOR |
0x20000000: Prevent a window from interferenced by the decor areas, such as the
status bar.
|
static int |
MARK_LAYOUT_INSET_DECOR |
0x00008000: Prevent the window content from being covered by screen decorations, such as
the status bar.
|
static int |
MARK_LOCAL_FOCUS_MODE |
0x08000000: A window in this mode will only receive events passed using the
injectMultimodalEvent(MultimodalEvent) function.
|
static int |
MARK_LOCK_AS_SCREEN_ON |
0x80000000: Allow the lock screen to activate when the screen is on while the
user is visible to the window.
|
static int |
MARK_NOT_RESPOD_CHEEK_PRESSES |
0x00004000: No respondence to any event while user put the screen on their faces.
|
static int |
MARK_OUTSIDE_TOUCH |
0x00400000: Allow touch events outside of this window to be sent to other windows
that also support multi-touch.
|
static int |
MARK_REMOTE_DEV_INPUT |
1: The input method controller should be started on a remote connected device.
|
static int |
MARK_SCALED |
0x00002000: Allow the window to zoom when it is synthesized to the screen.
|
static int |
MARK_SCREEN_ON_ALWAYS |
0x00000040: Keep the screen always on as long as this window is visible to the user.
|
static int |
MARK_SECURE |
0x00001000: Prevent the screen from being captured in screenshots or being shown on
devices that may contain sensitive information.
|
static int |
MARK_TOUCH_MODAL_IMPOSSIBLE |
0x00000010:This window can receive touch events from the window in front of it,
even if the window has focus.
|
static int |
MARK_TOUCHABLE_IMPOSSIBLE |
0x00000008: No touch events for the window.
|
static int |
MARK_TRANSLUCENT_NAVIGATION |
0x04000000: Set a translucent navigation bar when the window expands to the navigation
bar area.
|
static int |
MARK_TRANSLUCENT_STATUS |
0x02000000: Set a translucent status bar when this window expands to the status bar
area.
|
static int |
MARK_WALLPAPER_BEHIND |
0x00080000: Display the wallpaper into the background of this window.
|
static int |
MARK_WATCH_OUTSIDE_TOUCH |
0x00020000: If
LayoutConfig#MARK_TOUCH_MODAL_IMPOSSIBLE has been set,
this flag can be used to receive a TouchEvent whose action is outside the window. |
static int |
MOD_APPLICATION |
2: Indicate the common application window.
|
static int |
MOD_APPLICATION_MEDIA |
A window that displays media, such as video.
|
static int |
MOD_APPLICATION_OVERLAY |
2038: Indicate the application overlay window.
|
static int |
MOD_APPLICATION_PANEL |
1000: Indicate the application panel window (equals to the first sub window).
|
static int |
MOD_INPUT_METHOD |
2011: Indicate input methods window
|
static int |
MOD_KEYGUARD |
Keyguard window.
|
static int |
MOD_PRESENTATION |
2037: Indicate the presentation window displayed on another screen.
|
static int |
MOD_STATUS_BAR |
2000: Indicate the status bar window (equals to the first system window).
|
static int |
MOD_TOAST |
2005: Indicate the toast window.
|
int |
notchMode |
Indicate the display mode for this window at the phone notch area.
|
int |
pixelFormat |
Indicate the pixel format of this window.
|
static int |
SYSTEM_BAR_BRIGHT_NAVIGATION |
Indicates that the navigation bar icons are dimmed on a bright background.
|
static int |
SYSTEM_BAR_BRIGHT_STATUS |
Indicates that the status bar icons are dimmed on a bright background.
|
static int |
SYSTEM_BAR_HIDE_NAVIGATION_AUTO |
Indicates that the navigation bar is automatically hidden when you swipe up or right.
|
static int |
SYSTEM_BAR_HIDE_NAVIGATION_ONCE |
Indicates that the navigation bar is not automatically hidden when you swipe up or right.
|
static int |
SYSTEM_BAR_HIDE_STATUS_AUTO |
Indicates that the status bar is automatically hidden when you swipe down.
|
static int |
SYSTEM_BAR_HIDE_STATUS_ONCE |
Indicates that the status bar is not automatically hidden when you swipe down.
|
String |
title |
Indicate the title of a window.
|
int |
type |
Indicate the window type.
|
int |
width |
Indicate the width of a window.
|
float |
windowBrightness |
Indicate the window brightness.
|
int |
x |
Indicate the X-coordinate of the window.
|
int |
y |
Indicate the Y-coordinate of the window.
|
| 构造器 | 说明 |
|---|---|
LayoutConfig() |
public static final int ALTER_ALPHA
public static final int ALTER_DIM
public static final int ALTER_FLAGS
public static final int ALTER_FORMAT
public static final int ALTER_LAYOUT
public static final int ALTER_TITLE
public static final int FIRST_SUB_WINDOW
public static final int FIRST_SYSTEM_WINDOW
public static final int INPUT_ADJUST_NOTHING
public static final int INPUT_ADJUST_PAN
public static final int INPUT_ADJUST_RESIZE
public static final int INPUT_ADJUST_UNSPECIFIED
public static final int INPUT_IS_FORWARD_NAVIGATION
public static final int INPUT_MASK_ADJUST
public static final int INPUT_MASK_STATE
public static final int INPUT_STATE_ALWAYS_HIDDEN
public static final int INPUT_STATE_ALWAYS_VISIBLE
public static final int INPUT_STATE_HIDDEN
public static final int INPUT_STATE_UNCHANGED
public static final int INPUT_STATE_UNSPECIFIED
public static final int INPUT_STATE_VISIBLE
public static final int LAYOUT_IN_DISPLAY_SIDE_MODE_ALWAYS
public static final int LAYOUT_IN_DISPLAY_SIDE_MODE_DEFAULT
public static final int LAYOUT_IN_DISPLAY_SIDE_MODE_NEVER
public static final int MARK_ALLOW_EXTEND_LAYOUT
public static final int MARK_ALLOW_LAYOUT_COVER_SCREEN
public static final int MARK_ALLOW_LAYOUT_OVERSCAN
public static final int MARK_ALT_FOCUSABLE_IM
That is, if MARK_FOCUSABLE_IMPOSSIBLE is set and this flag is set, then the window will be placed behind or away from the input method; if MARK_FOCUSABLE_IMPOSSIBLE is not set and this flag is set, then the window can be placed on top of the input method as it doesn't need to interact with the input method.
public static final int MARK_DIM_EVE_WINDOW_BEHIND
public static final int MARK_DRAWS_SYSTEM_BAR_BACKGROUNDS
public static final int MARK_FOCUSABLE_IMPOSSIBLE
public static final int MARK_FORCE_FULLSCREEN_IMPOSSIBLE
public static final int MARK_FULL_SCREEN
public static final int MARK_LAYOUT_ATTACHED_IN_DECOR
public static final int MARK_LAYOUT_INSET_DECOR
public static final int MARK_LOCAL_FOCUS_MODE
public static final int MARK_LOCK_AS_SCREEN_ON
public static final int MARK_NOT_RESPOD_CHEEK_PRESSES
public static final int MARK_OUTSIDE_TOUCH
public static final int MARK_REMOTE_DEV_INPUT
public static final int MARK_SCALED
public static final int MARK_SCREEN_ON_ALWAYS
public static final int MARK_SECURE
public static final int MARK_TOUCHABLE_IMPOSSIBLE
public static final int MARK_TOUCH_MODAL_IMPOSSIBLE
public static final int MARK_TRANSLUCENT_NAVIGATION
public static final int MARK_TRANSLUCENT_STATUS
public static final int MARK_WALLPAPER_BEHIND
public static final int MARK_WATCH_OUTSIDE_TOUCH
LayoutConfig#MARK_TOUCH_MODAL_IMPOSSIBLE has been set,
this flag can be used to receive a TouchEvent whose action is outside the window.public static final int MOD_APPLICATION
public static final int MOD_APPLICATION_MEDIA
public static final int MOD_APPLICATION_OVERLAY
public static final int MOD_APPLICATION_PANEL
public static final int MOD_INPUT_METHOD
public static final int MOD_KEYGUARD
public static final int MOD_PRESENTATION
public static final int MOD_STATUS_BAR
public static final int MOD_TOAST
public static final int SYSTEM_BAR_BRIGHT_NAVIGATION
public static final int SYSTEM_BAR_BRIGHT_STATUS
public static final int SYSTEM_BAR_HIDE_NAVIGATION_AUTO
public static final int SYSTEM_BAR_HIDE_NAVIGATION_ONCE
public static final int SYSTEM_BAR_HIDE_STATUS_AUTO
public static final int SYSTEM_BAR_HIDE_STATUS_ONCE
public int alignment
public float alpha
The value ranges from 0.0 to 1.0, with 1.0 for completely opaque and 0
.0 for completely transparent.
public int animations
public float dim
The value ranges from 0.0 to 1.0, with 1.0 for completely opaque and 0
.0 for no dimming.
public int flags
public int height
public int layoutInDisplaySideMode
LAYOUT_IN_DISPLAY_SIDE_MODE_DEFAULT.public int notchMode
NotchMode.DEFAULT.public int pixelFormat
Surface.PixelFormat.PIXEL_FORMAT_YCBCR_422_I.Surface.PixelFormat#PIXEL_FORMAT_YCBCR_422_I,
Surface.PixelFormat#PIXEL_FORMAT_YCRCB_420_SP,
Surface.PixelFormat#PIXEL_FORMAT_Ypublic String title
public int type
public int width
public float windowBrightness
The value ranges from 0 to 1.
The default value -1 indicates that the brightness is adaptively set.
public int x
public int y