Android.Views Namespace

Provides types for displaying and interacting with Android application windows, input, and views.

Classes

Name Description
AbsSavedState

A Parcelable implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved.

AbsSavedState.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by AbsSavedState.

ActionMode

Represents a contextual mode of the user interface.

ActionMode.Callback2

Extension of ActionMode.Callback to provide content rect information.

ActionProvider

An ActionProvider defines rich menu interaction in a single component.

ActionProvider.VisibilityEventArgs

Provides data for the Visibility event.

CancelledEventArgs

Provides data for a managed callback event.

Choreographer

Coordinates the timing of animations, input and drawing.

Choreographer.FrameData

The payload for VsyncCallback which includes frame information such as when the frame started being rendered, and multiple possible frame timelines and their information including deadline and expected present time.

Choreographer.FrameTimeline

Holds data that describes one possible VSync frame event to render at.

ContentInfo

Holds all the relevant data for a request to View#performReceiveContent.

ContentInfo.Builder

Builder for ContentInfo.

ContentInfo.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by ContentInfo.

ContextThemeWrapper

A context wrapper that allows you to modify or replace the theme of the wrapped context.

Display

Provides information about the size and density of a logical display.

Display.HdrCapabilities

Encapsulates the HDR capabilities of a given display.

Display.HdrCapabilities.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by Display.HdrCapabilities.

Display.Mode

A mode supported by a given display.

Display.Mode.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by Display.Mode.

DisplayCutout

Represents the area of the display that is not functional for displaying content.

DisplayCutout.Builder

A Builder class to construct a DisplayCutout instance.

DisplayShape

A class representing the shape of a display.

DisplayShape.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by DisplayShape.

DragAndDropPermissions

DragAndDropPermissions controls the access permissions for the content URIs associated with a DragEvent.

DragAndDropPermissions.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by DragAndDropPermissions.

DragEvent

Represents an event that is sent out by the system at various times during a drag and drop operation.

DragEvent.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by DragEvent.

FinishedEventArgs

Provides data for a managed callback event.

FocusFinder

The algorithm used for finding the next focusable view in a given direction from a view that currently has focus.

FrameMetrics

Class containing timing data for various milestones in a frame lifecycle reported by the rendering subsystem.

FrameStats

This is the base class for frame statistics.

GestureDetector

Detects various gestures and events using the supplied MotionEvents.

GestureDetector.ContextClickEventArgs

Provides data for a managed callback event.

GestureDetector.DoubleTapEventArgs

Provides data for the DoubleTap event.

GestureDetector.DoubleTapEventEventArgs

Provides data for the DoubleTapEvent event.

GestureDetector.DownEventArgs

Provides data for a managed callback event.

GestureDetector.FlingEventArgs

Provides data for a managed callback event.

GestureDetector.LongPressEventArgs

Provides data for a managed callback event.

GestureDetector.ScrollEventArgs

Provides data for a managed callback event.

GestureDetector.ShowPressEventArgs

Provides data for a managed callback event.

GestureDetector.SimpleOnGestureListener

A convenience class to extend when you only want to listen for a subset of all the gestures.

GestureDetector.SingleTapConfirmedEventArgs

Provides data for the SingleTapConfirmed event.

GestureDetector.SingleTapUpEventArgs

Provides data for a managed callback event.

Gravity

Standard constants and tools for placing an object within a potentially larger container.

HapticFeedbackConstants

Constants to be used to perform haptic feedback effects via View#performHapticFeedback(int)

IAttachedSurfaceControl.BufferTransformHintChangedEventArgs

Provides data for a managed callback event.

IContextMenuExtensions

Contains C# extension methods for context-menu operations.

IMenuExtensions

Contains C# extension methods for menu operations.

IMenuItemExtensions

Contains C# extension methods for menu-item operations.

InflateException

This exception is thrown by an inflater on error conditions.

InputDevice

Describes the capabilities of a particular input device.

InputDevice.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by InputDevice.

InputDevice.MotionRange

Provides information about the range of values for a particular MotionEvent axis.

InputDevice.ViewBehavior

Provides information on how views processing MotionEvents generated by this input device should respond to the events.

InputEvent

Common base class for input events.

InputEvent.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by InputEvent.

InputQueue

An input queue provides a mechanism for an application to receive incoming input events.

ISubMenuExtensions

Contains C# extension methods for sub-menu operations.

IWindowInsetsController.ControllableInsetsChangedEventArgs

