Get window from view android

Window Class

Definition

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Abstract base class for a top-level window look and behavior policy.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

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

Fields

Flag for letting the theme drive the color of the window caption controls.

Flag for setting dark-color controls on the window caption.

Flag for setting light-color controls on the window caption.

The ID that the main layout in the XML layout file should have.

The transitionName for the navigation bar background View when a custom background is used.

Ending value for the (primary) progress.

Flag for setting the progress bar’s indeterminate mode off.

Flag for setting the progress bar’s indeterminate mode on.

Highest possible value for the secondary progress.

Lowest possible value for the secondary progress.

Starting value for the (primary) progress.

Flag for setting the progress bar’s visibility to GONE.

Flag for setting the progress bar’s visibility to VISIBLE.

The transitionName for the status bar background View when a custom background is used.

Properties

Returns how the transition set in #setEnterTransition(android.transition.Transition) overlaps with the exit transition of the calling Activity. -or- Controls how the transition set in #setEnterTransition(android.transition.Transition) overlaps with the exit transition of the calling Activity.

Returns how the transition set in #setExitTransition(android.transition.Transition) overlaps with the exit transition of the called Activity when reentering after if finishes. -or- Controls how the transition set in #setExitTransition(android.transition.Transition) overlaps with the exit transition of the called Activity when reentering after if finishes.

Retrieve the current window attributes associated with this panel. -or- Specify custom window attributes.

Return the current Callback interface for this window. -or- Set the Callback interface for this window, used to intercept key events and other dynamic operations in the window.

Returns the runtime class of this Object .

(Inherited from Object) ColorMode

Returns the requested color mode of the window, one of ActivityInfo#COLOR_MODE_DEFAULT , ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT or ActivityInfo#COLOR_MODE_HDR . -or- Sets the requested color mode of the window.

Return the container for this Window. -or- Set the container for this window.

Retrieve the Scene representing this window’s current content.

Return the Context this window policy is running in, for retrieving resources and other information.

Return the view in this Window that currently has focus, or null if there are none.

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.

Returns the transition used to move Views into the initial scene. -or- Sets the Transition that will be used to move Views into the initial scene.

Returns the Transition that will be used to move Views out of the scene when starting a new Activity. -or- Sets the Transition that will be used to move Views out of the scene when starting a new Activity.

Return the feature bits that are enabled.

Return the window flags that have been explicitly set by the client, so will not be modified by #getDecorView .

Читайте также:  Телефоны андроид с кулаком

The handle to the underlying Android instance.

(Inherited from Object) HasChildren HasSoftInputMode

Has the app specified their own soft input mode?

Return whether this window is being displayed with a floating style (based on the WindowIsFloating attribute in the style/theme).

Returns true if this window’s color mode is ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT , the display has a wide color gamut and this device supports wide color gamut rendering.

Quick access to the LayoutInflater instance that this Window retrieved from its Context.

Return the feature bits that are being implemented by this Window.

Gets the MediaController that was previously set. -or- Sets a MediaController to send media keys and volume changes to.

Returns whether the system is ensuring that the navigation bar has enough contrast when a fully transparent background is requested. -or- Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested.

Retrieves the color of the navigation bar divider. -or- Shows a thin line of the specified color between the navigation bar and the app content.

Returns the Transition that will be used to move Views in to the scene when returning from a previously-started Activity. -or- Sets the Transition that will be used to move Views in to the scene when returning from a previously-started Activity.

Returns the 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() . -or- Sets the 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() .

This will be null before a content view is added, e.

Returns the Transition that will be used for shared elements transferred into the content Scene. -or- Sets the Transition that will be used for shared elements transferred into the content Scene.

Returns the Transition to use for shared elements in the launching Window prior to transferring to the launched Activity’s Window. -or- Sets the Transition that will be used for shared elements after starting a new Activity before the shared elements are transferred to the called Activity.

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. -or- Sets 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.

Returns the Transition that will be used for shared elements transferred back to a calling Activity. -or- Sets the Transition that will be used for shared elements transferred back to a calling Activity.

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. -or- Sets whether or not shared elements should use an Overlay during shared element transitions.

Returns whether the system is ensuring that the status bar has enough contrast when a fully transparent background is requested. -or- Sets whether the system should ensure that the status bar has enough contrast when a fully transparent background is requested.

Retrieve the list of areas within this window’s coordinate space where the system should not intercept touch or other pointing device gestures. -or- Sets a list of areas within this window’s coordinate space where the system should not intercept touch or other pointing device gestures.

Читайте также:  Китайская тема для андроид

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Returns the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition. -or- Sets the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition.

Retrieve the TransitionManager responsible for for default transitions in this window. -or- Set the TransitionManager to use for default transitions in this window.

Return the window manager allowing this Window to display its own windows.

Return the android.R.styleable#Window attributes from this window’s theme.

Methods

