|
Build 1.0_r1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.view.ViewGroup.LayoutParams
android.view.WindowManager.LayoutParams
public static class WindowManager.LayoutParams
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator |
| Field Summary | |
|---|---|
float |
alpha
An alpha value to apply to this entire window. |
static int |
ALPHA_CHANGED
Constant Value: 128 (0x00000080) |
static int |
ANIMATION_CHANGED
Constant Value: 16 (0x00000010) |
static Parcelable.Creator |
CREATOR
|
static int |
DIM_AMOUNT_CHANGED
Constant Value: 32 (0x00000020) |
float |
dimAmount
When FLAG_DIM_BEHIND is set, this is the amount of dimming to apply. |
static int |
FIRST_APPLICATION_WINDOW
Start of window types that represent normal application windows. |
static int |
FIRST_SUB_WINDOW
Start of types of sub-windows. |
static int |
FIRST_SYSTEM_WINDOW
Start of system-specific window types. |
static int |
FLAG_BLUR_BEHIND
Window flag: blur everything behind this window. |
static int |
FLAG_DIM_BEHIND
Window flag: everything behind this window will be dimmed. |
static int |
FLAG_DITHER
Window flag: turn on dithering when compositing this window to the screen. |
static int |
FLAG_FORCE_NOT_FULLSCREEN
Window flag: Override FLAG_FULLSCREEN and force the
screen decorations (such as status bar) to be shown. |
static int |
FLAG_FULLSCREEN
Window flag: Hide all screen decorations (e.g. status bar) while this window is displayed. |
static 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. |
static 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. |
static int |
FLAG_LAYOUT_IN_SCREEN
Window flag: place the window within the entire screen, ignoring decorations around the border (a.k.a. the status bar). |
static int |
FLAG_LAYOUT_INSET_DECOR
Window flag: a special option only for use in combination with FLAG_LAYOUT_IN_SCREEN. |
static int |
FLAG_LAYOUT_NO_LIMITS
Window flag: allow window to extend outside of the screen. |
static int |
FLAG_NOT_FOCUSABLE
Window flag: this window won't ever get focus. |
static int |
FLAG_NOT_TOUCH_MODAL
Window flag: Even when this window is focusable (its FLAG_NOT_FOCUSABLE is not set), allow any pointer events
outside of the window to be sent to the windows behind it. |
static int |
FLAG_NOT_TOUCHABLE
Window flag: this window can never receive touch events. |
static 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. |
static int |
FLAG_SECURE
Window flag: don't allow screen shots while this window is displayed. |
static 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 |
flags
Various behavioral options/flags. |
static int |
FLAGS_CHANGED
Constant Value: 4 (0x00000004) |
int |
format
The desired bitmap format. |
static int |
FORMAT_CHANGED
Constant Value: 8 (0x00000008) |
int |
gravity
Placement of window within the screen as per Gravity |
float |
horizontalMargin
The horizontal margin, as a percentage of the container's width, between the container and the widget. |
float |
horizontalWeight
Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams. |
static int |
LAST_APPLICATION_WINDOW
End of types of application windows. |
static int |
LAST_SUB_WINDOW
End of types of sub-windows. |
static int |
LAST_SYSTEM_WINDOW
End of types of system windows. |
static int |
LAYOUT_CHANGED
Constant Value: 1 (0x00000001) |
static int |
MEMORY_TYPE_CHANGED
Constant Value: 256 (0x00000100) |
static int |
MEMORY_TYPE_GPU
Memory type: The window's surface is configured to be accessible by graphics accelerators. |
static int |
MEMORY_TYPE_HARDWARE
Memory type: The window's surface is configured to be accessible by DMA engines and hardware accelerators. |
static int |
MEMORY_TYPE_NORMAL
Memory type: The window's surface is allocated in main memory. |
static int |
MEMORY_TYPE_PUSH_BUFFERS
Memory type: The window's surface doesn't own its buffers and therefore cannot be locked. |
int |
memoryType
Specifies what type of memory buffers should be used by this window. |
String |
packageName
Name of the package owning this window. |
static int |
TITLE_CHANGED
Constant Value: 64 (0x00000040) |
IBinder |
token
Identifier for this window. |
int |
type
The general type of window. |
static int |
TYPE_APPLICATION
Window type: a normal application window. |
static int |
TYPE_APPLICATION_MEDIA
Window type: window for showing media (e.g. video). |
static int |
TYPE_APPLICATION_PANEL
Window type: a panel on top of an application window. |
static int |
TYPE_APPLICATION_STARTING
Window type: special application window that is displayed while the application is starting. |
static int |
TYPE_APPLICATION_SUB_PANEL
Window type: a sub-panel on top of an application window. |
static 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. |
static int |
TYPE_CHANGED
Constant Value: 2 (0x00000002) |
static int |
TYPE_KEYGUARD
Window type: keyguard window. |
static int |
TYPE_KEYGUARD_DIALOG
Window type: dialogs that the keyguard shows Constant Value: 2009 (0x000007d9) |
static int |
TYPE_PHONE
Window type: phone. |
static int |
TYPE_PRIORITY_PHONE
Window type: priority phone UI, which needs to be displayed even if the keyguard is active. |
static int |
TYPE_SEARCH_BAR
Window type: the search bar. |
static int |
TYPE_STATUS_BAR
Window type: the status bar. |
static int |
TYPE_STATUS_BAR_PANEL
Window type: panel that slides out from the status bar Constant Value: 2008 (0x000007d8) |
static int |
TYPE_SYSTEM_ALERT
Window type: system window, such as low power alert. |
static int |
TYPE_SYSTEM_DIALOG
Window type: panel that slides out from the status bar Constant Value: 2008 (0x000007d8) |
static int |
TYPE_SYSTEM_ERROR
Window type: internal system error windows, appear on top of everything they can. |
static int |
TYPE_SYSTEM_OVERLAY
Window type: system overlay windows, which need to be displayed on top of everything else. |
static int |
TYPE_TOAST
Window type: transient notifications. |
float |
verticalMargin
The vertical margin, as a percentage of the container's height, between the container and the widget. |
float |
verticalWeight
Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams. |
int |
windowAnimations
A style resource defining the animations to use for this window. |
int |
x
X position for this window. |
int |
y
Y position for this window. |
| Fields inherited from class android.view.ViewGroup.LayoutParams |
|---|
FILL_PARENT, height, layoutAnimationParameters, width, WRAP_CONTENT |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
WindowManager.LayoutParams()
|
|
WindowManager.LayoutParams(int _type)
|
|
WindowManager.LayoutParams(int _type,
int _flags)
|
|
WindowManager.LayoutParams(int _type,
int _flags,
int _format)
|
|
WindowManager.LayoutParams(int w,
int h,
int _type,
int _flags,
int _format)
|
|
WindowManager.LayoutParams(int w,
int h,
int xpos,
int ypos,
int _type,
int _flags,
int _format)
|
|
WindowManager.LayoutParams(Parcel in)
|
|
| Method Summary | |
|---|---|
int |
copyFrom(WindowManager.LayoutParams o)
|
String |
debug(String output)
Returns a String representation of this set of layout parameters. |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
CharSequence |
getTitle()
|
void |
setTitle(CharSequence title)
|
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
void |
writeToParcel(Parcel out,
int parcelableFlags)
Flatten this object in to a Parcel. |
| Methods inherited from class android.view.ViewGroup.LayoutParams |
|---|
setBaseAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
public float horizontalWeight
public float verticalWeight
public int type
TYPE_BASE_APPLICATION,
TYPE_APPLICATION,
TYPE_APPLICATION_STARTING,
TYPE_APPLICATION_PANEL,
TYPE_APPLICATION_MEDIA,
TYPE_APPLICATION_SUB_PANEL,
TYPE_STATUS_BAR,
TYPE_SEARCH_BAR,
TYPE_PHONE,
TYPE_SYSTEM_ALERT,
TYPE_KEYGUARD,
TYPE_TOAST,
TYPE_SYSTEM_OVERLAY,
TYPE_PRIORITY_PHONEpublic static final int FIRST_APPLICATION_WINDOW
public static final int TYPE_BASE_APPLICATION
public static final int TYPE_APPLICATION
public static final int TYPE_APPLICATION_STARTING
public static final int LAST_APPLICATION_WINDOW
public static final int FIRST_SUB_WINDOW
public static final int TYPE_APPLICATION_PANEL
public static final int TYPE_APPLICATION_MEDIA
public static final int TYPE_APPLICATION_SUB_PANEL
public static final int LAST_SUB_WINDOW
public static final int FIRST_SYSTEM_WINDOW
public static final int TYPE_STATUS_BAR
public static final int TYPE_SEARCH_BAR
public static final int TYPE_PHONE
public static final int TYPE_SYSTEM_ALERT
public static final int TYPE_KEYGUARD
public static final int TYPE_TOAST
public static final int TYPE_SYSTEM_OVERLAY
public static final int TYPE_PRIORITY_PHONE
public static final int TYPE_STATUS_BAR_PANEL
public static final int TYPE_SYSTEM_DIALOG
public static final int TYPE_KEYGUARD_DIALOG
public static final int TYPE_SYSTEM_ERROR
public static final int LAST_SYSTEM_WINDOW
public int memoryType
MEMORY_TYPE_NORMAL,
MEMORY_TYPE_HARDWARE,
MEMORY_TYPE_GPU,
MEMORY_TYPE_PUSH_BUFFERSpublic static final int MEMORY_TYPE_NORMAL
public static final int MEMORY_TYPE_HARDWARE
public static final int MEMORY_TYPE_GPU
public static final int MEMORY_TYPE_PUSH_BUFFERS
public int flags
FLAG_BLUR_BEHIND,
FLAG_DIM_BEHIND,
FLAG_NOT_FOCUSABLE,
FLAG_NOT_TOUCHABLE,
FLAG_NOT_TOUCH_MODAL,
FLAG_LAYOUT_IN_SCREEN,
FLAG_DITHER,
FLAG_KEEP_SCREEN_ON,
FLAG_FULLSCREEN,
FLAG_FORCE_NOT_FULLSCREEN,
FLAG_IGNORE_CHEEK_PRESSESpublic static final int FLAG_DIM_BEHIND
public static final int FLAG_BLUR_BEHIND
public static final int FLAG_NOT_FOCUSABLE
public static final int FLAG_NOT_TOUCHABLE
public static final int FLAG_NOT_TOUCH_MODAL
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.
public static final int FLAG_TOUCHABLE_WHEN_WAKING
public static final int FLAG_KEEP_SCREEN_ON
public static final int FLAG_LAYOUT_IN_SCREEN
public static final int FLAG_LAYOUT_NO_LIMITS
public static final int FLAG_FULLSCREEN
public static final int FLAG_FORCE_NOT_FULLSCREEN
FLAG_FULLSCREEN and force the
screen decorations (such as status bar) to be shown.
public static final int FLAG_DITHER
public static final int FLAG_SECURE
public static final int FLAG_SCALED
public static final int FLAG_IGNORE_CHEEK_PRESSES
public static final int FLAG_LAYOUT_INSET_DECOR
public int gravity
Gravitypublic float horizontalMargin
public float verticalMargin
public int format
public int windowAnimations
public float alpha
public float dimAmount
public IBinder token
public String packageName
public static final Parcelable.Creator CREATOR
public static final int LAYOUT_CHANGED
public static final int TYPE_CHANGED
public static final int FLAGS_CHANGED
public static final int FORMAT_CHANGED
public static final int ANIMATION_CHANGED
public static final int DIM_AMOUNT_CHANGED
public static final int TITLE_CHANGED
public static final int ALPHA_CHANGED
public static final int MEMORY_TYPE_CHANGED
| Constructor Detail |
|---|
public WindowManager.LayoutParams()
public WindowManager.LayoutParams(int _type)
public WindowManager.LayoutParams(int _type,
int _flags)
public WindowManager.LayoutParams(int _type,
int _flags,
int _format)
public WindowManager.LayoutParams(int w,
int h,
int _type,
int _flags,
int _format)
public WindowManager.LayoutParams(int w,
int h,
int xpos,
int ypos,
int _type,
int _flags,
int _format)
public WindowManager.LayoutParams(Parcel in)
| Method Detail |
|---|
public final void setTitle(CharSequence title)
public final CharSequence getTitle()
public int describeContents()
describeContents in interface Parcelable
public void writeToParcel(Parcel out,
int parcelableFlags)
writeToParcel in interface Parcelablepublic final int copyFrom(WindowManager.LayoutParams o)
public String debug(String output)
output - the String to prepend to the internal representation
public String toString()
toString in class Object
|
Build 1.0_r1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||