Provides data for a managed callback event.

KeyboardShortcutGroup

A group of KeyboardShortcutInfo.

KeyboardShortcutGroup.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by KeyboardShortcutGroup.

KeyboardShortcutInfo

Information about a Keyboard Shortcut.

KeyboardShortcutInfo.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by KeyboardShortcutInfo.

KeyCharacterMap

Describes the keys provided by a keyboard device and their associated labels.

KeyCharacterMap.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by KeyCharacterMap.

KeyCharacterMap.KeyData

Describes the character mappings associated with a key.

KeyCharacterMap.UnavailableException

Thrown by KeyCharacterMap#load when a key character map could not be loaded.

KeyEvent

Object used to report key and button events.

KeyEvent.DispatcherState

Use with KeyEvent#dispatch(Callback, DispatcherState, Object) for more advanced key dispatching, such as long presses.

LayoutInflater

Instantiates a layout XML file into its corresponding android.view.View objects.

Menu

Interface for managing the items in a menu.

MenuInflater

This class is used to instantiate menu XML files into Menu objects.

MenuItemActionCollapseEventArgs

Provides data for a managed callback event.

MenuItemActionExpandEventArgs

Provides data for a managed callback event.

MenuItemOnMenuItemClickEventArgs

Provides data for a managed callback event.

MotionEvent

Object used to report movement (mouse, pen, finger, trackball) events.

MotionEvent.PointerCoords

Transfer object for pointer coordinates.

MotionEvent.PointerProperties

Transfer object for pointer properties.

MotionPredictor

Calculate motion predictions.

OrientationEventListener

Helper class for receiving notifications from the SensorManager when the orientation of the device has changed.

OrientationListener

Helper class for receiving notifications from the SensorManager when the orientation of the device has changed.

PixelCopy

Provides a mechanisms to issue pixel copy requests to allow for copy operations from Surface to Bitmap

PixelCopy.PixelCopyFinishedEventArgs

Provides data for a managed callback event.

PixelCopy.PixelCopyRequest

Represents a PixelCopy request.

PixelCopy.PixelCopyRequest.Builder

Builds a complete PixelCopy request for execution.

PixelCopy.Result

Contains the result of a PixelCopy request

PointerIcon

Represents an icon that can be used as a mouse pointer.

PointerIcon.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by PointerIcon.

ReadyEventArgs

Provides data for a managed callback event.

RoundedCorner

Represents a rounded corner of the display.

RoundedCorner.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by RoundedCorner.

ScaleGestureDetector

Detects scaling transformation gestures using the supplied MotionEvents.

ScaleGestureDetector.ScaleBeginEventArgs

Provides data for a managed callback event.

ScaleGestureDetector.ScaleEndEventArgs

Provides data for a managed callback event.

ScaleGestureDetector.ScaleEventArgs

Provides data for a managed callback event.

ScaleGestureDetector.SimpleOnScaleGestureListener

A convenience class to extend when you only want to listen for a subset of scaling-related events.

ScrollCaptureSession

A session represents the scope of interaction between a ScrollCaptureCallback and the system during an active scroll capture operation.

ScrollCaptureTarget

A target collects the set of contextual information for a ScrollCaptureHandler discovered during a View#dispatchScrollCaptureSearch scroll capture search.

SearchEvent

Class that contains information about an event that triggers a search.

SoundEffectConstants

Constants to be used to play sound effects via View#playSoundEffect(int)

Surface

Handle onto a raw buffer that is being managed by the screen compositor.

Surface.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by Surface.

Surface.OutOfResourcesException

Exception thrown when a Canvas couldn't be locked with Surface#lockCanvas, or when a SurfaceTexture could not successfully be allocated.

SurfaceControl

Handle to an on-screen Surface managed by the system compositor.

SurfaceControl.Builder

Builder class for SurfaceControl objects.

SurfaceControl.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by SurfaceControl.

SurfaceControl.JankData

Jank information to be fed back via OnJankDataListener.

SurfaceControl.JankDataEventArgs

Provides data for a managed callback event.

SurfaceControl.OnJankDataListenerRegistration

Handle to a registered OnJankDatalistener.

SurfaceControl.Transaction

An atomic set of changes to a set of SurfaceControl.

SurfaceControl.Transaction.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by SurfaceControl.Transaction.

SurfaceControl.TransactionStats

Transaction stats given to the listener registered in SurfaceControl.Transaction#addTransactionCompletedListener