Variation on #setContentView(View, android.view.ViewGroup.LayoutParams) to add an additional content view to the screen.

Convenience function to set the flag bits as specified in flags, as per #setFlags .

Set an observer to collect frame stats for each frame rendered in this window.

Convenience function to clear the flag bits as specified in flags, as per #setFlags .

Creates and returns a copy of this object.

(Inherited from Object) CloseAllPanels() ClosePanel(Int32) Dispose() (Inherited from Object) Dispose(Boolean) (Inherited from Object) Equals(Object)

Indicates whether some other object is «equal to» this one.

(Inherited from Object) FindViewById(Int32)

Finds a view that was identified by the android:id XML attribute that was processed in android.app.Activity#onCreate .

Return the feature bits set by default on a window.

Returns a hash code value for the object.

(Inherited from Object) HasFeature(WindowFeatures)

Query for the availability of a certain feature.

Inject an event to window locally.

Is a keypress one of the defined shortcut keys for this window.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object) MakeActive() Notify()

Wakes up a single thread that is waiting on this object’s monitor.

(Inherited from Object) NotifyAll()

Wakes up all threads that are waiting on this object’s monitor.

(Inherited from Object) OnActive() OnConfigurationChanged(Configuration)

Should be called when the configuration is changed.

Retrieve the current decor view, but only if it has already been created; otherwise returns null.

Used to provide scroll capture support for an arbitrary window.

Remove observer and stop listening to frame stats for this window.

Enable extended screen features.

Finds a view that was identified by the android:id XML attribute that was processed in android.app.Activity#onCreate , or throws an IllegalArgumentException if the ID is invalid, or there is no matching view in the hierarchy.

Blurs the screen behind the window within the bounds of the window.

Change the background of this window to a custom Drawable.

Change the background of this window to a Drawable resource.

Sets whether window content should be clipped to the outline of the window background.

Convenience for #setContentView(View, android.view.ViewGroup.LayoutParams) to set the screen content from a layout resource.

Convenience for #setContentView(View, android.view.ViewGroup.LayoutParams) to set the screen content from a layout resource.

Convenience for #setContentView(View, android.view.ViewGroup.LayoutParams) to set the screen content from a layout resource.

Set what color should the caption controls be.

Sets whether the decor view should fit root-level content views for WindowInsets .

Читайте также:  Создание pdf для андроид

Set the default format of window, as per the PixelFormat types.

Set the amount of dim behind the window when using WindowManager.LayoutParams#FLAG_DIM_BEHIND .

Sets the window elevation.

Set an explicit Drawable value for feature of this window.

Set a custom alpha value for the given drawable feature, controlling how much the background is visible through it.

Set the value for a drawable feature of this window, from a resource identifier.

Set the value for a drawable feature of this window, from a URI.

Set the integer value for a feature.

Set the flags of the window, as per the WindowManager.LayoutParams WindowManager.LayoutParams flags.

Set the format of window, as per the PixelFormat types.

Set the gravity of the window, as per the Gravity constants.

Sets the Handle property.

(Inherited from Object) SetHideOverlayWindows(Boolean)

Prevent non-system overlay windows from being drawn on top of this window.

Set the primary icon for this window.

Set the width and height layout parameters of the window.

Set focus locally.

Set the logo for this window.

If isPreferred is true, this method requests that the connected display does minimal post processing when this window is visible on the screen.

Set the drawable that is drawn underneath the caption during the resizing.

Set a callback for changes of area where caption will draw its content.

Specify an explicit soft input mode to use for the window, as per WindowManager.LayoutParams#softInputMode WindowManager.LayoutParams.softInputMode .

Sets the color of the status bar to color .

Set the type of the window, as per the WindowManager.

Set extra options that will influence the UI for this window.

Set extra options that will influence the UI for this window.

Specify custom animations to use for the window, as per WindowManager.LayoutParams#windowAnimations WindowManager.LayoutParams.windowAnimations .

Set the window manager for use by this Window to, for example, display panels.

Set the window manager for use by this Window to, for example, display panels.

Used by custom windows, such as Dialog, to pass the generic motion event further down the view hierarchy.

Used by custom windows, such as Dialog, to pass the key press event further down the view hierarchy.

Used by custom windows, such as Dialog, to pass the key shortcut press event further down the view hierarchy.

Used by custom windows, such as Dialog, to pass the touch screen event further down the view hierarchy.

Used by custom windows, such as Dialog, to pass the trackball event further down the view hierarchy.

Take ownership of this window’s InputQueue.

Request that key events come to this activity.

Take ownership of this window’s surface.

Returns a string representation of the object.

(Inherited from Object) UnregisterFromRuntime() (Inherited from Object) UnregisterScrollCaptureCallback(IScrollCaptureCallback)

Unregisters a ScrollCaptureCallback previously registered with this window.

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object) Wait(Int64)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object) Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)

Events

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

Performs an Android runtime-checked type conversion.

Источник

Оцените статью