Android.Views.Window Members

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

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

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

Public Fields

const
IdAndroidContentint (16908290). The ID that the main layout in the XML layout file should have.
const
NavigationBarBackgroundTransitionNamestring. The transitionName for the navigation bar background View when a custom background is used.
const
ProgressEndWindowProgress (10000). Ending value for the (primary) progress
const
ProgressIndeterminateOffWindowProgress (-4). Flag for setting the progress bar's indeterminate mode off
const
ProgressIndeterminateOnWindowProgress (-3). Flag for setting the progress bar's indeterminate mode on
const
ProgressSecondaryEndWindowProgress (30000). Highest possible value for the secondary progress
const
ProgressSecondaryStartWindowProgress (20000). Lowest possible value for the secondary progress
const
ProgressStartWindowProgress (0). Starting value for the (primary) progress
const
ProgressVisibilityOffWindowProgress (-2). Flag for setting the progress bar's visibility to GONE
const
ProgressVisibilityOnWindowProgress (-1). Flag for setting the progress bar's visibility to VISIBLE
const
StatusBarBackgroundTransitionNamestring. The transitionName for the status bar background View when a custom background is used.

Public Properties

AllowEnterTransitionOverlapbool. Returns how the transition set in Window.EnterTransition overlaps with the exit transition of the calling Activity.
AllowReturnTransitionOverlapbool. Returns how the transition set in Window.ExitTransition overlaps with the exit transition of the called Activity when reentering after if finishes.
AttributesWindowManagerLayoutParams. Retrieve the current window attributes associated with this panel.
CallbackWindow.ICallback. Return the current Callback interface for this window.
ContainerWindow. Return the container for this Window.
[read-only]
ContentSceneAndroid.Transitions.Scene. Retrieve the Android.Transitions.Scene representing this window's current content.
[read-only]
ContextAndroid.Content.Context. Return the Context this window policy is running in, for retrieving resources and other information.
[read-only]
abstract
CurrentFocusView. Return the view in this Window that currently has focus, or null if there are none.
[read-only]
abstract
DecorViewView. Retrieve the top-level window decor view (containing the standard window frame/decorations and the client's content inside of that), which can be added as a window to the window manager.
EnterTransitionAndroid.Transitions.Transition. Returns the transition used to move Views into the initial scene.
ExitTransitionAndroid.Transitions.Transition. Returns the Transition that will be used to move Views out of the scene when starting a new Activity.
[read-only]
HasChildrenbool.
[read-only]
IsActivebool.
[read-only]
abstract
IsFloatingbool. Return whether this window is being displayed with a floating style (based on the NoType:android/R$attr;Href=../../../reference/android/R.attr.html#windowIsFloating attribute in the style/theme).
[read-only]
abstract
LayoutInflaterLayoutInflater. Quick access to the Android.Views.LayoutInflater instance that this Window retrieved from its Context.
MediaControllerAndroid.Media.Session.MediaController. Gets the Android.Media.Session.MediaController that was previously set.
abstract
NavigationBarColorAndroid.Graphics.Color.
ReenterTransitionAndroid.Transitions.Transition. Returns the Transition that will be used to move Views in to the scene when returning from a previously-started Activity.
ReturnTransitionAndroid.Transitions.Transition. Returns he Transition that will be used to move Views out of the scene when the Window is preparing to close, for example after a call to Android.App.Activity.FinishAfterTransition.
SharedElementEnterTransitionAndroid.Transitions.Transition. Returns the Transition that will be used for shared elements transferred into the content Scene.
SharedElementExitTransitionAndroid.Transitions.Transition. Returns the Transition to use for shared elements in the launching Window prior to transferring to the launched Activity's Window.
SharedElementReenterTransitionAndroid.Transitions.Transition. Returns the Transition that will be used for shared elements reentering from a started Activity after it has returned the shared element to it start location.
SharedElementReturnTransitionAndroid.Transitions.Transition. Returns the Transition that will be used for shared elements transferred back to a calling Activity.
SharedElementsUseOverlaybool. Returns true when shared elements should use an Overlay during shared element transitions or false when they should animate as part of the normal View hierarchy.
abstract
StatusBarColorAndroid.Graphics.Color.
TransitionBackgroundFadeDurationlong. Returns the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition.
TransitionManagerAndroid.Transitions.TransitionManager. Retrieve the Android.Transitions.TransitionManager responsible for for default transitions in this window.
abstract
VolumeControlStreamAndroid.Media.Stream.
[read-only]
WindowManagerIWindowManager. Return the window manager allowing this Window to display its own windows.
[read-only]
WindowStyleAndroid.Content.Res.TypedArray. Return the NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#Window attributes from this window's theme.

Protected Properties

[read-only]
Featuresint. Return the feature bits that are enabled.
[read-only]
ForcedWindowFlagsint. Return the window flags that have been explicitly set by the client, so will not be modified by Window.DecorView.
[read-only]
HasSoftInputModebool. Has the app specified their own soft input mode?
[read-only]
LocalFeaturesint. Return the feature bits that are being implemented by this Window.
[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

abstract
AddContentView(View, ViewGroup.LayoutParams)
Variation on Window.SetContentView(View, .LayoutParams) to add an additional content view to the screen.
AddFlags(WindowManagerFlags)
Convenience function to set the flag bits as specified in flags, as per Window.SetFlags(WindowManagerFlags, Android.Views.WindowManagerFlags).
ClearFlags(WindowManagerFlags)
Convenience function to clear the flag bits as specified in flags, as per Window.SetFlags(WindowManagerFlags, Android.Views.WindowManagerFlags).
abstract
CloseAllPanels()
abstract
ClosePanel(int)
FindViewById(int) : View
Finds a view that was identified by the id attribute from the XML that was processed in Android.App.Activity.OnCreate(Android.OS.Bundle).
FindViewById<T>(int) : T
Documentation for this section has not yet been entered.
HasFeature(WindowFeatures) : bool
Query for the availability of a certain feature.
InjectInputEvent(InputEvent)
Inject an event to window locally.
abstract
InvalidatePanelMenu(WindowFeatures)
abstract
IsShortcutKey(Keycode, KeyEvent) : bool
Is a keypress one of the defined shortcut keys for this window.
MakeActive()
abstract
OnConfigurationChanged(Android.Content.Res.Configuration)
Should be called when the configuration is changed.
abstract
OpenPanel(int, KeyEvent)
abstract
PeekDecorView() : View
Retrieve the current decor view, but only if it has already been created; otherwise returns null.
abstract
PerformContextMenuIdentifierAction(int, MenuPerformFlags) : bool
abstract
PerformPanelIdentifierAction(int, int, MenuPerformFlags) : bool
abstract
PerformPanelShortcut(int, Keycode, KeyEvent, MenuPerformFlags) : bool
RequestFeature(WindowFeatures) : bool
Enable extended screen features.
abstract
RestoreHierarchyState(Android.OS.Bundle)
abstract
SaveHierarchyState() : Android.OS.Bundle
abstract
SetBackgroundDrawable(Android.Graphics.Drawables.Drawable)
Change the background of this window to a custom Drawable.
SetBackgroundDrawableResource(int)
Change the background of this window to a Drawable resource.
abstract
SetChildDrawable(int, Android.Graphics.Drawables.Drawable)
abstract
SetChildInt(int, int)
abstract
SetContentView(View)
Convenience for Window.SetContentView(View, .LayoutParams) set the screen content to an explicit view.
abstract
SetContentView(int)
Convenience for Window.SetContentView(View, .LayoutParams) to set the screen content from a layout resource.
abstract
SetContentView(View, ViewGroup.LayoutParams)
Set the screen content to an explicit view.
SetDimAmount(float)
Set the amount of dim behind the window when using WindowManagerLayoutParams.FLAG_DIM_BEHIND.
abstract
SetFeatureDrawable(WindowFeatures, Android.Graphics.Drawables.Drawable)
Set an explicit Drawable value for feature of this window.
abstract
SetFeatureDrawableAlpha(WindowFeatures, int)
Set a custom alpha value for the given drawale feature, controlling how much the background is visible through it.
abstract
SetFeatureDrawableResource(WindowFeatures, int)
Set the value for a drawable feature of this window, from a resource identifier.
abstract
SetFeatureDrawableUri(WindowFeatures, Android.Net.Uri)
Set the value for a drawable feature of this window, from a URI.
abstract
SetFeatureInt(WindowFeatures, int)
Set the integer value for a feature.
SetFlags(WindowManagerFlags, WindowManagerFlags)
Set the flags of the window, as per the Android.Views.WindowManagerLayoutParams flags.
SetFormat(Android.Graphics.Format)
Set the format of window, as per the PixelFormat types.
SetGravity(GravityFlags)
Set the gravity of the window, as per the Gravity constants.
SetIcon(int)
Set the primary icon for this window.
SetLayout(int, int)
Set the width and height layout parameters of the window.
SetLocalFocus(bool, bool)
Set focus locally.
SetLogo(int)
Set the logo for this window.
SetSoftInputMode(SoftInput)
Specify an explicit soft input mode to use for the window, as per WindowManagerLayoutParams.SoftInputMode.
abstract
SetTitle(Java.Lang.ICharSequence)
SetTitle(string)
Documentation for this section has not yet been entered.
abstract
SetTitleColor(Android.Graphics.Color)
SetType(WindowManagerTypes)
Set the type of the window, as per the WindowManager.
SetUiOptions(Android.Content.PM.UiOptions)
Set extra options that will influence the UI for this window.
SetUiOptions(Android.Content.PM.UiOptions, Android.Content.PM.UiOptions)
Set extra options that will influence the UI for this window.
SetWindowAnimations(int)
Specify custom animations to use for the window, as per WindowManagerLayoutParams.WindowAnimations.
SetWindowManager(IWindowManager, Android.OS.IBinder, string)
Set the window manager for use by this Window to, for example, display panels.
SetWindowManager(IWindowManager, Android.OS.IBinder, string, bool)
Set the window manager for use by this Window to, for example, display panels.
abstract
SuperDispatchGenericMotionEvent(MotionEvent) : bool
Used by custom windows, such as Dialog, to pass the generic motion event further down the view hierarchy.
abstract
SuperDispatchKeyEvent(KeyEvent) : bool
Used by custom windows, such as Dialog, to pass the key press event further down the view hierarchy.
abstract
SuperDispatchKeyShortcutEvent(KeyEvent) : bool
Used by custom windows, such as Dialog, to pass the key shortcut press event further down the view hierarchy.
abstract
SuperDispatchTouchEvent(MotionEvent) : bool
Used by custom windows, such as Dialog, to pass the touch screen event further down the view hierarchy.
abstract
SuperDispatchTrackballEvent(MotionEvent) : bool
Used by custom windows, such as Dialog, to pass the trackball event further down the view hierarchy.
abstract
TakeInputQueue(InputQueue.ICallback)
Take ownership of this window's InputQueue.
abstract
TakeKeyEvents(bool)
Request that key events come to this activity.
abstract
TakeSurface(ISurfaceHolderCallback2)
Take ownership of this window's surface.
abstract
TogglePanel(int, KeyEvent)

Protected Methods

abstract
OnActive()
SetDefaultWindowFormat(int)
Set the default format of window, as per the PixelFormat types.