SurfaceControl.TrustedPresentationThresholds

Threshold values that are sent with Transaction#setTrustedPresentationCallback(SurfaceControl, TrustedPresentationThresholds, Executor, Consumer)

SurfaceControlViewHost

Utility class for adding a View hierarchy to a SurfaceControl.

SurfaceControlViewHost.SurfacePackage

Package encapsulating a Surface hierarchy which contains interactive view elements.

SurfaceControlViewHost.SurfacePackage.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by SurfaceControlViewHost.SurfacePackage.

SurfaceHolderBadSurfaceTypeException

Exception that is thrown from #lockCanvas when called on a Surface whose type is SURFACE_TYPE_PUSH_BUFFERS.

SurfaceView

Provides a dedicated drawing surface embedded inside of a view hierarchy.

TextureView

A TextureView can be used to display a content stream, such as that coming from a camera preview, a video, or an OpenGL scene.

TextureView.SurfaceTextureAvailableEventArgs

Provides data for the SurfaceTextureAvailable event.

TextureView.SurfaceTextureDestroyedEventArgs

Provides data for the SurfaceTextureDestroyed event.

TextureView.SurfaceTextureSizeChangedEventArgs

Provides data for the SurfaceTextureSizeChanged event.

TextureView.SurfaceTextureUpdatedEventArgs

Provides data for the SurfaceTextureUpdated event.

TouchDelegate

Helper class to handle situations where you want a view to have a larger touch area than its actual view bounds.

VelocityTracker

Helper for tracking the velocity of motion events, for implementing flinging and other such gestures.

VerifiedInputEvent

Base class for verified events.

VerifiedInputEvent.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by VerifiedInputEvent.

VerifiedKeyEvent

KeyEvent that has been verified by the system.

VerifiedMotionEvent

MotionEvent that has been verified by the system.

View

This class represents the basic building block for user interface components.

View.AccessibilityDelegate

This class represents a delegate that can be registered in a View to enhance accessibility support via composition rather via inheritance.

View.BaseSavedState

Base class for derived classes that want to save and restore their own state in android.view.View#onSaveInstanceState().

View.CapturedPointerEventArgs

Provides data for a managed callback event.

View.ContextClickEventArgs

Provides data for a managed callback event.

View.CreateContextMenuEventArgs

Provides data for the ContextMenuCreated event.

View.DragEventArgs

Provides data for the Drag event.

View.DragShadowBuilder

Creates an image that the system displays during the drag and drop operation.

View.FocusChangeEventArgs

Provides data for the FocusChange, and QueryTextFocusChange events.

View.GenericMotionEventArgs

Provides data for the GenericMotion event.

View.HoverEventArgs

Provides data for the Hover event.

View.KeyEventArgs

Provides data for the KeyPress event.

View.LayoutChangeEventArgs

Provides data for the LayoutChange event.

View.LongClickEventArgs

Provides data for the LongClick event.

View.LongClickUseDefaultHapticFeedbackEventArgs

Provides data for a managed callback event.

View.MeasureSpec

A MeasureSpec encapsulates the layout requirements passed from parent to child.

View.ScrollChangeEventArgs

Provides data for a managed callback event.

View.SystemUiVisibilityChangeEventArgs

Provides data for the SystemUiVisibilityChange event.

View.TouchEventArgs

Provides data for the Touch, and TouchIntercepted events.

View.UnhandledKeyEventEventArgs

Provides data for a managed callback event.

View.ViewAttachedToWindowEventArgs

Provides data for the ViewAttachedToWindow event.

View.ViewDetachedFromWindowEventArgs

Provides data for the ViewDetachedFromWindow event.

ViewAnimationUtils

Defines common utilities for working with View's animations.

ViewConfiguration

Contains methods to standard constants used in the UI for timeouts, sizes, and distances.

ViewDebug

Various debugging/tracing tools related to View and the view hierarchy.

ViewDebug.CapturedViewProperty

This annotation can be used to mark fields and methods to be dumped when the view is captured.

ViewDebug.ExportedProperty

This annotation can be used to mark fields and methods to be dumped by the view server.

ViewDebug.FlagToString

Defines a mapping from a flag to a String.

ViewDebug.HierarchyTraceType

Defines operations recorded by hierarchy tracing.

ViewDebug.IntToString

Defines a mapping from an int value to a String.

ViewDebug.RecyclerTraceType

