| ★ wanayoo — archive 1999 http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html | Nouvelle recherche | Portail wanayoo |
| java.lang.Object | ||
| ↳ | android.view.ViewGroup.LayoutParams | |
| ↳ | android.view.WindowManager.LayoutParams | |
|
[Expand]
Inherited XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ALPHA_CHANGED | ||||||||||
| int | ANIMATION_CHANGED | ||||||||||
| Creator<WindowManager.LayoutParams> | CREATOR | ||||||||||
| int | DIM_AMOUNT_CHANGED | ||||||||||
| int | FIRST_APPLICATION_WINDOW | Start of window types that represent normal application windows. | |||||||||
| int | FIRST_SUB_WINDOW | Start of types of sub-windows. | |||||||||
| int | FIRST_SYSTEM_WINDOW | Start of system-specific window types. | |||||||||
| int | FLAGS_CHANGED | ||||||||||
| int | FLAG_BLUR_BEHIND | Window flag: blur everything behind this window. | |||||||||
| int | FLAG_DIM_BEHIND | Window flag: everything behind this window will be dimmed. | |||||||||
| int | FLAG_DITHER | Window flag: turn on dithering when compositing this window to the screen. | |||||||||
| int | FLAG_FORCE_NOT_FULLSCREEN | Window flag: Override {@link #FLAG_FULLSCREEN and force the screen decorations (such as status bar) to be shown. | |||||||||
| int | FLAG_FULLSCREEN | Window flag: Hide all screen decorations (e.g. | |||||||||
| int | FLAG_IGNORE_CHEEK_PRESSES | Window flag: intended for windows that will often be used when the user is holding the screen against their face, it will aggressively filter the event stream to prevent unintended presses in this situation that may not be desired for a particular window, when such an event stream is detected, the application will receive a CANCEL motion event to indicate this so applications can handle this accordingly by taking no action on the event until the finger is released. | |||||||||
| int | FLAG_KEEP_SCREEN_ON | Window flag: as long as this window is visible to the user, keep the device's screen turned on and bright. | |||||||||
| int | FLAG_LAYOUT_INSET_DECOR | Window flag: a special option only for use in combination with FLAG_LAYOUT_IN_SCREEN. | |||||||||
| int | FLAG_LAYOUT_IN_SCREEN | Window flag: place the window within the entire screen, ignoring decorations around the border (a.k.a. | |||||||||
| int | FLAG_LAYOUT_NO_LIMITS | Window flag: allow window to extend outside of the screen. | |||||||||
| int | FLAG_NOT_FOCUSABLE | Window flag: this window won't ever get focus. | |||||||||
| int | FLAG_NOT_TOUCHABLE | Window flag: this window can never receive touch events. | |||||||||
| int | FLAG_NOT_TOUCH_MODAL | Window flag: Even when this window is focusable (its {@link #FLAG_NOT_FOCUSABLE is not set), allow any pointer events outside of the window to be sent to the windows behind it. | |||||||||
| int | FLAG_SCALED | Window flag: a special mode where the layout parameters are used to perform scaling of the surface when it is composited to the screen. | |||||||||
| int | FLAG_SECURE | Window flag: don't allow screen shots while this window is displayed. | |||||||||
| int | FLAG_TOUCHABLE_WHEN_WAKING | Window flag: When set, if the device is asleep when the touch screen is pressed, you will receive this first touch event. | |||||||||
| int | FORMAT_CHANGED | ||||||||||
| int | LAST_APPLICATION_WINDOW | End of types of application windows. | |||||||||
| int | LAST_SUB_WINDOW | End of types of sub-windows. | |||||||||
| int | LAST_SYSTEM_WINDOW | End of types of system windows. | |||||||||
| int | LAYOUT_CHANGED | ||||||||||
| int | MEMORY_TYPE_CHANGED | ||||||||||
| int | MEMORY_TYPE_GPU | Memory type: The window's surface is configured to be accessible by graphics accelerators. | |||||||||
| int | MEMORY_TYPE_HARDWARE | Memory type: The window's surface is configured to be accessible by DMA engines and hardware accelerators. | |||||||||
| int | MEMORY_TYPE_NORMAL | Memory type: The window's surface is allocated in main memory. | |||||||||
| int | MEMORY_TYPE_PUSH_BUFFERS | Memory type: The window's surface doesn't own its buffers and therefore cannot be locked. | |||||||||
| int | TITLE_CHANGED | ||||||||||
| int | TYPE_APPLICATION | Window type: a normal application window. | |||||||||
| int | TYPE_APPLICATION_MEDIA | Window type: window for showing media (e.g. | |||||||||
| int | TYPE_APPLICATION_PANEL | Window type: a panel on top of an application window. | |||||||||
| int | TYPE_APPLICATION_STARTING | Window type: special application window that is displayed while the application is starting. | |||||||||
| int | TYPE_APPLICATION_SUB_PANEL | Window type: a sub-panel on top of an application window. | |||||||||
| int | TYPE_BASE_APPLICATION | Window type: an application window that serves as the "base" window of the overall application; all other application windows will appear on top of it. | |||||||||
| int | TYPE_CHANGED | ||||||||||
| int | TYPE_KEYGUARD | Window type: keyguard window. | |||||||||
| int | TYPE_KEYGUARD_DIALOG | Window type: dialogs that the keyguard shows | |||||||||
| int | TYPE_PHONE | Window type: phone. | |||||||||
| int | TYPE_PRIORITY_PHONE | Window type: priority phone UI, which needs to be displayed even if the keyguard is active. | |||||||||
| int | TYPE_SEARCH_BAR | Window type: the search bar. | |||||||||
| int | TYPE_STATUS_BAR | Window type: the status bar. | |||||||||
| int | TYPE_STATUS_BAR_PANEL | Window type: panel that slides out from the status bar | |||||||||
| int | TYPE_SYSTEM_ALERT | Window type: system window, such as low power alert. | |||||||||
| int | TYPE_SYSTEM_DIALOG | Window type: panel that slides out from the status bar | |||||||||
| int | TYPE_SYSTEM_ERROR | Window type: internal system error windows, appear on top of everything they can. | |||||||||
| int | TYPE_SYSTEM_OVERLAY | Window type: system overlay windows, which need to be displayed on top of everything else. | |||||||||
| int | TYPE_TOAST | Window type: transient notifications. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| alpha | An alpha value to apply to this entire window. | ||||||||||
| dimAmount | When FLAG_DIM_BEHIND is set, this is the amount of dimming to apply. | ||||||||||
| flags | Various behavioral options/flags. | ||||||||||
| format | The desired bitmap format. | ||||||||||
| gravity | Placement of window within the screen as per Gravity | ||||||||||
| horizontalMargin | The horizontal margin, as a percentage of the container's width, between the container and the widget. | ||||||||||
| horizontalWeight | Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams. | ||||||||||
| memoryType | Specifies what type of memory buffers should be used by this window. | ||||||||||
| packageName | Name of the package owning this window. | ||||||||||
| token | Identifier for this window. | ||||||||||
| type | The general type of window. | ||||||||||
| verticalMargin | The vertical margin, as a percentage of the container's height, between the container and the widget. | ||||||||||
| verticalWeight | Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams. | ||||||||||
| windowAnimations | A style resource defining the animations to use for this window. | ||||||||||
| x | X position for this window. | ||||||||||
| y | Y position for this window. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a String representation of this set of layout parameters.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns a string containing a concise, human-readable description of the
receiver.
| |||||||||||
Flatten this object in to a Parcel.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class android.view.ViewGroup.LayoutParams
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
| |||||||||||
Start of window types that represent normal application windows.
Start of types of sub-windows. The token of these windows must be set to the window they are attached to. These types of windows are kept next to their attached window in Z-order, and their coordinate space is relative to their attached window.
Start of system-specific window types. These are not normally created by applications.
Window flag: blur everything behind this window.
Window flag: everything behind this window will be dimmed. Use dimAmount to control the amount of dim.
Window flag: turn on dithering when compositing this window to the screen.
Window flag: Override {@link #FLAG_FULLSCREEN and force the screen decorations (such as status bar) to be shown.
Window flag: Hide all screen decorations (e.g. status bar) while this window is displayed. This allows the window to use the entire display space for itself -- the status bar will be hidden when an app window with this flag set is on the top layer.
Window flag: intended for windows that will often be used when the user is holding the screen against their face, it will aggressively filter the event stream to prevent unintended presses in this situation that may not be desired for a particular window, when such an event stream is detected, the application will receive a CANCEL motion event to indicate this so applications can handle this accordingly by taking no action on the event until the finger is released.
Window flag: as long as this window is visible to the user, keep the device's screen turned on and bright.
Window flag: a special option only for use in combination with FLAG_LAYOUT_IN_SCREEN. When requesting layout in the screen your window may appear on top of or behind screen decorations such as the status bar. By also including this flag, the window manager will report the inset rectangle needed to ensure your content is not covered by screen decorations. This flag is normally set for you by Window as described in setFlags(int, int).
Window flag: place the window within the entire screen, ignoring decorations around the border (a.k.a. the status bar). The window must correctly position its contents to take the screen decoration into account. This flag is normally set for you by Window as described in setFlags(int, int).
Window flag: allow window to extend outside of the screen.
Window flag: this window won't ever get focus.
Window flag: this window can never receive touch events.
Window flag: Even when this window is focusable (its {@link #FLAG_NOT_FOCUSABLE is not set), allow any pointer events outside of the window to be sent to the windows behind it. Otherwise it will consume all pointer events itself, regardless of whether they are inside of the window.
Window flag: a special mode where the layout parameters are used to perform scaling of the surface when it is composited to the screen.
Window flag: don't allow screen shots while this window is displayed.
Window flag: When set, if the device is asleep when the touch screen is pressed, you will receive this first touch event. Usually the first touch event is consumed by the system since the user can not see what they are pressing on.
End of types of application windows.
End of types of sub-windows.
End of types of system windows.
Memory type: The window's surface is configured to be accessible by graphics accelerators.
Memory type: The window's surface is configured to be accessible by DMA engines and hardware accelerators.
Memory type: The window's surface is allocated in main memory.
Memory type: The window's surface doesn't own its buffers and therefore cannot be locked. Instead the buffers are pushed to it through native binder calls.
Window type: a normal application window. The token must be an Activity token identifying who the window belongs to.
Window type: window for showing media (e.g. video). These windows are displayed behind their attached window.
Window type: a panel on top of an application window. These windows appear on top of their attached window.
Window type: special application window that is displayed while the application is starting. Not for use by applications themselves; this is used by the system to display something until the application can show its own windows.
Window type: a sub-panel on top of an application window. These windows are displayed on top their attached window and any TYPE_APPLICATION_PANEL panels.
Window type: an application window that serves as the "base" window of the overall application; all other application windows will appear on top of it.
Window type: keyguard window.
Window type: dialogs that the keyguard shows
Window type: phone. These are non-application windows providing user interaction with the phone (in particular incoming calls). These windows are normally placed above all applications, but behind the status bar.
Window type: priority phone UI, which needs to be displayed even if the keyguard is active. These windows must not take input focus, or they will interfere with the keyguard.
Window type: the search bar. There can be only one search bar window; it is placed at the top of the screen.
Window type: the status bar. There can be only one status bar window; it is placed at the top of the screen, and all other windows are shifted down so they are below it.
Window type: panel that slides out from the status bar
Window type: system window, such as low power alert. These windows are always on top of application windows.
Window type: panel that slides out from the status bar
Window type: internal system error windows, appear on top of everything they can.
Window type: system overlay windows, which need to be displayed on top of everything else. These windows must not take input focus, or they will interfere with the keyguard.
Window type: transient notifications.
An alpha value to apply to this entire window. An alpha of 1.0 means fully opaque and 0.0 means fully transparent
When FLAG_DIM_BEHIND is set, this is the amount of dimming to apply. Range is from 1.0 for completely opaque to 0.0 for no dim.
Various behavioral options/flags. Default is none.
The desired bitmap format. May be one of the constants in PixelFormat. Default is OPAQUE.
The horizontal margin, as a percentage of the container's width, between the container and the widget.
Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.
Specifies what type of memory buffers should be used by this window. Default is normal.
Name of the package owning this window.
Identifier for this window. This will usually be filled in for you.
The general type of window. There are three main classes of window types:
The vertical margin, as a percentage of the container's height, between the container and the widget.
Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.
A style resource defining the animations to use for this window. This must be a system resource; it can not be an application resource because the window manager does not have access to applications.
Returns a String representation of this set of layout parameters.
| output | the String to prepend to the internal representation |
|---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns a string containing a concise, human-readable description of the receiver.
Flatten this object in to a Parcel.
| out | The Parcel in which the object should be written. |
|---|---|
| parcelableFlags | Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |