Android Guides | Samples

Android.Views.WindowManagerLayoutParams Class

See Also: WindowManagerLayoutParams

Syntax

[Android.Runtime.Register("android/view/WindowManager$LayoutParams", DoNotGenerateAcw=true)]
public class WindowManagerLayoutParams : ViewGroup+LayoutParams, IParcelable, IDisposable

Remarks

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.WindowManagerLayoutParams are listed below.

See Also: ViewGroup+LayoutParams

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
AlphaChangedWindowManagerEventType (128).
const
AnimationChangedWindowManagerEventType (16).
const
BrightnessOverrideFullSingle (1). Value for WindowManagerLayoutParams.ScreenBrightness and WindowManagerLayoutParams.ButtonBrightness indicating that the screen or button backlight brightness should be set to the hightest value when this window is in front.
const
BrightnessOverrideNoneSingle (-1). Default value for WindowManagerLayoutParams.ScreenBrightness and WindowManagerLayoutParams.ButtonBrightness indicating that the brightness value is not overridden for this window and normal brightness policy should be used.
const
BrightnessOverrideOffSingle (0). Value for WindowManagerLayoutParams.ScreenBrightness and WindowManagerLayoutParams.ButtonBrightness indicating that the screen or button backlight brightness should be set to the lowest value when this window is in front.
const
DimAmountChangedWindowManagerEventType (32).
const
FirstApplicationWindowInt32 (1). Start of window types that represent normal application windows.
const
FirstSubWindowInt32 (1000). Start of types of sub-windows.
const
FirstSystemWindowInt32 (2000). Start of system-specific window types.
const
FlagsChangedWindowManagerEventType (4).
const
FormatChangedWindowManagerEventType (8).
const
LastApplicationWindowInt32 (99). End of types of application windows.
const
LastSubWindowInt32 (1999). End of types of sub-windows.
const
LastSystemWindowInt32 (2999). End of types of system windows.
const
LayoutChangedWindowManagerEventType (1).
const
MemoryTypeChangedWindowManagerEventType (256).
const
RotationAnimationChangedWindowManagerEventType (4096).
const
RotationAnimationCrossfadeWindowRotationAnimation (1). Value for WindowManagerLayoutParams.RotationAnimation to define the animation used to specify that this window will fade in or out following a rotation.
const
RotationAnimationJumpcutWindowRotationAnimation (2). Value for WindowManagerLayoutParams.RotationAnimation to define the animation used to specify that this window will immediately disappear or appear following a rotation.
const
RotationAnimationRotateWindowRotationAnimation (0). Value for WindowManagerLayoutParams.RotationAnimation to define the animation used to specify that this window will rotate in or out following a rotation.
const
ScreenBrightnessChangedWindowManagerEventType (2048).
const
ScreenOrientationChangedWindowManagerEventType (1024).
const
SoftInputModeChangedWindowManagerEventType (512).
const
TitleChangedWindowManagerEventType (64).
const
TypeChangedWindowManagerEventType (2).
const
TypeKeyguardInt32 (2004).

Public Properties

AlphaSingle. An alpha value to apply to this entire window.
ButtonBrightnessSingle. This can be used to override the standard behavior of the button and keyboard backlights.
[read-only]
static
CreatorIParcelableCreator.
DimAmountSingle. When WindowManagerLayoutParams.FLAG_DIM_BEHIND is set, this is the amount of dimming to apply.
FlagsWindowManagerFlags. Various behavioral options/flags.
FormatFormat. The desired bitmap format.
GravityGravityFlags. Placement of window within the screen as per Gravity.
HorizontalMarginSingle. The horizontal margin, as a percentage of the container's width, between the container and the widget.
HorizontalWeightSingle. Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams.
MemoryTypeMemoryType.
PackageNameString. Name of the package owning this window.
PreferredRefreshRateSingle. The preferred refresh rate for the window.
RotationAnimationWindowRotationAnimation. Define the exit and entry animations used on this window when the device is rotated.
ScreenBrightnessSingle. This can be used to override the user's preferred brightness of the screen.
ScreenOrientationScreenOrientation. Specific orientation value for a window.
SoftInputModeSoftInput. Desired operating mode for any soft input area.
SystemUiVisibilityStatusBarVisibility. Control the visibility of the status bar.
TitleString.
TitleFormattedICharSequence.
TokenIBinder. Identifier for this window.
TypeWindowManagerTypes. The general type of window.
VerticalMarginSingle. The vertical margin, as a percentage of the container's height, between the container and the widget.
VerticalWeightSingle. Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams.
WindowAnimationsInt32. A style resource defining the animations to use for this window.
XInt32. X position for this window.
YInt32. Y position for this window.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CopyFrom(WindowManagerLayoutParams) : Int32
Debug(String) : String
Returns a String representation of this set of layout parameters.
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
MayUseInputMethod(WindowManagerFlags) : Boolean
Given a particular set of window manager flags, determine whether such a window may be a target for an input method when it has focus.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.