Defines operations recorded by recycler tracing.

ViewGroup

A ViewGroup is a special view that can contain child views.

ViewGroup.ChildViewAddedEventArgs

Provides data for the ChildViewAdded event.

ViewGroup.ChildViewRemovedEventArgs

Provides data for the ChildViewRemoved event.

ViewGroup.LayoutParams

LayoutParams are used by views to tell their parents how they want to be laid out.

ViewGroup.MarginLayoutParams

Per-child layout information for layouts that support margins.

ViewGroupOverlay

A group overlay is an extra layer that sits on top of a ViewGroup (the "host view") which is drawn after all other content in that view (including the view group's children).

ViewOutlineProvider

Interface by which a View builds its Outline, used for shadow casting and clipping.

ViewOverlay

An overlay is an extra layer that sits on top of a View (the "host view") which is drawn after all other content in that view (including children, if the view is a ViewGroup).

ViewPropertyAnimator

This class enables automatic and optimized animation of select properties on View objects.

ViewStructure

ViewStructure is a container for storing additional per-view data generated by View#onProvideStructure View.onProvideStructure and View#onProvideAutofillStructure View.onProvideAutofillStructure.

ViewStructure.HtmlInfo

Simplified representation of the HTML properties of a node that represents an HTML element.

ViewStructure.HtmlInfo.Builder

Builds HTML metadata for a ViewStructure node.

ViewStub

A ViewStub is an invisible, zero-sized View that can be used to lazily inflate layout resources at runtime.

ViewStub.InflateEventArgs

Provides data for the InflateEvent event.

ViewTreeObserver

A view tree observer is used to register listeners that can be notified of global changes in the view tree.

ViewTreeObserver.GlobalFocusChangeEventArgs

Provides data for the GlobalFocusChange event.

ViewTreeObserver.PreDrawEventArgs

Provides data for the PreDraw event.

ViewTreeObserver.TouchModeChangeEventArgs

Provides data for the TouchModeChange event.

ViewTreeObserver.WindowFocusChangeEventArgs

Provides data for the WindowFocusChange event.

ViewTreeObserver.WindowVisibilityChangeEventArgs

Provides data for a managed callback event.

Window

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

Window.FrameMetricsAvailableEventArgs

Provides data for a managed callback event.

Window.RestrictedCaptionAreaChangedEventArgs

Provides data for a managed callback event.

WindowAnimationFrameStats

This class contains window animation frame statistics.

WindowAnimationFrameStats.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by WindowAnimationFrameStats.

WindowContentFrameStats

This class contains window content frame statistics.

WindowContentFrameStats.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by WindowContentFrameStats.

WindowId

Safe identifier for a window.

WindowId.FocusObserver

Subclass for observing changes to the focus state of an WindowId.

WindowId.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by WindowId.

WindowInsets

Describes a set of insets for window content.

WindowInsets.Builder

Builder for WindowInsets.

WindowInsets.Side

Class that defines different sides for insets.

WindowInsets.Type

Class that defines different types of sources causing window insets.

WindowInsetsAnimation

Class representing an animation of a set of windows that cause insets.

WindowInsetsAnimation.Bounds

Class representing the range of an WindowInsetsAnimation

WindowInsetsAnimation.Callback

Interface that allows the application to listen to animation events for windows that cause insets.

WindowManager

Provides access to an application's top-level windows and layout parameters.

WindowManagerBadTokenException

Exception that is thrown when trying to add view whose LayoutParamsLayoutParams#token is invalid.

WindowManagerInvalidDisplayException

Exception that is thrown when calling #addView to a secondary display that cannot be found.

WindowManagerLayoutParams

Specifies the layout and behavior of a top-level window.

WindowManagerLayoutParams.InterfaceConsts

Exposes constants inherited from Java interfaces implemented by WindowManagerLayoutParams.

WindowMetrics

Metrics about a Window, consisting of the bounds and WindowInsets.

Interfaces

Name Description
ActionMode.ICallback

Callback interface for action modes.

ActionProvider.IVisibilityListener

Listens to changes in visibility as reported by ActionProvider#refreshVisibility().

Choreographer.IFrameCallback

Implement this interface to receive a callback when a new display frame is being rendered.

Choreographer.IVsyncCallback

Implement this interface to receive a callback to start the next frame.

GestureDetector.IOnContextClickListener

The listener that is used to notify when a context click occurs.

GestureDetector.IOnDoubleTapListener

The listener that is used to notify when a double-tap or a confirmed single-tap occur.

GestureDetector.IOnGestureListener

The listener that is used to notify when gestures occur.

IAttachedSurfaceControl

Provides an interface to the root-Surface of a View Hierarchy or Window.

IAttachedSurfaceControl.IOnBufferTransformHintChangedListener

Buffer transform hint change listener.

ICollapsibleActionView

When a View implements this interface it will receive callbacks when expanded or collapsed as an action view alongside the optional, app-specified callbacks to OnActionExpandListener.

IContextMenu

Extension of Menu for context menus providing functionality to modify the header of the context menu.

IContextMenuContextMenuInfo

Additional information regarding the creation of the context menu.

IMenu

Interface for managing the items in a menu.

IMenuItem

Interface for direct access to a previously created menu item.

IMenuItemOnActionExpandListener

Interface definition for a callback to be invoked when a menu item marked with MenuItem#SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded or collapsed.

IMenuItemOnMenuItemClickListener

Interface definition for a callback to be invoked when a menu item is clicked.

InputQueue.ICallback

Interface to receive notification of when an InputQueue is associated and dissociated with a thread.

IOnReceiveContentListener

Listener for apps to implement handling for insertion of content.

IScrollCaptureCallback

A ScrollCaptureCallback is responsible for providing rendered snapshots of scrolling content for the scroll capture system.

IScrollFeedbackProvider

Provides feedback to the user for scroll events on a View.

ISubMenu

Subclass of Menu for sub menus.

ISurfaceControlInputReceiver

Provides a mechanism for a SurfaceControl to receive input events.

ISurfaceHolder

Abstract interface to someone holding a display surface.

ISurfaceHolderCallback

A client may implement this interface to receive information about changes to the surface.

ISurfaceHolderCallback2

Additional callbacks that can be received for Callback.

IViewManager

Interface to let you add and remove child views to an Activity.

IViewParent

Defines the responsibilities for a class that will be a parent of a View.

IWindowInsetsAnimationController

Controller for app-driven animation of system windows.

IWindowInsetsAnimationControlListener

Listener that encapsulates a request to WindowInsetsController#controlWindowInsetsAnimation.

IWindowInsetsController

Interface to control windows that generate insets.

IWindowInsetsController.IOnControllableInsetsChangedListener

Listener to be notified when the set of controllable WindowInsets.Type controlled by a WindowInsetsController changes.

IWindowManager

The interface that apps use to talk to the window manager.

KeyEvent.ICallback

Receives callbacks while key events are dispatched.

LayoutInflater.IFactory

Creates views while a layout XML resource is inflated.

LayoutInflater.IFactory2

Extends LayoutInflater.IFactory by providing the parent view during layout inflation.

LayoutInflater.IFilter

Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

PixelCopy.IOnPixelCopyFinishedListener

Listener for observing the completion of a PixelCopy request.

ScaleGestureDetector.IOnScaleGestureListener

The listener for receiving notifications when gestures occur.

SurfaceControl.IOnJankDataListener

Listener interface to be informed about SurfaceFlinger's jank classification for a specific surface.

SurfaceControl.ITransactionCommittedListener

Interface to handle request to SurfaceControl.Transaction#addTransactionCommittedListener(Executor, TransactionCommittedListener)

TextureView.ISurfaceTextureListener

This listener can be used to be notified when the surface texture associated with this texture view is available.

View.IOnApplyWindowInsetsListener

Listener for applying window insets on a view in a custom way.

View.IOnAttachStateChangeListener

Interface definition for a callback to be invoked when this view is attached or detached from its window.

View.IOnCapturedPointerListener

Interface definition for a callback to be invoked when a captured pointer event is being dispatched this view.

View.IOnClickListener

Interface definition for a callback to be invoked when a view is clicked.

View.IOnContextClickListener

Interface definition for a callback to be invoked when a view is context clicked.

View.IOnCreateContextMenuListener

Interface definition for a callback to be invoked when the context menu for this view is being built.

View.IOnDragListener

Interface definition for a listener that's invoked when a drag event is dispatched to this view.

View.IOnFocusChangeListener

Interface definition for a callback to be invoked when the focus state of a view changed.

View.IOnGenericMotionListener

Interface definition for a callback to be invoked when a generic motion event is dispatched to this view.

View.IOnHoverListener

Interface definition for a callback to be invoked when a hover event is dispatched to this view.

View.IOnKeyListener

Interface definition for a callback to be invoked when a hardware key event is dispatched to this view.

View.IOnLayoutChangeListener

Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing.

View.IOnLongClickListener

Interface definition for a callback to be invoked when a view has been clicked and held.

View.IOnScrollChangeListener

Interface definition for a callback to be invoked when the scroll X or Y positions of a view change.

View.IOnSystemUiVisibilityChangeListener

Interface definition for a callback to be invoked when the status bar changes visibility.

View.IOnTouchListener

Interface definition for a callback to be invoked when a touch event is dispatched to this view.

View.IOnUnhandledKeyEventListener

Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy.

ViewGroup.IOnHierarchyChangeListener

Interface definition for a callback to be invoked when the hierarchy within this view changed.

ViewStub.IOnInflateListener

Listener used to receive a notification after a ViewStub has successfully inflated its layout resource.

ViewTreeObserver.IOnDrawListener

Interface definition for a callback to be invoked when the view tree is about to be drawn.

ViewTreeObserver.IOnGlobalFocusChangeListener

Interface definition for a callback to be invoked when the focus state within the view tree changes.

ViewTreeObserver.IOnGlobalLayoutListener

Interface definition for a callback to be invoked when the global layout state or the visibility of views within the view tree changes.

ViewTreeObserver.IOnPreDrawListener

Interface definition for a callback to be invoked when the view tree is about to be drawn.

ViewTreeObserver.IOnScrollChangedListener

Interface definition for a callback to be invoked when something in the view tree has been scrolled.

ViewTreeObserver.IOnTouchModeChangeListener

Interface definition for a callback to be invoked when the touch mode changes.

ViewTreeObserver.IOnWindowAttachListener

Interface definition for a callback to be invoked when the view hierarchy is attached to and detached from its window.

ViewTreeObserver.IOnWindowFocusChangeListener

Interface definition for a callback to be invoked when the view hierarchy's window focus state changes.

ViewTreeObserver.IOnWindowVisibilityChangeListener

Interface definition for a callback to be invoked when the view hierarchy's window visibility changes.

Window.ICallback

API from a Window back to its caller.

Window.IOnFrameMetricsAvailableListener

Callback for clients that want frame timing information for each frame rendered by the Window.

Window.IOnRestrictedCaptionAreaChangedListener

Callback for clients that want to be aware of where caption draws content.

Enums

Name Description
AccessibilityDataSensitive

Specifies whether accessibility-service interactions with a view are allowed based on its sensitivity.

AccessibilityLiveRegion

Defines live-region announcement modes for accessibility services.

ActionModeType

Identifies whether an action mode is primary or floating.

AutofillFlags

Specifies options used when constructing an autofill structure.

AutofillType

Identifies the kind of value a view accepts for autofill.

Axis

Identifies axes reported by motion events.

BufferTransform

Specifies a transform applied to a buffer before it is displayed.

ClassificationMode

Specifies the classification assigned to a touch or press gesture.

CompatSmallCoverScreen

Controls whether an activity opts in to small cover-screen compatibility.

ContentInfoFlags

Specifies flags that control how received content is handled.

ContentInfoSource

Identifies the source from which a view received content.

DecorCaptionShade

Specifies the preferred shade for window decoration captions.

DescendantFocusability

Defines how a view group grants focus to itself and its descendants.

DisplayFlags

Specifies flags that describe a display.

DisplayFrameRateCategory

Specifies a display frame-rate category requested by a window.

DisplayState

Identifies display power states.

DragAction

Identifies actions in a drag-and-drop operation.

DragFlags

Specifies options for a drag-and-drop operation.

DrawingCacheQuality

Defines the quality of a view drawing cache.

Edge

Identifies screen edges intersected by a motion event.

FeedbackConstants

Identifies the haptic-feedback effects supported by a view.

FeedbackFlags

Specifies flags that control haptic-feedback behavior.

FindViewsWith

Specifies the criteria used when searching a view hierarchy for views.

FocusablesFlags

Specifies flags that select focusable views.

FocusSearchDirection

Defines directions used to navigate focus between views.

FrameMetricsId

Identifies a metric reported for a rendered frame.

GravityFlags

Defines how an object is positioned within its container.

HdrType

Identifies a supported high-dynamic-range display format.

ImportantForAccessibility

Defines accessibility importance for a view and its descendants.

ImportantForAutofill

Controls whether a view and its descendants participate in autofill.

InputKeyboardType

Identifies the type of keyboard associated with an input device.

InputSourceType

Identifies sources that can produce input events.

KeyboardType

Identifies the keyboard configuration associated with an input device.

Keycode

Defines Android key codes.

KeyEventActions

Identifies actions reported by key events.

KeyEventFlags

Defines flags that describe key events.

KeyModifierBehavior

Defines how modifier keys behave.

LayerType

Specifies the rendering layer type for a view.

LayoutDirection

Specifies the resolved layout direction for a view.

LayoutInDisplayCutoutMode

Controls how a window can use display-cutout areas.

MeasureSpecMode

Specifies how a view dimension is constrained during measurement.

MemoryType

Identifies memory types used for window surfaces.

MenuAppendFlags

Specifies options for appending menu items.

MenuCategory

Identifies categories used to order menu items.

MenuPerformFlags

Defines options for performing menu actions.

MetaKeyStates

Defines meta-key state bits reported by key events.

MotionEventActions

Identifies actions reported by motion events.

MotionEventButtonState

Specifies pressed buttons in a motion event.

MotionEventFlags

Specifies additional state flags on a motion event.

MotionEventToolType

Identifies tools that produce motion events.

MotionRange

Identifies motion ranges supported by an input device.

OverScrollMode

Defines how a view responds when scrolling beyond its content.

PersistentDrawingCaches

Defines which child drawing caches a view group retains.

PixelCopyResult

Identifies the outcome of a PixelCopy request.

PointerIconType

Identifies a system pointer icon.

RoundedCornerPosition

Identifies the position of a rounded display corner.

ScreenRecordingState

Reports whether the app is visible in a screen recording.

ScreenState

Specifies the screen state reported to a view.

ScrollAxis

Identifies the horizontal and vertical scrolling axes.

ScrollbarPosition

Identifies the side on which a scroll bar is displayed.

ScrollbarStyles

Defines styles for positioning scroll bars.

ScrollCaptureHint

Specifies how a view participates in scroll capture.

ScrollIndicatorPosition

Identifies the location of a scroll indicator.

ShowAsAction

Specifies how a menu item is presented as an action.

SoftInput

Specifies a window's soft-input behavior.

SoundEffects

Identifies standard user-interface sound effects.

StatusBarVisibility

Reports or controls status-bar visibility.

SurfaceChangeFrameRate

Specifies when a surface frame-rate change should take effect.

SurfaceFrameRateCompatibility

Specifies how a surface frame rate is matched to display refresh rates.

SurfaceJankType

Classifies the source of a surface jank event.

SurfaceOrientation

Specifies a surface orientation.

SurfaceType

Specifies the buffer type used by a surface holder.

SurfaceViewLifecycle

Controls when a SurfaceView surface follows its attachment or visibility lifecycle.

SystemUiFlags

Specifies legacy system UI visibility options.

TextAlignment

Defines text-alignment modes for a view.

TextDirection

Defines text-direction heuristics for a view.

TouchableRegion

Defines regions of a window that accept touch input.

ViewContentSensitivity

Specifies the sensitivity of content displayed by a view.

ViewFocusability

Controls whether a view can take input focus.

ViewImportantForContentCapture

Controls whether a view and its descendants participate in content capture.

ViewLayoutMode

Defines layout behavior for a view.

ViewStates

Identifies the visibility states of a view.

WindowFeatures

Defines features that a window can request.

WindowInsetsAnimationDispatchMode

Controls whether an insets animation continues through a view subtree.

WindowInsetsControllerAppearance

Specifies the appearance of system bars controlled by a window.

WindowInsetsControllerBehavior

Specifies how hidden system bars are revealed.

WindowInsetSides

Identifies sides included in a window-insets operation.

WindowManageDisplayFlags

Specifies options for managing a display.

WindowManagerEventType

Identifies changes reported for window-manager layout parameters.

WindowManagerFlags

Defines flags that control window-manager layout behavior.

WindowManagerTypes

Identifies window types managed by the window manager.

WindowProgress

Identifies progress indicators displayed by a window.

WindowRotationAnimation

Defines animations used when rotating a window.

Delegates

Name Description
ReceiveContentHandler

Represents a callback that receives content delivered to a view and returns any unconsumed content.

View.ApplyWindowInsetsHandler

Represents a callback that applies window insets to a view.

Remarks

Java documentation for android.view.