Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/webkit/WebView#nestedclasses) \| [Inherited XML Attrs](https://developer.android.com/reference/android/webkit/WebView#inhattrs) \| [Constants](https://developer.android.com/reference/android/webkit/WebView#constants) \| [Inherited Constants](https://developer.android.com/reference/android/webkit/WebView#inhconstants) \| [Inherited Fields](https://developer.android.com/reference/android/webkit/WebView#inhfields) \| [Ctors](https://developer.android.com/reference/android/webkit/WebView#pubctors) \| [Methods](https://developer.android.com/reference/android/webkit/WebView#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/webkit/WebView#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/webkit/WebView#inhmethods)

# WebView

*** ** * ** ***


`
public


class
WebView
`


`


`

`


`

`


`

`

extends https://developer.android.com/reference/android/widget/AbsoluteLayout


`

`


implements

https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener,

https://developer.android.com/reference/android/view/ViewTreeObserver.OnGlobalFocusChangeListener


`

|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||||
| ↳ | [android.view.View](https://developer.android.com/reference/android/view/View) ||||
|   | ↳ | [android.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup) |||
|   |   | ↳ | [android.widget.AbsoluteLayout](https://developer.android.com/reference/android/widget/AbsoluteLayout) ||
|   |   |   | ↳ | android.webkit.WebView |

<br />

*** ** * ** ***

A View that displays web pages.

### Basic usage

In most cases, we recommend using a standard web browser, like Chrome, to deliver
content to the user. To learn more about web browsers, read the guide on
[invoking a browser with an intent](https://developer.android.com/guide/components/intents-common#Browser).

WebView objects allow you to display web content as part of your activity layout, but
lack some of the features of fully-developed browsers. A WebView is useful when
you need increased control over the UI and advanced configuration options that will allow
you to embed web pages in a specially-designed environment for your app.

To learn more about WebView and alternatives for serving web content, read the
documentation on
[Web-based content](https://developer.android.com/guide/webapps).

## Summary

| ### Nested classes ||
|---|---|
| ` interface` | `https://developer.android.com/reference/android/webkit/WebView.FindListener` Interface to listen for find results. |
| ` class` | `https://developer.android.com/reference/android/webkit/WebView.HitTestResult` |
| ` interface` | `https://developer.android.com/reference/android/webkit/WebView.PictureListener` *This interface was deprecated in API level 12. This interface is now obsolete.* |
| ` class` | `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback` Callback interface supplied to `https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)` for receiving notifications about the visual state. |
| ` class` | `https://developer.android.com/reference/android/webkit/WebView.WebViewTransport` Transportation object for returning WebView across thread boundaries. |

### Inherited XML attributes

From class `https://developer.android.com/reference/android/view/ViewGroup` [`android:addStatesFromChildren`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:addStatesFromChildren) Sets whether this ViewGroup's drawable states also include its children's drawable states. [`android:alwaysDrawnWithCache`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:alwaysDrawnWithCache) Defines whether the ViewGroup should always draw its children using their drawing cache or not. [`android:animateLayoutChanges`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:animateLayoutChanges) Defines whether changes in layout (caused by adding and removing items) should cause a LayoutTransition to run. [`android:animationCache`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:animationCache) Defines whether layout animations should create a drawing cache for their children. [`android:clipChildren`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:clipChildren) Defines whether a child is limited to draw inside of its bounds or not. [`android:clipToPadding`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:clipToPadding) Defines whether the ViewGroup will clip its children and resize (but not clip) any EdgeEffect to its padding, if padding is not zero. [`android:descendantFocusability`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:descendantFocusability) Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus. [`android:layoutAnimation`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:layoutAnimation) Defines the layout animation to use the first time the ViewGroup is laid out. [`android:layoutMode`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:layoutMode) Defines the layout mode of this ViewGroup. [`android:persistentDrawingCache`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:persistentDrawingCache) Defines the persistence of the drawing cache. [`android:splitMotionEvents`](https://developer.android.com/reference/android/view/ViewGroup#attr_android:splitMotionEvents) Sets whether this ViewGroup should split MotionEvents to separate child views during touch event dispatch. From class `https://developer.android.com/reference/android/view/View` [`android:accessibilityHeading`](https://developer.android.com/reference/android/view/View#attr_android:accessibilityHeading) Whether or not this view is a heading for accessibility purposes. [`android:accessibilityLiveRegion`](https://developer.android.com/reference/android/view/View#attr_android:accessibilityLiveRegion) Indicates to accessibility services whether the user should be notified when this view changes. [`android:accessibilityPaneTitle`](https://developer.android.com/reference/android/view/View#attr_android:accessibilityPaneTitle) The title this view should present to accessibility as a pane title. [`android:accessibilityTraversalAfter`](https://developer.android.com/reference/android/view/View#attr_android:accessibilityTraversalAfter) Sets the id of a view that screen readers are requested to visit before this view. [`android:accessibilityTraversalBefore`](https://developer.android.com/reference/android/view/View#attr_android:accessibilityTraversalBefore) Sets the id of a view that screen readers are requested to visit after this view. [`android:allowClickWhenDisabled`](https://developer.android.com/reference/android/view/View#attr_android:allowClickWhenDisabled) Whether or not allow clicks on disabled view. [`android:alpha`](https://developer.android.com/reference/android/view/View#attr_android:alpha) alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque). [`android:autoHandwritingEnabled`](https://developer.android.com/reference/android/view/View#attr_android:autoHandwritingEnabled) Whether or not the auto handwriting initiation is enabled in this View.


[`android:autofillHints`](https://developer.android.com/reference/android/view/View#attr_android:autofillHints) Describes the content of a view so that a autofill service can fill in the appropriate data. [`android:autofilledHighlight`](https://developer.android.com/reference/android/view/View#attr_android:autofilledHighlight) Drawable to be drawn over the view to mark it as autofilled

May be a reference to another resource, in the form
"`@[+][*package*:]*type*/*name*`" or a theme
attribute in the form
"`?[*package*:]*type*/*name*`".


[`android:background`](https://developer.android.com/reference/android/view/View#attr_android:background) A drawable to use as the background. [`android:backgroundTint`](https://developer.android.com/reference/android/view/View#attr_android:backgroundTint) Tint to apply to the background. [`android:backgroundTintMode`](https://developer.android.com/reference/android/view/View#attr_android:backgroundTintMode) Blending mode used to apply the background tint. [`android:clickable`](https://developer.android.com/reference/android/view/View#attr_android:clickable) Defines whether this view reacts to click events. [`android:clipToOutline`](https://developer.android.com/reference/android/view/View#attr_android:clipToOutline) Whether the View's Outline should be used to clip the contents of the View.


[`android:contentDescription`](https://developer.android.com/reference/android/view/View#attr_android:contentDescription) Defines text that briefly describes content of the view. [`android:contextClickable`](https://developer.android.com/reference/android/view/View#attr_android:contextClickable) Defines whether this view reacts to context click events. [`android:defaultFocusHighlightEnabled`](https://developer.android.com/reference/android/view/View#attr_android:defaultFocusHighlightEnabled) Whether this View should use a default focus highlight when it gets focused but doesn't have `https://developer.android.com/reference/android/R.attr#state_focused` defined in its background. [`android:drawingCacheQuality`](https://developer.android.com/reference/android/view/View#attr_android:drawingCacheQuality) Defines the quality of translucent drawing caches. [`android:duplicateParentState`](https://developer.android.com/reference/android/view/View#attr_android:duplicateParentState) When this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself. [`android:elevation`](https://developer.android.com/reference/android/view/View#attr_android:elevation) base z depth of the view. [`android:fadeScrollbars`](https://developer.android.com/reference/android/view/View#attr_android:fadeScrollbars) Defines whether to fade out scrollbars when they are not in use. [`android:fadingEdgeLength`](https://developer.android.com/reference/android/view/View#attr_android:fadingEdgeLength) Defines the length of the fading edges. [`android:filterTouchesWhenObscured`](https://developer.android.com/reference/android/view/View#attr_android:filterTouchesWhenObscured) Specifies whether to filter touches when the view's window is obscured by another visible window. [`android:fitsSystemWindows`](https://developer.android.com/reference/android/view/View#attr_android:fitsSystemWindows) Boolean internal attribute to adjust view layout based on system windows such as the status bar. [`android:focusable`](https://developer.android.com/reference/android/view/View#attr_android:focusable) Controls whether a view can take focus. [`android:focusableInTouchMode`](https://developer.android.com/reference/android/view/View#attr_android:focusableInTouchMode) Boolean that controls whether a view can take focus while in touch mode. [`android:focusedByDefault`](https://developer.android.com/reference/android/view/View#attr_android:focusedByDefault) Whether this view is a default-focus view. [`android:forceHasOverlappingRendering`](https://developer.android.com/reference/android/view/View#attr_android:forceHasOverlappingRendering) Whether this view has elements that may overlap when drawn. [`android:foreground`](https://developer.android.com/reference/android/view/View#attr_android:foreground) Defines the drawable to draw over the content. [`android:foregroundGravity`](https://developer.android.com/reference/android/view/View#attr_android:foregroundGravity) Defines the gravity to apply to the foreground drawable. [`android:foregroundTint`](https://developer.android.com/reference/android/view/View#attr_android:foregroundTint) Tint to apply to the foreground. [`android:foregroundTintMode`](https://developer.android.com/reference/android/view/View#attr_android:foregroundTintMode) Blending mode used to apply the foreground tint. [`android:hapticFeedbackEnabled`](https://developer.android.com/reference/android/view/View#attr_android:hapticFeedbackEnabled) Boolean that controls whether a view should have haptic feedback enabled for events such as long presses. [`android:id`](https://developer.android.com/reference/android/view/View#attr_android:id) Supply an identifier name for this view, to later retrieve it with `https://developer.android.com/reference/android/view/View#findViewById(int)` or `https://developer.android.com/reference/android/app/Activity#findViewById(int)`. [`android:importantForAccessibility`](https://developer.android.com/reference/android/view/View#attr_android:importantForAccessibility) Describes whether or not this view is important for accessibility. [`android:importantForAutofill`](https://developer.android.com/reference/android/view/View#attr_android:importantForAutofill) Hints the Android System whether the view node associated with this View should be included in a view structure used for autofill purposes. [`android:importantForContentCapture`](https://developer.android.com/reference/android/view/View#attr_android:importantForContentCapture) Hints the Android System whether the view node associated with this View should be use for content capture purposes. [`android:isCredential`](https://developer.android.com/reference/android/view/View#attr_android:isCredential) *This is deprecated.
The isCredential attr is no longer needed.*

*May be a boolean value, such as "`true`" or
"`false`".*


[`android:isScrollContainer`](https://developer.android.com/reference/android/view/View#attr_android:isScrollContainer) Set this if the view will serve as a scrolling container, meaning that it can be resized to shrink its overall window so that there will be space for an input method. [`android:keepScreenOn`](https://developer.android.com/reference/android/view/View#attr_android:keepScreenOn) Controls whether the view's window should keep the screen on while visible. [`android:keyboardNavigationCluster`](https://developer.android.com/reference/android/view/View#attr_android:keyboardNavigationCluster) Whether this view is a root of a keyboard navigation cluster. [`android:layerType`](https://developer.android.com/reference/android/view/View#attr_android:layerType) Specifies the type of layer backing this view. [`android:layoutDirection`](https://developer.android.com/reference/android/view/View#attr_android:layoutDirection) Defines the direction of layout drawing. [`android:longClickable`](https://developer.android.com/reference/android/view/View#attr_android:longClickable) Defines whether this view reacts to long click events. [`android:minHeight`](https://developer.android.com/reference/android/view/View#attr_android:minHeight) Defines the minimum height of the view. [`android:minWidth`](https://developer.android.com/reference/android/view/View#attr_android:minWidth) Defines the minimum width of the view. [`android:nextClusterForward`](https://developer.android.com/reference/android/view/View#attr_android:nextClusterForward) Defines the next keyboard navigation cluster. [`android:nextFocusDown`](https://developer.android.com/reference/android/view/View#attr_android:nextFocusDown) Defines the next view to give focus to when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_DOWN` If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a `https://developer.android.com/reference/java/lang/RuntimeException` will result when the reference is accessed. [`android:nextFocusForward`](https://developer.android.com/reference/android/view/View#attr_android:nextFocusForward) Defines the next view to give focus to when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_FORWARD` If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a `https://developer.android.com/reference/java/lang/RuntimeException` will result when the reference is accessed. [`android:nextFocusLeft`](https://developer.android.com/reference/android/view/View#attr_android:nextFocusLeft) Defines the next view to give focus to when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_LEFT`. [`android:nextFocusRight`](https://developer.android.com/reference/android/view/View#attr_android:nextFocusRight) Defines the next view to give focus to when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_RIGHT` If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a `https://developer.android.com/reference/java/lang/RuntimeException` will result when the reference is accessed. [`android:nextFocusUp`](https://developer.android.com/reference/android/view/View#attr_android:nextFocusUp) Defines the next view to give focus to when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_UP` If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a `https://developer.android.com/reference/java/lang/RuntimeException` will result when the reference is accessed. [`android:onClick`](https://developer.android.com/reference/android/view/View#attr_android:onClick) *This is deprecated.
View actually traverses the Context
hierarchy looking for the relevant method, which is fragile (an intermediate
ContextWrapper adding a same-named method would change behavior) and restricts
bytecode optimizers such as R8. Instead, use View.setOnClickListener.*

*May be a string value, using '\\\\;' to escape characters such as
'\\\\n' or '\\\\uxxxx' for a unicode character;*


[`android:outlineAmbientShadowColor`](https://developer.android.com/reference/android/view/View#attr_android:outlineAmbientShadowColor) Sets the color of the ambient shadow that is drawn when the view has a positive Z or elevation value. [`android:outlineSpotShadowColor`](https://developer.android.com/reference/android/view/View#attr_android:outlineSpotShadowColor) Sets the color of the spot shadow that is drawn when the view has a positive Z or elevation value. [`android:padding`](https://developer.android.com/reference/android/view/View#attr_android:padding) Sets the padding, in pixels, of all four edges. [`android:paddingBottom`](https://developer.android.com/reference/android/view/View#attr_android:paddingBottom) Sets the padding, in pixels, of the bottom edge; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingEnd`](https://developer.android.com/reference/android/view/View#attr_android:paddingEnd) Sets the padding, in pixels, of the end edge; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingHorizontal`](https://developer.android.com/reference/android/view/View#attr_android:paddingHorizontal) Sets the padding, in pixels, of the left and right edges; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingLeft`](https://developer.android.com/reference/android/view/View#attr_android:paddingLeft) Sets the padding, in pixels, of the left edge; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingRight`](https://developer.android.com/reference/android/view/View#attr_android:paddingRight) Sets the padding, in pixels, of the right edge; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingStart`](https://developer.android.com/reference/android/view/View#attr_android:paddingStart) Sets the padding, in pixels, of the start edge; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingTop`](https://developer.android.com/reference/android/view/View#attr_android:paddingTop) Sets the padding, in pixels, of the top edge; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:paddingVertical`](https://developer.android.com/reference/android/view/View#attr_android:paddingVertical) Sets the padding, in pixels, of the top and bottom edges; see `https://developer.android.com/reference/android/R.attr#padding`. [`android:preferKeepClear`](https://developer.android.com/reference/android/view/View#attr_android:preferKeepClear) Sets a preference to keep the bounds of this view clear from floating windows
above this view's window.


[`android:requiresFadingEdge`](https://developer.android.com/reference/android/view/View#attr_android:requiresFadingEdge) Defines which edges should be faded on scrolling. [`android:rotation`](https://developer.android.com/reference/android/view/View#attr_android:rotation) rotation of the view, in degrees. [`android:rotationX`](https://developer.android.com/reference/android/view/View#attr_android:rotationX) rotation of the view around the x axis, in degrees. [`android:rotationY`](https://developer.android.com/reference/android/view/View#attr_android:rotationY) rotation of the view around the y axis, in degrees. [`android:saveEnabled`](https://developer.android.com/reference/android/view/View#attr_android:saveEnabled) If false, no state will be saved for this view when it is being frozen. [`android:scaleX`](https://developer.android.com/reference/android/view/View#attr_android:scaleX) scale of the view in the x direction. [`android:scaleY`](https://developer.android.com/reference/android/view/View#attr_android:scaleY) scale of the view in the y direction. [`android:screenReaderFocusable`](https://developer.android.com/reference/android/view/View#attr_android:screenReaderFocusable) Whether this view should be treated as a focusable unit by screen reader accessibility tools. [`android:scrollIndicators`](https://developer.android.com/reference/android/view/View#attr_android:scrollIndicators) Defines which scroll indicators should be displayed when the view can be scrolled. [`android:scrollX`](https://developer.android.com/reference/android/view/View#attr_android:scrollX) The initial horizontal scroll offset, in pixels. [`android:scrollY`](https://developer.android.com/reference/android/view/View#attr_android:scrollY) The initial vertical scroll offset, in pixels. [`android:scrollbarAlwaysDrawHorizontalTrack`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarAlwaysDrawHorizontalTrack) Defines whether the horizontal scrollbar track should always be drawn. [`android:scrollbarAlwaysDrawVerticalTrack`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarAlwaysDrawVerticalTrack) Defines whether the vertical scrollbar track should always be drawn. [`android:scrollbarDefaultDelayBeforeFade`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarDefaultDelayBeforeFade) Defines the delay in milliseconds that a scrollbar waits before fade out. [`android:scrollbarFadeDuration`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarFadeDuration) Defines the delay in milliseconds that a scrollbar takes to fade out. [`android:scrollbarSize`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarSize) Sets the width of vertical scrollbars and height of horizontal scrollbars. [`android:scrollbarStyle`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarStyle) Controls the scrollbar style and position. [`android:scrollbarThumbHorizontal`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarThumbHorizontal) Defines the horizontal scrollbar thumb drawable. [`android:scrollbarThumbVertical`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarThumbVertical) Defines the vertical scrollbar thumb drawable. [`android:scrollbarTrackHorizontal`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarTrackHorizontal) Defines the horizontal scrollbar track drawable. [`android:scrollbarTrackVertical`](https://developer.android.com/reference/android/view/View#attr_android:scrollbarTrackVertical) Defines the vertical scrollbar track drawable. [`android:scrollbars`](https://developer.android.com/reference/android/view/View#attr_android:scrollbars) Defines which scrollbars should be displayed on scrolling or not. [`android:soundEffectsEnabled`](https://developer.android.com/reference/android/view/View#attr_android:soundEffectsEnabled) Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. [`android:stateListAnimator`](https://developer.android.com/reference/android/view/View#attr_android:stateListAnimator) Sets the state-based animator for the View. [`android:supplementalDescription`](https://developer.android.com/reference/android/view/View#attr_android:supplementalDescription) Provides brief supplemental information for the view, such as the purpose of the view when that purpose is not conveyed within its textual representation. [`android:tag`](https://developer.android.com/reference/android/view/View#attr_android:tag) Supply a tag for this view containing a String, to be retrieved later with `https://developer.android.com/reference/android/view/View#getTag()` or searched for with `https://developer.android.com/reference/android/view/View#findViewWithTag(java.lang.Object)`. [`android:textAlignment`](https://developer.android.com/reference/android/view/View#attr_android:textAlignment) Defines the alignment of the text. [`android:textDirection`](https://developer.android.com/reference/android/view/View#attr_android:textDirection) Defines the direction of the text. [`android:theme`](https://developer.android.com/reference/android/view/View#attr_android:theme) Specifies a theme override for a view. [`android:tooltipText`](https://developer.android.com/reference/android/view/View#attr_android:tooltipText) Defines text displayed in a small popup window on hover or long press. [`android:transformPivotX`](https://developer.android.com/reference/android/view/View#attr_android:transformPivotX) x location of the pivot point around which the view will rotate and scale. [`android:transformPivotY`](https://developer.android.com/reference/android/view/View#attr_android:transformPivotY) y location of the pivot point around which the view will rotate and scale. [`android:transitionName`](https://developer.android.com/reference/android/view/View#attr_android:transitionName) Names a View such that it can be identified for Transitions. [`android:translationX`](https://developer.android.com/reference/android/view/View#attr_android:translationX) translation in x of the view. [`android:translationY`](https://developer.android.com/reference/android/view/View#attr_android:translationY) translation in y of the view. [`android:translationZ`](https://developer.android.com/reference/android/view/View#attr_android:translationZ) translation in z of the view. [`android:visibility`](https://developer.android.com/reference/android/view/View#attr_android:visibility) Controls the initial visibility of the view.

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_BOUND` This is the medium binding priority for the WebView renderer process. |
| `int` | `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_IMPORTANT` This is the highest binding priority for the WebView renderer process, and the default value WebView uses to bind to the renderer process. |
| `int` | `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED` This is the lowest binding priority for the WebView renderer process. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/webkit/WebView#SCHEME_GEO` URI scheme for map address. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/webkit/WebView#SCHEME_MAILTO` URI scheme for email address. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/webkit/WebView#SCHEME_TEL` URI scheme for telephone number. |

### Inherited constants

From class `https://developer.android.com/reference/android/view/ViewGroup` `int` `https://developer.android.com/reference/android/view/ViewGroup#CLIP_TO_PADDING_MASK`

We clip to padding when FLAG_CLIP_TO_PADDING and FLAG_PADDING_NOT_NULL
are set at the same time.


`int` `https://developer.android.com/reference/android/view/ViewGroup#FOCUS_AFTER_DESCENDANTS`

This view will get focus only if none of its descendants want it.


`int` `https://developer.android.com/reference/android/view/ViewGroup#FOCUS_BEFORE_DESCENDANTS`

This view will get focus before any of its descendants.


`int` `https://developer.android.com/reference/android/view/ViewGroup#FOCUS_BLOCK_DESCENDANTS`

This view will block any of its descendants from getting focus, even
if they are focusable.


`int` `https://developer.android.com/reference/android/view/ViewGroup#LAYOUT_MODE_CLIP_BOUNDS`

This constant is a `https://developer.android.com/reference/android/view/ViewGroup#setLayoutMode(int)`.


`int` `https://developer.android.com/reference/android/view/ViewGroup#LAYOUT_MODE_OPTICAL_BOUNDS`

This constant is a `https://developer.android.com/reference/android/view/ViewGroup#setLayoutMode(int)`.


`int` `https://developer.android.com/reference/android/view/ViewGroup#PERSISTENT_ALL_CACHES`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`int` `https://developer.android.com/reference/android/view/ViewGroup#PERSISTENT_ANIMATION_CACHE`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`int` `https://developer.android.com/reference/android/view/ViewGroup#PERSISTENT_NO_CACHE`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`int` `https://developer.android.com/reference/android/view/ViewGroup#PERSISTENT_SCROLLING_CACHE`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


From class `https://developer.android.com/reference/android/view/View` `int` `https://developer.android.com/reference/android/view/View#ACCESSIBILITY_DATA_SENSITIVE_AUTO`

Automatically determine whether the view should only allow interactions from
`https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s with the
`https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property
set to true.


`int` `https://developer.android.com/reference/android/view/View#ACCESSIBILITY_DATA_SENSITIVE_NO`

Allow interactions from all `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s,
regardless of their
`https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property.


`int` `https://developer.android.com/reference/android/view/View#ACCESSIBILITY_DATA_SENSITIVE_YES`

Only allow interactions from `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s
with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()`
property set to true.


`int` `https://developer.android.com/reference/android/view/View#ACCESSIBILITY_LIVE_REGION_ASSERTIVE`

Live region mode specifying that accessibility services should immediately notify users of
changes to this view.


`int` `https://developer.android.com/reference/android/view/View#ACCESSIBILITY_LIVE_REGION_NONE`

Live region mode specifying that accessibility services should not
automatically announce changes to this view.


`int` `https://developer.android.com/reference/android/view/View#ACCESSIBILITY_LIVE_REGION_POLITE`

Live region mode specifying that accessibility services should notify users of changes to
this view.


`int` `https://developer.android.com/reference/android/view/View#AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS`

Flag requesting you to add views that are marked as not important for autofill
(see `https://developer.android.com/reference/android/view/View#setImportantForAutofill(int)`) to a `https://developer.android.com/reference/android/view/ViewStructure`.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE`

Hint indicating that this view can be autofilled with a credit card expiration date.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY`

Hint indicating that this view can be autofilled with a credit card expiration day.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH`

Hint indicating that this view can be autofilled with a credit card expiration month.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR`

Hint indicating that this view can be autofilled with a credit card expiration year.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_CREDIT_CARD_NUMBER`

Hint indicating that this view can be autofilled with a credit card number.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE`

Hint indicating that this view can be autofilled with a credit card security code.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_EMAIL_ADDRESS`

Hint indicating that this view can be autofilled with an email address.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_NAME`

Hint indicating that this view can be autofilled with a user's real name.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_PASSWORD`

Hint indicating that this view can be autofilled with a password.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_PHONE`

Hint indicating that this view can be autofilled with a phone number.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_POSTAL_ADDRESS`

Hint indicating that this view can be autofilled with a postal address.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_POSTAL_CODE`

Hint indicating that this view can be autofilled with a postal code.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#AUTOFILL_HINT_USERNAME`

Hint indicating that this view can be autofilled with a username.


`int` `https://developer.android.com/reference/android/view/View#AUTOFILL_TYPE_DATE`

Autofill type for a field that contains a date, which is represented by a long representing
the number of milliseconds since the standard base time known as "the epoch", namely
January 1, 1970, 00:00:00 GMT (see `https://developer.android.com/reference/java/util/Date#getTime()`.


`int` `https://developer.android.com/reference/android/view/View#AUTOFILL_TYPE_LIST`

Autofill type for a selection list field, which is filled by an `int`
representing the element index inside the list (starting at `0`).


`int` `https://developer.android.com/reference/android/view/View#AUTOFILL_TYPE_NONE`

Autofill type for views that cannot be autofilled.


`int` `https://developer.android.com/reference/android/view/View#AUTOFILL_TYPE_TEXT`

Autofill type for a text field, which is filled by a `https://developer.android.com/reference/java/lang/CharSequence`.


`int` `https://developer.android.com/reference/android/view/View#AUTOFILL_TYPE_TOGGLE`

Autofill type for a togglable field, which is filled by a `boolean`.


`int` `https://developer.android.com/reference/android/view/View#CONTENT_SENSITIVITY_AUTO`

Content sensitivity is determined by the framework.


`int` `https://developer.android.com/reference/android/view/View#CONTENT_SENSITIVITY_NOT_SENSITIVE`

The view doesn't display sensitive content.


`int` `https://developer.android.com/reference/android/view/View#CONTENT_SENSITIVITY_SENSITIVE`

The view displays sensitive content.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_ACCESSIBILITY_ACTION`

Flag indicating that the drag was initiated with
`https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_DRAG_START`.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL`

Flag indicating that a drag can cross window boundaries.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION`

When this flag is used with `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_URI_READ` and/or `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_URI_WRITE`, the URI permission grant can be persisted across device
reboots until explicitly revoked with
`https://developer.android.com/reference/android/content/Context#revokeUriPermission(android.net.Uri,%20int)` Context.revokeUriPermission}.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION`

When this flag is used with `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_URI_READ` and/or `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_URI_WRITE`, the URI permission grant applies to any URI that is a prefix
match against the original granted URI.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_SAME_APPLICATION`

Flag indicating that a drag can cross window boundaries (within the same application).


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_URI_READ`

When this flag is used with `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL`, the drag recipient will be able to
request read access to the content URI(s) contained in the `https://developer.android.com/reference/android/content/ClipData` object.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL_URI_WRITE`

When this flag is used with `https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL`, the drag recipient will be able to
request write access to the content URI(s) contained in the `https://developer.android.com/reference/android/content/ClipData` object.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START`

Flag indicating that this drag will result in the caller activity's task to be hidden for the
duration of the drag, which means that the source activity will not receive drag events for
the current drag gesture.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_OPAQUE`

Flag indicating that the drag shadow will be opaque.


`int` `https://developer.android.com/reference/android/view/View#DRAG_FLAG_START_INTENT_SENDER_ON_UNHANDLED_DRAG`

Flag indicating that an unhandled drag should be delegated to the system to be started if no
visible window wishes to handle the drop.


`int` `https://developer.android.com/reference/android/view/View#DRAWING_CACHE_QUALITY_AUTO`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`int` `https://developer.android.com/reference/android/view/View#DRAWING_CACHE_QUALITY_HIGH`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`int` `https://developer.android.com/reference/android/view/View#DRAWING_CACHE_QUALITY_LOW`

*This constant was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`int` `https://developer.android.com/reference/android/view/View#FIND_VIEWS_WITH_CONTENT_DESCRIPTION`

Find find views that contain the specified content description.


`int` `https://developer.android.com/reference/android/view/View#FIND_VIEWS_WITH_TEXT`

Find views that render the specified text.


`int` `https://developer.android.com/reference/android/view/View#FOCUSABLE`

This view wants keystrokes.


`int` `https://developer.android.com/reference/android/view/View#FOCUSABLES_ALL`

View flag indicating whether `https://developer.android.com/reference/android/view/View#addFocusables(java.util.ArrayList<android.view.View>,%20int,%20int)`
should add all focusable Views regardless if they are focusable in touch mode.


`int` `https://developer.android.com/reference/android/view/View#FOCUSABLES_TOUCH_MODE`

View flag indicating whether `https://developer.android.com/reference/android/view/View#addFocusables(java.util.ArrayList<android.view.View>,%20int,%20int)`
should add only Views focusable in touch mode.


`int` `https://developer.android.com/reference/android/view/View#FOCUSABLE_AUTO`

This view determines focusability automatically.


`int` `https://developer.android.com/reference/android/view/View#FOCUS_BACKWARD`

Use with `https://developer.android.com/reference/android/view/View#focusSearch(int)`.


`int` `https://developer.android.com/reference/android/view/View#FOCUS_DOWN`

Use with `https://developer.android.com/reference/android/view/View#focusSearch(int)`.


`int` `https://developer.android.com/reference/android/view/View#FOCUS_FORWARD`

Use with `https://developer.android.com/reference/android/view/View#focusSearch(int)`.


`int` `https://developer.android.com/reference/android/view/View#FOCUS_LEFT`

Use with `https://developer.android.com/reference/android/view/View#focusSearch(int)`.


`int` `https://developer.android.com/reference/android/view/View#FOCUS_RIGHT`

Use with `https://developer.android.com/reference/android/view/View#focusSearch(int)`.


`int` `https://developer.android.com/reference/android/view/View#FOCUS_UP`

Use with `https://developer.android.com/reference/android/view/View#focusSearch(int)`.


`int` `https://developer.android.com/reference/android/view/View#GONE`

This view is invisible, and it doesn't take any space for layout
purposes.


`int` `https://developer.android.com/reference/android/view/View#HAPTIC_FEEDBACK_ENABLED`

View flag indicating whether this view should have haptic feedback
enabled for events such as long presses.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_ACCESSIBILITY_AUTO`

Automatically determine whether a view is important for accessibility.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_ACCESSIBILITY_NO`

The view is not important for accessibility.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS`

The view is not important for accessibility, nor are any of its
descendant views.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_ACCESSIBILITY_YES`

The view is important for accessibility.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_AUTO`

Automatically determine whether a view is important for autofill.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_NO`

The view is not important for autofill, but its children (if any) will be traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS`

The view is not important for autofill, and its children (if any) will not be traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_YES`

The view is important for autofill, and its children (if any) will be traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS`

The view is important for autofill, but its children (if any) will not be traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO`

Automatically determine whether a view is important for content capture.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_CONTENT_CAPTURE_NO`

The view is not important for content capture, but its children (if any) will be traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS`

The view is not important for content capture, and its children (if any) will not be
traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_CONTENT_CAPTURE_YES`

The view is important for content capture, and its children (if any) will be traversed.


`int` `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS`

The view is important for content capture, but its children (if any) will not be traversed.


`int` `https://developer.android.com/reference/android/view/View#INVISIBLE`

This view is invisible, but it still takes up space for layout purposes.


`int` `https://developer.android.com/reference/android/view/View#KEEP_SCREEN_ON`

View flag indicating that the screen should remain on while the
window containing this view is visible to the user.


`int` `https://developer.android.com/reference/android/view/View#LAYER_TYPE_HARDWARE`

<br />

Indicates that the view has a hardware layer.


`int` `https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE`

Indicates that the view does not have a layer.


`int` `https://developer.android.com/reference/android/view/View#LAYER_TYPE_SOFTWARE`

<br />

Indicates that the view has a software layer.


`int` `https://developer.android.com/reference/android/view/View#LAYOUT_DIRECTION_INHERIT`

Horizontal layout direction of this view is inherited from its parent.


`int` `https://developer.android.com/reference/android/view/View#LAYOUT_DIRECTION_LOCALE`

Horizontal layout direction of this view is from deduced from the default language
script for the locale.


`int` `https://developer.android.com/reference/android/view/View#LAYOUT_DIRECTION_LTR`

Horizontal layout direction of this view is from Left to Right.


`int` `https://developer.android.com/reference/android/view/View#LAYOUT_DIRECTION_RTL`

Horizontal layout direction of this view is from Right to Left.


`int` `https://developer.android.com/reference/android/view/View#MEASURED_HEIGHT_STATE_SHIFT`

Bit shift of `https://developer.android.com/reference/android/view/View#MEASURED_STATE_MASK` to get to the height bits
for functions that combine both width and height into a single int,
such as `https://developer.android.com/reference/android/view/View#getMeasuredState()` and the childState argument of
`https://developer.android.com/reference/android/view/View#resolveSizeAndState(int,%20int,%20int)`.


`int` `https://developer.android.com/reference/android/view/View#MEASURED_SIZE_MASK`

Bits of `https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()` and
`https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()` that provide the actual measured size.


`int` `https://developer.android.com/reference/android/view/View#MEASURED_STATE_MASK`

Bits of `https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()` and
`https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()` that provide the additional state bits.


`int` `https://developer.android.com/reference/android/view/View#MEASURED_STATE_TOO_SMALL`

Bit of `https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()` and
`https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()` that indicates the measured size
is smaller that the space the view would like to have.


`int` `https://developer.android.com/reference/android/view/View#NOT_FOCUSABLE`

This view does not want keystrokes.


`int` `https://developer.android.com/reference/android/view/View#NO_ID`

Used to mark a View that has no ID.


`int` `https://developer.android.com/reference/android/view/View#OVER_SCROLL_ALWAYS`

Always allow a user to over-scroll this view, provided it is a
view that can scroll.


`int` `https://developer.android.com/reference/android/view/View#OVER_SCROLL_IF_CONTENT_SCROLLS`

Allow a user to over-scroll this view only if the content is large
enough to meaningfully scroll, provided it is a view that can scroll.


`int` `https://developer.android.com/reference/android/view/View#OVER_SCROLL_NEVER`

Never allow a user to over-scroll this view.


`int` `https://developer.android.com/reference/android/view/View#POINTER_CAPTURE_MODE_ABSOLUTE`

A pointer capture mode in which touchpads report absolute finger locations.


`int` `https://developer.android.com/reference/android/view/View#POINTER_CAPTURE_MODE_RELATIVE`

A pointer capture mode in which touchpad gestures are recognized and reported like mouse
movements.


`int` `https://developer.android.com/reference/android/view/View#POINTER_CAPTURE_MODE_UNCAPTURED`

A "pointer capture mode" in which the pointer is not captured.


`int` `https://developer.android.com/reference/android/view/View#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS`

Represents that the user interaction that is requesting a rectangle on screen is
doing so because the View has input/keyboard focus.


`int` `https://developer.android.com/reference/android/view/View#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_SCROLL_ONLY`

Represents that the user interaction that is requesting a rectangle on screen is doing so
only to scroll the View on screen, and the rectangle is not associated with a text cursor or
keyboard focus.


`int` `https://developer.android.com/reference/android/view/View#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_TEXT_CURSOR`

Represents that the user interaction that is requesting a rectangle on screen is
doing so because the View contains a text cursor (caret).


`int` `https://developer.android.com/reference/android/view/View#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_UNDEFINED`

Represents that the user interaction that is requesting a rectangle on screen is
doing so via the original `https://developer.android.com/reference/android/view/View#requestRectangleOnScreen(android.graphics.Rect)` or
`https://developer.android.com/reference/android/view/View#requestRectangleOnScreen(android.graphics.Rect,%20boolean)` APIs that do not define the source.


`float` `https://developer.android.com/reference/android/view/View#REQUESTED_FRAME_RATE_CATEGORY_DEFAULT`


`float` `https://developer.android.com/reference/android/view/View#REQUESTED_FRAME_RATE_CATEGORY_HIGH`


`float` `https://developer.android.com/reference/android/view/View#REQUESTED_FRAME_RATE_CATEGORY_LOW`


`float` `https://developer.android.com/reference/android/view/View#REQUESTED_FRAME_RATE_CATEGORY_NORMAL`


`float` `https://developer.android.com/reference/android/view/View#REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE`


`int` `https://developer.android.com/reference/android/view/View#SCREEN_STATE_OFF`

Indicates that the screen has changed state and is now off.


`int` `https://developer.android.com/reference/android/view/View#SCREEN_STATE_ON`

Indicates that the screen has changed state and is now on.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBARS_INSIDE_INSET`

The scrollbar style to display the scrollbars inside the padded area,
increasing the padding of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBARS_INSIDE_OVERLAY`

The scrollbar style to display the scrollbars inside the content area,
without increasing the padding.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBARS_OUTSIDE_INSET`

The scrollbar style to display the scrollbars at the edge of the view,
increasing the padding of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBARS_OUTSIDE_OVERLAY`

The scrollbar style to display the scrollbars at the edge of the view,
without increasing the padding.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBAR_POSITION_DEFAULT`

Position the scroll bar at the default position as determined by the system.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBAR_POSITION_LEFT`

Position the scroll bar along the left edge.


`int` `https://developer.android.com/reference/android/view/View#SCROLLBAR_POSITION_RIGHT`

Position the scroll bar along the right edge.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_AXIS_HORIZONTAL`

Indicates scrolling along the horizontal axis.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_AXIS_NONE`

Indicates no axis of view scrolling.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_AXIS_VERTICAL`

Indicates scrolling along the vertical axis.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_CAPTURE_HINT_AUTO`

The content of this view will be considered for scroll capture if scrolling is possible.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_CAPTURE_HINT_EXCLUDE`

Explicitly exclude this view as a potential scroll capture target.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS`

Explicitly exclude all children of this view as potential scroll capture targets.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_CAPTURE_HINT_INCLUDE`

Explicitly include this view as a potential scroll capture target.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_INDICATOR_BOTTOM`

Scroll indicator direction for the bottom edge of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_INDICATOR_END`

Scroll indicator direction for the ending edge of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_INDICATOR_LEFT`

Scroll indicator direction for the left edge of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_INDICATOR_RIGHT`

Scroll indicator direction for the right edge of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_INDICATOR_START`

Scroll indicator direction for the starting edge of the view.


`int` `https://developer.android.com/reference/android/view/View#SCROLL_INDICATOR_TOP`

Scroll indicator direction for the top edge of the view.


`int` `https://developer.android.com/reference/android/view/View#SOUND_EFFECTS_ENABLED`

View flag indicating whether this view should have sound effects enabled
for events such as clicking and touching.


`int` `https://developer.android.com/reference/android/view/View#STATUS_BAR_HIDDEN`

*This constant was deprecated
in API level 15.
Use `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LOW_PROFILE` instead.*


`int` `https://developer.android.com/reference/android/view/View#STATUS_BAR_VISIBLE`

*This constant was deprecated
in API level 15.
Use `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_VISIBLE` instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_FULLSCREEN`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsetsController#hide(int)` with `https://developer.android.com/reference/android/view/WindowInsets.Type#statusBars()`
instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_HIDE_NAVIGATION`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsetsController#hide(int)` with `https://developer.android.com/reference/android/view/WindowInsets.Type#navigationBars()`
instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_IMMERSIVE`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsetsController#BEHAVIOR_DEFAULT` instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsetsController#BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE` instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN`

*This constant was deprecated
in API level 30.
For floating windows, use `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#setFitInsetsTypes(int)` with
`https://developer.android.com/reference/android/view/WindowInsets.Type#statusBars()` ()}. For non-floating windows that fill the screen, call
`https://developer.android.com/reference/android/view/Window#setDecorFitsSystemWindows(boolean)` with `false`.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION`

*This constant was deprecated
in API level 30.
For floating windows, use `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#setFitInsetsTypes(int)` with
`https://developer.android.com/reference/android/view/WindowInsets.Type#navigationBars()`. For non-floating windows that fill the screen, call
`https://developer.android.com/reference/android/view/Window#setDecorFitsSystemWindows(boolean)` with `false`.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LAYOUT_STABLE`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsets#getInsetsIgnoringVisibility(int)` instead to retrieve
insets that don't change when system bars change visibility state.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsetsController#APPEARANCE_LIGHT_NAVIGATION_BARS` instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LIGHT_STATUS_BAR`

*This constant was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsetsController#APPEARANCE_LIGHT_STATUS_BARS` instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LOW_PROFILE`

*This constant was deprecated
in API level 30.
Low profile mode is deprecated. Hide the system bars instead if the application
needs to be in a unobtrusive mode. Use `https://developer.android.com/reference/android/view/WindowInsetsController#hide(int)` with
`https://developer.android.com/reference/android/view/WindowInsets.Type#systemBars()`.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_VISIBLE`

*This constant was deprecated
in API level 30.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`int` `https://developer.android.com/reference/android/view/View#SYSTEM_UI_LAYOUT_FLAGS`

*This constant was deprecated
in API level 30.
System UI layout flags are deprecated.*


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_CENTER`

Center the paragraph, e.g. ALIGN_CENTER.


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_GRAVITY`

Default for the root view.


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_INHERIT`

Default text alignment.


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_TEXT_END`

Align to the end of the paragraph, e.g. ALIGN_OPPOSITE.


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_TEXT_START`

Align to the start of the paragraph, e.g. ALIGN_NORMAL.


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_VIEW_END`

Align to the end of the view, which is ALIGN_RIGHT if the view's resolved
layoutDirection is LTR, and ALIGN_LEFT otherwise.


`int` `https://developer.android.com/reference/android/view/View#TEXT_ALIGNMENT_VIEW_START`

Align to the start of the view, which is ALIGN_LEFT if the view's resolved
layoutDirection is LTR, and ALIGN_RIGHT otherwise.


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_ANY_RTL`

Text direction is using "any-RTL" algorithm.


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_FIRST_STRONG`

Text direction is using "first strong algorithm".


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_FIRST_STRONG_LTR`

Text direction is using "first strong algorithm".


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_FIRST_STRONG_RTL`

Text direction is using "first strong algorithm".


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_INHERIT`

Text direction is inherited through `https://developer.android.com/reference/android/view/ViewGroup`


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_LOCALE`

Text direction is coming from the system Locale.


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_LTR`

Text direction is forced to LTR.


`int` `https://developer.android.com/reference/android/view/View#TEXT_DIRECTION_RTL`

Text direction is forced to RTL.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/view/View#VIEW_LOG_TAG`

The logging tag used by this class with android.util.Log.


`int` `https://developer.android.com/reference/android/view/View#VISIBLE`

This view is visible.


### Inherited fields

From class `https://developer.android.com/reference/android/view/View` `
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#ALPHA`

A Property wrapper around the `alpha` functionality handled by the
`https://developer.android.com/reference/android/view/View#setAlpha(float)` and `https://developer.android.com/reference/android/view/View#getAlpha()` methods.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#EMPTY_STATE_SET`

Indicates the view has no states set.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_FOCUSED_SELECTED_STATE_SET`

Indicates the view is enabled, focused and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is enabled, focused, selected and its window
has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_FOCUSED_STATE_SET`

Indicates the view is enabled and has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is enabled, focused and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_SELECTED_STATE_SET`

Indicates the view is enabled and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is enabled, selected and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_STATE_SET`

Indicates the view is enabled.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#ENABLED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is enabled and that its window has focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#FOCUSED_SELECTED_STATE_SET`

Indicates the view is focused and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is focused, selected and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#FOCUSED_STATE_SET`

Indicates the view is focused.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#FOCUSED_WINDOW_FOCUSED_STATE_SET`

Indicates the view has the focus and that its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET`

Indicates the view is pressed, enabled, focused and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, enabled, focused, selected and its window
has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_FOCUSED_STATE_SET`

Indicates the view is pressed, enabled and focused.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, enabled, focused and its window has the
focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_SELECTED_STATE_SET`

Indicates the view is pressed, enabled and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, enabled, selected and its window has the
focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_STATE_SET`

Indicates the view is pressed and enabled.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, enabled and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_FOCUSED_SELECTED_STATE_SET`

Indicates the view is pressed, focused and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, focused, selected and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_FOCUSED_STATE_SET`

Indicates the view is pressed and focused.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, focused and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_SELECTED_STATE_SET`

Indicates the view is pressed and selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed, selected and its window has the focus.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_STATE_SET`

Indicates the view is pressed.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#PRESSED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is pressed and its window has the focus.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#ROTATION`

A Property wrapper around the `rotation` functionality handled by the
`https://developer.android.com/reference/android/view/View#setRotation(float)` and `https://developer.android.com/reference/android/view/View#getRotation()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#ROTATION_X`

A Property wrapper around the `rotationX` functionality handled by the
`https://developer.android.com/reference/android/view/View#setRotationX(float)` and `https://developer.android.com/reference/android/view/View#getRotationX()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#ROTATION_Y`

A Property wrapper around the `rotationY` functionality handled by the
`https://developer.android.com/reference/android/view/View#setRotationY(float)` and `https://developer.android.com/reference/android/view/View#getRotationY()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#SCALE_X`

A Property wrapper around the `scaleX` functionality handled by the
`https://developer.android.com/reference/android/view/View#setScaleX(float)` and `https://developer.android.com/reference/android/view/View#getScaleX()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#SCALE_Y`

A Property wrapper around the `scaleY` functionality handled by the
`https://developer.android.com/reference/android/view/View#setScaleY(float)` and `https://developer.android.com/reference/android/view/View#getScaleY()` methods.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#SELECTED_STATE_SET`

Indicates the view is selected.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#SELECTED_WINDOW_FOCUSED_STATE_SET`

Indicates the view is selected and that its window has the focus.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#TRANSLATION_X`

A Property wrapper around the `translationX` functionality handled by the
`https://developer.android.com/reference/android/view/View#setTranslationX(float)` and `https://developer.android.com/reference/android/view/View#getTranslationX()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#TRANSLATION_Y`

A Property wrapper around the `translationY` functionality handled by the
`https://developer.android.com/reference/android/view/View#setTranslationY(float)` and `https://developer.android.com/reference/android/view/View#getTranslationY()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#TRANSLATION_Z`

A Property wrapper around the `translationZ` functionality handled by the
`https://developer.android.com/reference/android/view/View#setTranslationZ(float)` and `https://developer.android.com/reference/android/view/View#getTranslationZ()` methods.


`
protected
static
final
int[]` `https://developer.android.com/reference/android/view/View#WINDOW_FOCUSED_STATE_SET`

Indicates the view's window has focus.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#X`

A Property wrapper around the `x` functionality handled by the
`https://developer.android.com/reference/android/view/View#setX(float)` and `https://developer.android.com/reference/android/view/View#getX()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#Y`

A Property wrapper around the `y` functionality handled by the
`https://developer.android.com/reference/android/view/View#setY(float)` and `https://developer.android.com/reference/android/view/View#getY()` methods.


`
public
static
final
https://developer.android.com/reference/android/util/Property<https://developer.android.com/reference/android/view/View, https://developer.android.com/reference/java/lang/Float>` `https://developer.android.com/reference/android/view/View#Z`

A Property wrapper around the `z` functionality handled by the
`https://developer.android.com/reference/android/view/View#setZ(float)` and `https://developer.android.com/reference/android/view/View#getZ()` methods.


| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/webkit/WebView#WebView(android.content.Context)(https://developer.android.com/reference/android/content/Context context) ` Constructs a new WebView with an Activity Context object. |
| ` https://developer.android.com/reference/android/webkit/WebView#WebView(android.content.Context,%20android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/util/AttributeSet attrs) ` Constructs a new WebView with layout parameters. |
| ` https://developer.android.com/reference/android/webkit/WebView#WebView(android.content.Context,%20android.util.AttributeSet,%20int)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/util/AttributeSet attrs, int defStyleAttr) ` Constructs a new WebView with layout parameters and a default style. |
| ` https://developer.android.com/reference/android/webkit/WebView#WebView(android.content.Context,%20android.util.AttributeSet,%20int,%20boolean)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/util/AttributeSet attrs, int defStyleAttr, boolean privateBrowsing) ` *This constructor is deprecated. Private browsing is no longer supported directly via WebView and will be removed in a future release. Prefer using `https://developer.android.com/reference/android/webkit/WebSettings`, `https://developer.android.com/reference/android/webkit/WebViewDatabase`, `https://developer.android.com/reference/android/webkit/CookieManager` and `https://developer.android.com/reference/android/webkit/WebStorage` for fine-grained control of privacy data.* |
| ` https://developer.android.com/reference/android/webkit/WebView#WebView(android.content.Context,%20android.util.AttributeSet,%20int,%20int)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/util/AttributeSet attrs, int defStyleAttr, int defStyleRes) ` Constructs a new WebView with layout parameters and a default style. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String)(https://developer.android.com/reference/java/lang/Object object, https://developer.android.com/reference/java/lang/String name) ` Injects the supplied Java object into this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#autofill(android.util.SparseArray<android.view.autofill.AutofillValue>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/view/autofill/AutofillValue> values) ` Automatically fills the content of the virtual children within this view. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#canGoBack()() ` Gets whether this WebView has a back history item. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#canGoBackOrForward(int)(int steps) ` Gets whether the page can go back or forward the given number of steps. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#canGoForward()() ` Gets whether this WebView has a forward history item. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#canZoomIn()() ` *This method was deprecated in API level 17. This method is prone to inaccuracy due to race conditions between the web rendering and UI threads; prefer `https://developer.android.com/reference/android/webkit/WebViewClient#onScaleChanged(android.webkit.WebView,%20float,%20float)`.* |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#canZoomOut()() ` *This method was deprecated in API level 17. This method is prone to inaccuracy due to race conditions between the web rendering and UI threads; prefer `https://developer.android.com/reference/android/webkit/WebViewClient#onScaleChanged(android.webkit.WebView,%20float,%20float)`.* |
| ` https://developer.android.com/reference/android/graphics/Picture` | ` https://developer.android.com/reference/android/webkit/WebView#capturePicture()() ` *This method was deprecated in API level 19. Use `https://developer.android.com/reference/android/webkit/WebView#onDraw(android.graphics.Canvas)` to obtain a bitmap snapshot of the WebView, or `https://developer.android.com/reference/android/webkit/WebView#saveWebArchive(java.lang.String)` to save the content to a file.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#clearCache(boolean)(boolean includeDiskFiles) ` Clears the resource cache. |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#clearClientCertPreferences(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable onCleared) ` Clears the client certificate preferences stored in response to proceeding/cancelling client cert requests. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#clearFormData()() ` Removes the autocomplete popup from the currently focused form field, if present. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#clearHistory()() ` Tells this WebView to clear its internal back/forward list. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#clearMatches()() ` Clears the highlighting surrounding text matches created by `https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)`. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#clearSslPreferences()() ` Clears the SSL preferences table stored in response to proceeding with SSL certificate errors. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#clearView()() ` *This method was deprecated in API level 18. Use WebView.loadUrl("about:blank") to reliably reset the view state and release page resources (including any running JavaScript).* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#computeScroll()() ` Called by a parent to request that a child update its values for mScrollX and mScrollY if necessary. |
| ` https://developer.android.com/reference/android/webkit/WebBackForwardList` | ` https://developer.android.com/reference/android/webkit/WebView#copyBackForwardList()() ` Gets the WebBackForwardList for this WebView. |
| ` https://developer.android.com/reference/android/print/PrintDocumentAdapter` | ` https://developer.android.com/reference/android/webkit/WebView#createPrintDocumentAdapter(java.lang.String)(https://developer.android.com/reference/java/lang/String documentName) ` Creates a PrintDocumentAdapter that provides the content of this WebView for printing. |
| ` https://developer.android.com/reference/android/print/PrintDocumentAdapter` | ` https://developer.android.com/reference/android/webkit/WebView#createPrintDocumentAdapter()() ` *This method was deprecated in API level 21. Use `https://developer.android.com/reference/android/webkit/WebView#createPrintDocumentAdapter(java.lang.String)` which requires user to provide a print document name.* |
| ` https://developer.android.com/reference/android/webkit/WebMessagePort` | ` https://developer.android.com/reference/android/webkit/WebView#createWebMessageChannel()() ` Creates a message channel to communicate with JS and returns the message ports that represent the endpoints of this message channel. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#destroy()() ` Destroys the internal state of this WebView. |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#disableWebView()() ` Indicate that the current process does not intend to use WebView, and that an exception should be thrown if a WebView is created or any other methods in the android.webkit package are used. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#dispatchCreateViewTranslationRequest(java.util.Map<android.view.autofill.AutofillId,long[]>,%20int[],%20android.view.translation.TranslationCapability,%20java.util.List<android.view.translation.ViewTranslationRequest>)(https://developer.android.com/reference/java/util/Map<https://developer.android.com/reference/android/view/autofill/AutofillId, long[]> viewIds, int[] supportedFormats, https://developer.android.com/reference/android/view/translation/TranslationCapability capability, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest> requests) ` Dispatch to collect the `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s for translation purpose by traversing the hierarchy when the app requests ui translation. The implementation calls `https://developer.android.com/reference/android/view/ViewGroup#dispatchCreateViewTranslationRequest(java.util.Map<android.view.autofill.AutofillId,long[]>,%20int[],%20android.view.translation.TranslationCapability,%20java.util.List<android.view.translation.ViewTranslationRequest>)` for all the child views. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#dispatchKeyEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event) ` Dispatch a key event to the next view on the focus path. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#documentHasImages(android.os.Message)(https://developer.android.com/reference/android/os/Message response) ` Queries the document to see if it contains any image references. |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#enableSlowWholeDocumentDraw()() ` For apps targeting the L release, WebView has a new default behavior that reduces memory footprint and increases performance by intelligently choosing the portion of the HTML document that needs to be drawn. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#evaluateJavascript(java.lang.String,%20android.webkit.ValueCallback<java.lang.String>)(https://developer.android.com/reference/java/lang/String script, https://developer.android.com/reference/android/webkit/ValueCallback<https://developer.android.com/reference/java/lang/String> resultCallback) ` Asynchronously evaluates JavaScript in the context of the currently displayed page. |
| ` static https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebView#findAddress(java.lang.String)(https://developer.android.com/reference/java/lang/String addr) ` *This method was deprecated in API level 28. This method is superseded by `https://developer.android.com/reference/android/view/textclassifier/TextClassifier#generateLinks(android.view.textclassifier.TextLinks.Request)`. Avoid using this method even when targeting API levels where no alternative is available.* |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#findAll(java.lang.String)(https://developer.android.com/reference/java/lang/String find) ` *This method was deprecated in API level 16. `https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)` is preferred.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)(https://developer.android.com/reference/java/lang/String find) ` Finds all instances of find on the page and highlights them, asynchronously. |
| ` https://developer.android.com/reference/android/view/View` | ` https://developer.android.com/reference/android/webkit/WebView#findFocus()() ` Find the view in the hierarchy rooted at this view that currently has focus. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#findNext(boolean)(boolean forward) ` Highlights and scrolls to the next match found by `https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)`, wrapping around page boundaries as necessary. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#flingScroll(int,%20int)(int vx, int vy) ` This method must be called on the thread that originally created this UI element. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#freeMemory()() ` *This method was deprecated in API level 19. Memory caches are automatically dropped when no longer needed, and in response to system memory pressure.* |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/webkit/WebView#getAccessibilityClassName()() ` Return the class name of this object to be used for accessibility purposes. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider` | ` https://developer.android.com/reference/android/webkit/WebView#getAccessibilityNodeProvider()() ` Gets the provider for managing a virtual view hierarchy rooted at this View and reported to `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s that explore the window content. |
| ` https://developer.android.com/reference/android/net/http/SslCertificate` | ` https://developer.android.com/reference/android/webkit/WebView#getCertificate()() ` Gets the SSL certificate for the main top-level page or `null` if there is no certificate (the site is not secure). |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#getContentHeight()() ` Gets the height of the HTML content. |
| ` static https://developer.android.com/reference/android/content/pm/PackageInfo` | ` https://developer.android.com/reference/android/webkit/WebView#getCurrentWebViewPackage()() ` If WebView has already been loaded into the current process this method will return the package that was used to load it. |
| ` https://developer.android.com/reference/android/graphics/Bitmap` | ` https://developer.android.com/reference/android/webkit/WebView#getFavicon()() ` Gets the favicon for the current page. |
| ` https://developer.android.com/reference/android/os/Handler` | ` https://developer.android.com/reference/android/webkit/WebView#getHandler()() ` |
| ` https://developer.android.com/reference/android/webkit/WebView.HitTestResult` | ` https://developer.android.com/reference/android/webkit/WebView#getHitTestResult()() ` Gets a HitTestResult based on the current cursor node. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebView#getHttpAuthUsernamePassword(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String host, https://developer.android.com/reference/java/lang/String realm) ` *This method was deprecated in API level 26. Use `https://developer.android.com/reference/android/webkit/WebViewDatabase#getHttpAuthUsernamePassword(java.lang.String,%20java.lang.String)` instead* |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebView#getOriginalUrl()() ` Gets the original URL for the current page. |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#getProgress()() ` Gets the progress for the current page. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#getRendererPriorityWaivedWhenNotVisible()() ` Return whether this WebView requests a priority of `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED` when not visible. |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#getRendererRequestedPriority()() ` Get the requested renderer priority for this WebView. |
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/webkit/WebView#getSafeBrowsingPrivacyPolicyUrl()() ` Returns a URL pointing to the privacy policy for Safe Browsing reporting. |
| ` float` | ` https://developer.android.com/reference/android/webkit/WebView#getScale()() ` *This method was deprecated in API level 17. This method is prone to inaccuracy due to race conditions between the web rendering and UI threads; prefer `https://developer.android.com/reference/android/webkit/WebViewClient#onScaleChanged(android.webkit.WebView,%20float,%20float)`.* |
| ` https://developer.android.com/reference/android/webkit/WebSettings` | ` https://developer.android.com/reference/android/webkit/WebView#getSettings()() ` Gets the WebSettings object used to control the settings for this WebView. |
| ` https://developer.android.com/reference/android/view/textclassifier/TextClassifier` | ` https://developer.android.com/reference/android/webkit/WebView#getTextClassifier()() ` Returns the `https://developer.android.com/reference/android/view/textclassifier/TextClassifier` used by this WebView. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebView#getTitle()() ` Gets the title for the current page. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/webkit/WebView#getUrl()() ` Gets the URL for the current page. |
| ` https://developer.android.com/reference/android/webkit/WebChromeClient` | ` https://developer.android.com/reference/android/webkit/WebView#getWebChromeClient()() ` Gets the chrome handler. |
| ` static https://developer.android.com/reference/java/lang/ClassLoader` | ` https://developer.android.com/reference/android/webkit/WebView#getWebViewClassLoader()() ` Returns the `https://developer.android.com/reference/java/lang/ClassLoader` used to load internal WebView classes. |
| ` https://developer.android.com/reference/android/webkit/WebViewClient` | ` https://developer.android.com/reference/android/webkit/WebView#getWebViewClient()() ` Gets the WebViewClient. |
| ` https://developer.android.com/reference/android/os/Looper` | ` https://developer.android.com/reference/android/webkit/WebView#getWebViewLooper()() ` Returns the `https://developer.android.com/reference/android/os/Looper` corresponding to the thread on which WebView calls must be made. |
| ` https://developer.android.com/reference/android/webkit/WebViewRenderProcess` | ` https://developer.android.com/reference/android/webkit/WebView#getWebViewRenderProcess()() ` Gets a handle to the WebView renderer process associated with this WebView. |
| ` https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` | ` https://developer.android.com/reference/android/webkit/WebView#getWebViewRenderProcessClient()() ` Gets the renderer client object associated with this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#goBack()() ` Goes back in the history of this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#goBackOrForward(int)(int steps) ` Goes to the history item that is the number of steps away from the current item. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#goForward()() ` Goes forward in the history of this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#invokeZoomPicker()() ` Invokes the graphical zoom picker widget for this WebView. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#isPrivateBrowsingEnabled()() ` Gets whether private browsing is enabled in this WebView. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#isVisibleToUserForAutofill(int)(int virtualId) ` Computes whether this virtual autofill view is visible to the user. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#loadData(java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String data, https://developer.android.com/reference/java/lang/String mimeType, https://developer.android.com/reference/java/lang/String encoding) ` Loads the given data into this WebView using a 'data' scheme URL. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#loadDataWithBaseURL(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String baseUrl, https://developer.android.com/reference/java/lang/String data, https://developer.android.com/reference/java/lang/String mimeType, https://developer.android.com/reference/java/lang/String encoding, https://developer.android.com/reference/java/lang/String historyUrl) ` Loads the given data into this WebView, using baseUrl as the base URL for the content. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#loadUrl(java.lang.String)(https://developer.android.com/reference/java/lang/String url) ` Loads the given URL. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#loadUrl(java.lang.String,%20java.util.Map<java.lang.String,java.lang.String>)(https://developer.android.com/reference/java/lang/String url, https://developer.android.com/reference/java/util/Map<https://developer.android.com/reference/java/lang/String, https://developer.android.com/reference/java/lang/String> additionalHttpHeaders) ` Loads the given URL with additional HTTP headers, specified as a map from name to value. |
| ` https://developer.android.com/reference/android/view/WindowInsets` | ` https://developer.android.com/reference/android/webkit/WebView#onApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets insets) ` Called when the view should apply `https://developer.android.com/reference/android/view/WindowInsets` according to its internal policy. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onCheckIsTextEditor()() ` Check whether the called view is a text editor, in which case it would make sense to automatically display a soft input window for it. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onChildViewAdded(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View parent, https://developer.android.com/reference/android/view/View child) ` *This method is deprecated. WebView no longer needs to implement ViewGroup.OnHierarchyChangeListener. This method does nothing now.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onChildViewRemoved(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View p, https://developer.android.com/reference/android/view/View child) ` *This method is deprecated. WebView no longer needs to implement ViewGroup.OnHierarchyChangeListener. This method does nothing now.* |
| ` https://developer.android.com/reference/android/view/inputmethod/InputConnection` | ` https://developer.android.com/reference/android/webkit/WebView#onCreateInputConnection(android.view.inputmethod.EditorInfo)(https://developer.android.com/reference/android/view/inputmethod/EditorInfo outAttrs) ` Creates a new InputConnection for an InputMethod to interact with the WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onCreateVirtualViewTranslationRequests(long[],%20int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)(long[] virtualIds, int[] supportedFormats, https://developer.android.com/reference/java/util/function/Consumer<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest> requestsCollector) ` Collects `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s which represents the content to be translated for the virtual views in the host view. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent event) ` Handles drag events sent by the system following a call to `https://developer.android.com/reference/android/view/View#startDragAndDrop(android.content.ClipData,%20android.view.View.DragShadowBuilder,%20java.lang.Object,%20int)`. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onFinishTemporaryDetach()() ` Called after `https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()` when the container is done changing the view. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event) ` Implement this method to handle generic motion events. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onGlobalFocusChanged(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View oldFocus, https://developer.android.com/reference/android/view/View newFocus) ` *This method is deprecated. WebView should not have implemented ViewTreeObserver.OnGlobalFocusChangeListener. This method does nothing now.* |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event) ` Implement this method to handle hover events. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onKeyDown(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event) ` Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyDown(int,%20android.view.KeyEvent)`: perform press of the view when `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER` or `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_ENTER` is released, if the view is enabled and clickable. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onKeyMultiple(int,%20int,%20android.view.KeyEvent)(int keyCode, int repeatCount, https://developer.android.com/reference/android/view/KeyEvent event) ` Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)`: always returns false (doesn't handle the event). |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onKeyUp(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event) ` Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyUp(int,%20android.view.KeyEvent)`: perform clicking of the view when `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER`, `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_ENTER` or `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_SPACE` is released. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onPause()() ` Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onProvideAutofillVirtualStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags) ` Populates a `https://developer.android.com/reference/android/view/ViewStructure` containing virtual children to fullfil an autofill request. The `https://developer.android.com/reference/android/view/ViewStructure` traditionally represents a `https://developer.android.com/reference/android/view/View`, while for web pages it represent HTML nodes. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onProvideContentCaptureStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags) ` Populates a `https://developer.android.com/reference/android/view/ViewStructure` for content capture. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onProvideVirtualStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure structure) ` Called when assist structure is being retrieved from a view as part of `https://developer.android.com/reference/android/app/Activity#onProvideAssistData(android.os.Bundle)` to generate additional virtual structure under this view. |
| ` https://developer.android.com/reference/android/view/PointerIcon` | ` https://developer.android.com/reference/android/webkit/WebView#onResolvePointerIcon(android.view.MotionEvent,%20int)(https://developer.android.com/reference/android/view/MotionEvent event, int pointerIndex) ` Resolve the pointer icon that should be used for specified pointer in the motion event. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onResume()() ` Resumes a WebView after a previous call to `https://developer.android.com/reference/android/webkit/WebView#onPause()`. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onStartTemporaryDetach()() ` This is called when a container is going to temporarily detach a child, with `https://developer.android.com/reference/android/view/ViewGroup#detachViewFromParent(android.view.View)`. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event) ` Implement this method to handle pointer events. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#onTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event) ` Implement this method to handle trackball motion events. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onVirtualViewTranslationResponses(android.util.LongSparseArray<android.view.translation.ViewTranslationResponse>)(https://developer.android.com/reference/android/util/LongSparseArray<https://developer.android.com/reference/android/view/translation/ViewTranslationResponse> response) ` Called when the content from `https://developer.android.com/reference/android/view/View#onCreateVirtualViewTranslationRequests(long[],%20int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)` had been translated by the TranslationService. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onWindowFocusChanged(boolean)(boolean hasWindowFocus) ` Called when the window containing this view gains or loses focus. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#overlayHorizontalScrollbar()() ` *This method was deprecated in API level 23. This method is now obsolete.* |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#overlayVerticalScrollbar()() ` *This method was deprecated in API level 23. This method is now obsolete.* |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#pageDown(boolean)(boolean bottom) ` Scrolls the contents of this WebView down by half the page size. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#pageUp(boolean)(boolean top) ` Scrolls the contents of this WebView up by half the view size. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#pauseTimers()() ` Pauses all layout, parsing, and JavaScript timers for all WebViews. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#performLongClick()() ` Calls this view's OnLongClickListener, if it is defined. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#postUrl(java.lang.String,%20byte[])(https://developer.android.com/reference/java/lang/String url, byte[] postData) ` Loads the URL with postData using "POST" method into this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)(long requestId, https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback callback) ` Posts a `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback`, which will be called when the current state of the WebView is ready to be drawn. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#postWebMessage(android.webkit.WebMessage,%20android.net.Uri)(https://developer.android.com/reference/android/webkit/WebMessage message, https://developer.android.com/reference/android/net/Uri targetOrigin) ` Post a message to main frame. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#reload()() ` Reloads the current URL. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#removeJavascriptInterface(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` Removes a previously injected Java object from this WebView. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#requestChildRectangleOnScreen(android.view.View,%20android.graphics.Rect,%20boolean)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect rect, boolean immediate) ` Called when a child of this group wants a particular rectangle to be positioned onto the screen. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#requestFocus(int,%20android.graphics.Rect)(int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect) ` Call this to try to give focus to a specific view or to one of its descendants and give it hints about the direction and a specific rectangle that the focus is coming from. Looks for a view to give focus to respecting the setting specified by `https://developer.android.com/reference/android/view/ViewGroup#getDescendantFocusability()`. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#requestFocusNodeHref(android.os.Message)(https://developer.android.com/reference/android/os/Message hrefMsg) ` Requests the anchor or image element URL at the last tapped point. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#requestImageRef(android.os.Message)(https://developer.android.com/reference/android/os/Message msg) ` Requests the URL of the image last touched by the user. |
| ` https://developer.android.com/reference/android/webkit/WebBackForwardList` | ` https://developer.android.com/reference/android/webkit/WebView#restoreState(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle inState) ` Restores the state of this WebView from the given Bundle. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#resumeTimers()() ` Resumes all layout, parsing, and JavaScript timers for all WebViews. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#savePassword(java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String host, https://developer.android.com/reference/java/lang/String username, https://developer.android.com/reference/java/lang/String password) ` *This method was deprecated in API level 18. Saving passwords in WebView will not be supported in future versions.* |
| ` https://developer.android.com/reference/android/webkit/WebBackForwardList` | ` https://developer.android.com/reference/android/webkit/WebView#saveState(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle outState) ` Saves the state of this WebView used in `https://developer.android.com/reference/android/app/Activity#onSaveInstanceState(android.os.Bundle)`. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#saveWebArchive(java.lang.String)(https://developer.android.com/reference/java/lang/String filename) ` Saves the current view as a web archive. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#saveWebArchive(java.lang.String,%20boolean,%20android.webkit.ValueCallback<java.lang.String>)(https://developer.android.com/reference/java/lang/String basename, boolean autoname, https://developer.android.com/reference/android/webkit/ValueCallback<https://developer.android.com/reference/java/lang/String> callback) ` Saves the current view as a web archive. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setBackgroundColor(int)(int color) ` Sets the background color for this view. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setCertificate(android.net.http.SslCertificate)(https://developer.android.com/reference/android/net/http/SslCertificate certificate) ` *This method was deprecated in API level 17. Calling this function has no useful effect, and will be ignored in future releases.* |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#setDataDirectorySuffix(java.lang.String)(https://developer.android.com/reference/java/lang/String suffix) ` Define the directory used to store WebView data for the current process. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setDownloadListener(android.webkit.DownloadListener)(https://developer.android.com/reference/android/webkit/DownloadListener listener) ` Registers the interface to be used when content can not be handled by the rendering engine, and should be downloaded instead. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setFindListener(android.webkit.WebView.FindListener)(https://developer.android.com/reference/android/webkit/WebView.FindListener listener) ` Registers the listener to be notified as find-on-page operations progress. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setHorizontalScrollbarOverlay(boolean)(boolean overlay) ` *This method was deprecated in API level 23. This method has no effect.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setHttpAuthUsernamePassword(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String host, https://developer.android.com/reference/java/lang/String realm, https://developer.android.com/reference/java/lang/String username, https://developer.android.com/reference/java/lang/String password) ` *This method was deprecated in API level 26. Use `https://developer.android.com/reference/android/webkit/WebViewDatabase#setHttpAuthUsernamePassword(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)` instead* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setInitialScale(int)(int scaleInPercent) ` Sets the initial scale for this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setLayerType(int,%20android.graphics.Paint)(int layerType, https://developer.android.com/reference/android/graphics/Paint paint) ` <br /> Specifies the type of layer backing this view. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params) ` Set the layout parameters associated with this view. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setMapTrackballToArrowKeys(boolean)(boolean setMap) ` *This method was deprecated in API level 17. Only the default case, `true`, will be supported in a future version.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setNetworkAvailable(boolean)(boolean networkUp) ` Informs WebView of the network state. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setOverScrollMode(int)(int mode) ` Set the over-scroll mode for this view. This method must be called on the thread that originally created this UI element. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setPictureListener(android.webkit.WebView.PictureListener)(https://developer.android.com/reference/android/webkit/WebView.PictureListener listener) ` *This method was deprecated in API level 15. This method is now obsolete.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setRendererPriorityPolicy(int,%20boolean)(int rendererRequestedPriority, boolean waivedWhenNotVisible) ` Set the renderer priority policy for this `https://developer.android.com/reference/android/webkit/WebView`. |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#setSafeBrowsingWhitelist(java.util.List<java.lang.String>,%20android.webkit.ValueCallback<java.lang.Boolean>)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/java/lang/String> hosts, https://developer.android.com/reference/android/webkit/ValueCallback<https://developer.android.com/reference/java/lang/Boolean> callback) ` Sets the list of hosts (domain names/IP addresses) that are exempt from SafeBrowsing checks. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setScrollBarStyle(int)(int style) ` <br /> Specify the style of the scrollbars. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setTextClassifier(android.view.textclassifier.TextClassifier)(https://developer.android.com/reference/android/view/textclassifier/TextClassifier textClassifier) ` Sets the `https://developer.android.com/reference/android/view/textclassifier/TextClassifier` for this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setVerticalScrollbarOverlay(boolean)(boolean overlay) ` *This method was deprecated in API level 23. This method has no effect.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setWebChromeClient(android.webkit.WebChromeClient)(https://developer.android.com/reference/android/webkit/WebChromeClient client) ` Sets the chrome handler. |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#setWebContentsDebuggingEnabled(boolean)(boolean enabled) ` Enables debugging of web contents (HTML / CSS / JavaScript) loaded into any WebViews of this application. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setWebViewClient(android.webkit.WebViewClient)(https://developer.android.com/reference/android/webkit/WebViewClient client) ` Sets the WebViewClient that will receive various notifications and requests. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setWebViewRenderProcessClient(java.util.concurrent.Executor,%20android.webkit.WebViewRenderProcessClient)(https://developer.android.com/reference/java/util/concurrent/Executor executor, https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient webViewRenderProcessClient) ` Sets the renderer client object associated with this WebView. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#setWebViewRenderProcessClient(android.webkit.WebViewRenderProcessClient)(https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient webViewRenderProcessClient) ` Sets the renderer client object associated with this WebView. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#shouldDelayChildPressedState()() ` Return true if the pressed state should be delayed for children or descendants of this ViewGroup. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#showFindDialog(java.lang.String,%20boolean)(https://developer.android.com/reference/java/lang/String text, boolean showIme) ` *This method was deprecated in API level 18. This method does not work reliably on all Android versions; implementing a custom find dialog using WebView.findAllAsync() provides a more robust solution.* |
| ` static void` | ` https://developer.android.com/reference/android/webkit/WebView#startSafeBrowsing(android.content.Context,%20android.webkit.ValueCallback<java.lang.Boolean>)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/webkit/ValueCallback<https://developer.android.com/reference/java/lang/Boolean> callback) ` *This method was deprecated in API level 37. In WebView version 122.0.6174.0 and later, this initialization is done automatically, so there is no need to call this API. If called, this API will invoke the `callback` immediately with `true`, given that Safe Browsing is enabled and supported on the device.* |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#stopLoading()() ` Stops the current load. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#zoomBy(float)(float zoomFactor) ` Performs a zoom operation in this WebView. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#zoomIn()() ` Performs zoom in in this WebView. |
| ` boolean` | ` https://developer.android.com/reference/android/webkit/WebView#zoomOut()() ` Performs zoom out in this WebView. |

| ### Protected methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#computeHorizontalScrollOffset()() ` <br /> Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#computeHorizontalScrollRange()() ` <br /> Compute the horizontal range that the horizontal scrollbar represents. |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#computeVerticalScrollExtent()() ` <br /> Compute the vertical extent of the vertical scrollbar's thumb within the vertical range. |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#computeVerticalScrollOffset()() ` <br /> Compute the vertical offset of the vertical scrollbar's thumb within the horizontal range. |
| ` int` | ` https://developer.android.com/reference/android/webkit/WebView#computeVerticalScrollRange()() ` <br /> Compute the vertical range that the vertical scrollbar represents. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#dispatchDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas) ` Called by draw to draw the child views. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onAttachedToWindow()() ` This is called when the view is attached to a window. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration newConfig) ` Called when the current configuration of the resources being used by the application have changed. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas) ` Implement this to do your drawing. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onFocusChanged(boolean,%20int,%20android.graphics.Rect)(boolean focused, int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect) ` Called by the view system when the focus state of this view changes. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onMeasure(int,%20int)(int widthMeasureSpec, int heightMeasureSpec) ` <br /> Measure the view and its content to determine the measured width and the measured height. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onOverScrolled(int,%20int,%20boolean,%20boolean)(int scrollX, int scrollY, boolean clampedX, boolean clampedY) ` Called by `https://developer.android.com/reference/android/view/View#overScrollBy(int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20boolean)` to respond to the results of an over-scroll operation. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onScrollChanged(int,%20int,%20int,%20int)(int l, int t, int oldl, int oldt) ` This is called in response to an internal scroll in this view (i.e., the view scrolled its own contents). |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onSizeChanged(int,%20int,%20int,%20int)(int w, int h, int ow, int oh) ` This is called during layout when the size of this view has changed. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onVisibilityChanged(android.view.View,%20int)(https://developer.android.com/reference/android/view/View changedView, int visibility) ` Called when the visibility of the view or an ancestor of the view has changed. This method must be called on the thread that originally created this UI element. |
| ` void` | ` https://developer.android.com/reference/android/webkit/WebView#onWindowVisibilityChanged(int)(int visibility) ` Called when the window containing has change its visibility (between `https://developer.android.com/reference/android/view/View#GONE`, `https://developer.android.com/reference/android/view/View#INVISIBLE`, and `https://developer.android.com/reference/android/view/View#VISIBLE`). |

### Inherited methods

From class `

https://developer.android.com/reference/android/widget/AbsoluteLayout

` `


boolean` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#checkLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams p)
`


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#generateDefaultLayoutParams()()
`

Returns a set of layout parameters with a width of
`https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#WRAP_CONTENT`,
a height of `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#WRAP_CONTENT`
and with the coordinates (0, 0).


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#generateLayoutParams(android.util.AttributeSet)(https://developer.android.com/reference/android/util/AttributeSet attrs)
`

Returns a new set of layout parameters based on the supplied attributes set.


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#generateLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams p)
`

Returns a safe set of layout parameters based on the supplied layout params.


`


void` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#onLayout(boolean,%20int,%20int,%20int,%20int)(boolean changed, int l, int t, int r, int b)
`

Called from layout when this view should
assign a size and position to each of its children.


`


void` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#onMeasure(int,%20int)(int widthMeasureSpec, int heightMeasureSpec)
`

<br />


Measure the view and its content to determine the measured width and the
measured height.


`


boolean` `
https://developer.android.com/reference/android/widget/AbsoluteLayout#shouldDelayChildPressedState()()
`

Return true if the pressed state should be delayed for children or descendants of this
ViewGroup.


From class `

https://developer.android.com/reference/android/view/ViewGroup

` `


void` `
https://developer.android.com/reference/android/view/ViewGroup#addChildrenForAccessibility(java.util.ArrayList<android.view.View>)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> outChildren)
`

Adds the children of this View relevant for accessibility to the given list
as output.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addExtraDataToAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo,%20java.lang.String,%20android.os.Bundle)(https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo info, https://developer.android.com/reference/java/lang/String extraDataKey, https://developer.android.com/reference/android/os/Bundle arguments)
`

Adds extra data to an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` based on an explicit request for the
additional data.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addFocusables(java.util.ArrayList<android.view.View>,%20int,%20int)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> views, int direction, int focusableMode)
`

Adds any focusable views that are descendants of this view (possibly
including this view if it is focusable itself) to views.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addKeyboardNavigationClusters(java.util.Collection<android.view.View>,%20int)(https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/android/view/View> views, int direction)
`

Adds any keyboard navigation cluster roots that are descendants of this view (possibly
including this view if it is a cluster root itself) to views.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#addStatesFromChildren()()
`

Returns whether this ViewGroup's drawable states also include
its children's drawable states.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addTouchables(java.util.ArrayList<android.view.View>)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> views)
`

Add any touchable views that are descendants of this view (possibly
including this view if it is touchable itself) to views.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addView(android.view.View,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`

Adds a child view with the specified layout parameters.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addView(android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, int index)
`

Adds a child view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addView(android.view.View,%20int,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View child, int index, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`

Adds a child view with the specified layout parameters.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addView(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

<br />

Adds a child view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#addView(android.view.View,%20int,%20int)(https://developer.android.com/reference/android/view/View child, int width, int height)
`

Adds a child view with this ViewGroup's default layout parameters and the
specified width and height.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#addViewInLayout(android.view.View,%20int,%20android.view.ViewGroup.LayoutParams,%20boolean)(https://developer.android.com/reference/android/view/View child, int index, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params, boolean preventRequestLayout)
`

Adds a view during layout.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#addViewInLayout(android.view.View,%20int,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View child, int index, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`

Adds a view during layout.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#attachLayoutAnimationParameters(android.view.View,%20android.view.ViewGroup.LayoutParams,%20int,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params, int index, int count)
`

Subclasses should override this method to set layout animation
parameters on the supplied child.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#attachViewToParent(android.view.View,%20int,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View child, int index, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`

Attaches a view to this view group.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#bringChildToFront(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Change the z order of the child so it's on top of all other children.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#canAnimate()()
`

Indicates whether the view group has the ability to animate its children
after the first layout.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#checkLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams p)
` `


void` `
https://developer.android.com/reference/android/view/ViewGroup#childDrawableStateChanged(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

If `https://developer.android.com/reference/android/view/ViewGroup#addStatesFromChildren()` is true, refreshes this group's
drawable state (to include the states from its children).


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#childHasTransientStateChanged(android.view.View,%20boolean)(https://developer.android.com/reference/android/view/View child, boolean childHasTransientState)
`

Called when a child view has changed whether or not it is tracking transient state.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#cleanupLayoutState(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Prevents the specified child to be laid out during the next layout pass.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#clearChildFocus(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Called when a child of this parent is giving up focus


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#clearDisappearingChildren()()
`

Removes any pending animations for views that have been removed.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#clearFocus()()
`

Called when this view wants to give up focus.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#debug(int)(int depth)
`


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#detachAllViewsFromParent()()
`

Detaches all views from the parent.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#detachViewFromParent(int)(int index)
`

Detaches a view from its parent.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#detachViewFromParent(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Detaches a view from its parent.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#detachViewsFromParent(int,%20int)(int start, int count)
`

Detaches a range of views from their parents.


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets insets)
`

Request to apply the given window insets to this view or another view in its subtree.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchCapturedPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Pass a captured pointer event down to the focused view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration newConfig)
`

Dispatch a notification about a resource configuration change down
the view hierarchy.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchCreateViewTranslationRequest(java.util.Map<android.view.autofill.AutofillId,long[]>,%20int[],%20android.view.translation.TranslationCapability,%20java.util.List<android.view.translation.ViewTranslationRequest>)(https://developer.android.com/reference/java/util/Map<https://developer.android.com/reference/android/view/autofill/AutofillId, long[]> viewIds, int[] supportedFormats, https://developer.android.com/reference/android/view/translation/TranslationCapability capability, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest> requests)
`

Dispatch to collect the `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s for translation purpose by traversing
the hierarchy when the app requests ui translation.

The implementation calls `https://developer.android.com/reference/android/view/ViewGroup#dispatchCreateViewTranslationRequest(java.util.Map<android.view.autofill.AutofillId,long[]>,%20int[],%20android.view.translation.TranslationCapability,%20java.util.List<android.view.translation.ViewTranslationRequest>)` for all the child
views.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchDisplayHint(int)(int hint)
`

Dispatch a hint about whether this view is displayed.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent event)
`

Detects if this View is enabled and has a drag event listener.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas)
`

Called by draw to draw the child views.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchDrawableHotspotChanged(float,%20float)(float x, float y)
`

Dispatches drawable hotspot changes to child views that meet at least
one of the following criteria:

- Returns `false` from both `https://developer.android.com/reference/android/view/View#isClickable()` and `https://developer.android.com/reference/android/view/View#isLongClickable()`
- Requests duplication of parent state via `https://developer.android.com/reference/android/view/View#setDuplicateParentStateEnabled(boolean)`

<br />

`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchFinishTemporaryDetach()()
`

Dispatch `https://developer.android.com/reference/android/view/View#onFinishTemporaryDetach()` to this View and its direct children if this is
a container View.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchFreezeSelfOnly(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Perform dispatching of a `https://developer.android.com/reference/android/view/View#saveHierarchyState(android.util.SparseArray<android.os.Parcelable>)` freeze()}
to only this view, not to its children.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchGenericFocusedEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a generic motion event to the currently focused view.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchGenericPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a generic motion event to the view under the first pointer.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a hover event.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchKeyEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event)
`

Dispatch a key event to the next view on the focus path.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchKeyEventPreIme(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event)
`

Dispatch a key event before it is processed by any input method
associated with the view hierarchy.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchKeyShortcutEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event)
`

Dispatches a key shortcut event.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchPointerCaptureChanged(boolean)(boolean hasCapture)
`


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchProvideAutofillStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags)
`

Dispatches creation of a `https://developer.android.com/reference/android/view/ViewStructure`s for autofill purposes down the hierarchy,
when an Assist structure is being created as part of an autofill request.

This implementation adds in all child views of the view group, in addition to calling the
default `https://developer.android.com/reference/android/view/View` implementation.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchProvideStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure structure)
`

Dispatch creation of `https://developer.android.com/reference/android/view/ViewStructure` down the hierarchy.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchRestoreInstanceState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Called by `https://developer.android.com/reference/android/view/View#restoreHierarchyState(android.util.SparseArray<android.os.Parcelable>)` to retrieve the
state for this view and its children.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchSaveInstanceState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Called by `https://developer.android.com/reference/android/view/View#saveHierarchyState(android.util.SparseArray<android.os.Parcelable>)` to store the state for
this view and its children.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchScrollCaptureSearch(android.graphics.Rect,%20android.graphics.Point,%20java.util.function.Consumer<android.view.ScrollCaptureTarget>)(https://developer.android.com/reference/android/graphics/Rect localVisibleRect, https://developer.android.com/reference/android/graphics/Point windowOffset, https://developer.android.com/reference/java/util/function/Consumer<https://developer.android.com/reference/android/view/ScrollCaptureTarget> targets)
`

Handle the scroll capture search request by checking this view if applicable, then to each
child view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchSetActivated(boolean)(boolean activated)
`

Dispatch setActivated to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchSetPressed(boolean)(boolean pressed)
`

Dispatch setPressed to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchSetSelected(boolean)(boolean selected)
`

Dispatch setSelected to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchStartTemporaryDetach()()
`

Dispatch `https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()` to this View and its direct children if this is
a container View.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchSystemUiVisibilityChanged(int)(int visible)
`

*This method is deprecated.
Use `https://developer.android.com/reference/android/view/WindowInsets#isVisible(int)` to find out about system bar visibilities
by setting a `https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener` on this view.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchThawSelfOnly(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Perform dispatching of a `https://developer.android.com/reference/android/view/View#restoreHierarchyState(android.util.SparseArray<android.os.Parcelable>)`
to only this view, not to its children.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent ev)
`

Pass the touch screen motion event down to the target view, or this
view if it is the target.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Pass a trackball motion event down to the focused view.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchUnhandledMove(android.view.View,%20int)(https://developer.android.com/reference/android/view/View focused, int direction)
`

This method is the last chance for the focused view and its ancestors to
respond to an arrow key.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchVisibilityChanged(android.view.View,%20int)(https://developer.android.com/reference/android/view/View changedView, int visibility)
`

Dispatch a view visibility change down the view hierarchy.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowFocusChanged(boolean)(boolean hasFocus)
`

Called when the window containing this view gains or loses window focus.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowInsetsAnimationEnd(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation animation)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onEnd(android.view.WindowInsetsAnimation)`
when Window Insets animation ends.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowInsetsAnimationPrepare(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation animation)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onPrepare(android.view.WindowInsetsAnimation)`
when Window Insets animation is being prepared.


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowInsetsAnimationProgress(android.view.WindowInsets,%20java.util.List<android.view.WindowInsetsAnimation>)(https://developer.android.com/reference/android/view/WindowInsets insets, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/view/WindowInsetsAnimation> runningAnimations)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onProgress(android.view.WindowInsets,%20java.util.List<android.view.WindowInsetsAnimation>)`
when Window Insets animation makes progress.


`


https://developer.android.com/reference/android/view/WindowInsetsAnimation.Bounds` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowInsetsAnimationStart(android.view.WindowInsetsAnimation,%20android.view.WindowInsetsAnimation.Bounds)(https://developer.android.com/reference/android/view/WindowInsetsAnimation animation, https://developer.android.com/reference/android/view/WindowInsetsAnimation.Bounds bounds)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onStart(android.view.WindowInsetsAnimation,%20android.view.WindowInsetsAnimation.Bounds)`
when Window Insets animation is started.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowSystemUiVisiblityChanged(int)(int visible)
`

*This method is deprecated.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#dispatchWindowVisibilityChanged(int)(int visibility)
`

Dispatch a window visibility change down the view hierarchy.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#drawChild(android.graphics.Canvas,%20android.view.View,%20long)(https://developer.android.com/reference/android/graphics/Canvas canvas, https://developer.android.com/reference/android/view/View child, long drawingTime)
`

Draw one child of this View Group.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#drawableStateChanged()()
`

This function is called whenever the state of the view changes in such
a way that it impacts the state of drawables being shown.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#endViewTransition(android.view.View)(https://developer.android.com/reference/android/view/View view)
`

This method should always be called following an earlier call to
`https://developer.android.com/reference/android/view/ViewGroup#startViewTransition(android.view.View)`.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/ViewGroup#findFocus()()
`

Find the view in the hierarchy rooted at this view that currently has
focus.


`


https://developer.android.com/reference/android/window/OnBackInvokedDispatcher` `
https://developer.android.com/reference/android/view/ViewGroup#findOnBackInvokedDispatcherForChild(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View requester)
`

Walk up the View hierarchy to find the nearest `https://developer.android.com/reference/android/window/OnBackInvokedDispatcher`.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#findViewsWithText(java.util.ArrayList<android.view.View>,%20java.lang.CharSequence,%20int)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> outViews, https://developer.android.com/reference/java/lang/CharSequence text, int flags)
`

Finds the Views that contain given text.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/ViewGroup#focusSearch(android.view.View,%20int)(https://developer.android.com/reference/android/view/View focused, int direction)
`

Find the nearest view in the specified direction that wants to take
focus.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#focusableViewAvailable(android.view.View)(https://developer.android.com/reference/android/view/View v)
`

Tells the parent that a new focusable view has become available.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#gatherTransparentRegion(android.graphics.Region)(https://developer.android.com/reference/android/graphics/Region region)
`

This is used by the ViewRoot to perform an optimization when
the view hierarchy contains one or several SurfaceView.


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/view/ViewGroup#generateDefaultLayoutParams()()
`

Returns a set of default layout parameters.


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/view/ViewGroup#generateLayoutParams(android.util.AttributeSet)(https://developer.android.com/reference/android/util/AttributeSet attrs)
`

Returns a new set of layout parameters based on the supplied attributes set.


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/view/ViewGroup#generateLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams p)
`

Returns a safe set of layout parameters based on the supplied layout params.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/ViewGroup#getAccessibilityClassName()()
`

Return the class name of this object to be used for accessibility purposes.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/ViewGroup#getChildAt(int)(int index)
`

Returns the view at the specified position in the group.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#getChildCount()()
`

Returns the number of children in the group.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#getChildDrawingOrder(int,%20int)(int childCount, int drawingPosition)
`

Converts drawing order position to container position.


`


final

int` `
https://developer.android.com/reference/android/view/ViewGroup#getChildDrawingOrder(int)(int drawingPosition)
`

Converts drawing order position to container position.


`


static


int` `
https://developer.android.com/reference/android/view/ViewGroup#getChildMeasureSpec(int,%20int,%20int)(int spec, int padding, int childDimension)
`

Does the hard part of measureChildren: figuring out the MeasureSpec to
pass to a particular child.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#getChildStaticTransformation(android.view.View,%20android.view.animation.Transformation)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/animation/Transformation t)
`

Sets `t` to be the static transformation of the child, if set, returning a
boolean to indicate whether a static transform was set.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#getChildVisibleRect(android.view.View,%20android.graphics.Rect,%20android.graphics.Point)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect r, https://developer.android.com/reference/android/graphics/Point offset)
`

Compute the visible part of a rectangular region defined in terms of a child view's
coordinates.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#getClipChildren()()
`

Returns whether this group's children are clipped to their bounds before drawing.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#getClipToPadding()()
`

Returns whether this ViewGroup will clip its children to its padding, and resize (but
not clip) any EdgeEffect to the padded region, if padding is present.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#getDescendantFocusability()()
`

Gets the descendant focusability of this view group.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/ViewGroup#getFocusedChild()()
`

Returns the focused child of this view, if any.


`


https://developer.android.com/reference/android/view/animation/LayoutAnimationController` `
https://developer.android.com/reference/android/view/ViewGroup#getLayoutAnimation()()
`

Returns the layout animation controller used to animate the group's
children.


`


https://developer.android.com/reference/android/view/animation/Animation.AnimationListener` `
https://developer.android.com/reference/android/view/ViewGroup#getLayoutAnimationListener()()
`

Returns the animation listener to which layout animation events are
sent.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#getLayoutMode()()
`

Returns the basis of alignment during layout operations on this ViewGroup:
either `https://developer.android.com/reference/android/view/ViewGroup#LAYOUT_MODE_CLIP_BOUNDS` or `https://developer.android.com/reference/android/view/ViewGroup#LAYOUT_MODE_OPTICAL_BOUNDS`.


`


https://developer.android.com/reference/android/animation/LayoutTransition` `
https://developer.android.com/reference/android/view/ViewGroup#getLayoutTransition()()
`

Gets the LayoutTransition object for this ViewGroup.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#getNestedScrollAxes()()
`

Return the current axes of nested scrolling for this ViewGroup.


`


https://developer.android.com/reference/android/view/ViewGroupOverlay` `
https://developer.android.com/reference/android/view/ViewGroup#getOverlay()()
`

Returns the ViewGroupOverlay for this view group, creating it if it does
not yet exist.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#getPersistentDrawingCache()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#getTouchscreenBlocksFocus()()
`

Check whether this ViewGroup should ignore focus requests for itself and its children.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#hasFocus()()
`

Returns true if this view has or contains focus


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#hasTransientState()()
`

Indicates whether the view is currently tracking transient state that the
app should not need to concern itself with saving and restoring, but that
the framework should take special note to preserve when possible.


`


int` `
https://developer.android.com/reference/android/view/ViewGroup#indexOfChild(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Returns the position in the group of the specified child view.


`


final

void` `
https://developer.android.com/reference/android/view/ViewGroup#invalidateChild(android.view.View,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect dirty)
`

*This method is deprecated.
Use `https://developer.android.com/reference/android/view/ViewGroup#onDescendantInvalidated(android.view.View,%20android.view.View)` instead to observe updates to
draw state in descendants.*


`


https://developer.android.com/reference/android/view/ViewParent` `
https://developer.android.com/reference/android/view/ViewGroup#invalidateChildInParent(int[],%20android.graphics.Rect)(int[] location, https://developer.android.com/reference/android/graphics/Rect dirty)
`

*This method is deprecated.
Use `https://developer.android.com/reference/android/view/ViewGroup#onDescendantInvalidated(android.view.View,%20android.view.View)` instead to observe updates to
draw state in descendants.*


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isAlwaysDrawnWithCacheEnabled()()
`

*This method was deprecated
in API level 23.
As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M`, this property is ignored.
Child views may no longer have their caching behavior disabled by parents.*


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isAnimationCacheEnabled()()
`

*This method was deprecated
in API level 23.
As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M`, this property is ignored.
Caching behavior of children may be controlled through `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)`.*


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isChildrenDrawingOrderEnabled()()
`

Indicates whether the ViewGroup is drawing its children in the order defined by
`https://developer.android.com/reference/android/view/ViewGroup#getChildDrawingOrder(int,%20int)`.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isChildrenDrawnWithCacheEnabled()()
`

*This method was deprecated
in API level 23.
As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M`, this property is ignored.
Child views may no longer be forced to cache their rendering state by their parents.
Use `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` on individual Views instead.*


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isLayoutSuppressed()()
`

Returns whether layout calls on this container are currently being
suppressed, due to an earlier call to `https://developer.android.com/reference/android/view/ViewGroup#suppressLayout(boolean)`.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isMotionEventSplittingEnabled()()
`

Returns true if MotionEvents dispatched to this ViewGroup can be split to multiple children.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#isTransitionGroup()()
`

Returns true if this ViewGroup should be considered as a single entity for removal
when executing an Activity transition.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#jumpDrawablesToCurrentState()()
`

Call `https://developer.android.com/reference/android/graphics/drawable/Drawable#jumpToCurrentState()`
on all Drawable objects associated with this view.


`


final

void` `
https://developer.android.com/reference/android/view/ViewGroup#layout(int,%20int,%20int,%20int)(int l, int t, int r, int b)
`

Assign a size and position to a view and all of its
descendants

This is the second phase of the layout mechanism.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#measureChild(android.view.View,%20int,%20int)(https://developer.android.com/reference/android/view/View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec)
`

Ask one of the children of this view to measure itself, taking into
account both the MeasureSpec requirements for this view and its padding.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#measureChildWithMargins(android.view.View,%20int,%20int,%20int,%20int)(https://developer.android.com/reference/android/view/View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed)
`

Ask one of the children of this view to measure itself, taking into
account both the MeasureSpec requirements for this view and its padding
and margins.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#measureChildren(int,%20int)(int widthMeasureSpec, int heightMeasureSpec)
`

Ask all of the children of this view to measure themselves, taking into
account both the MeasureSpec requirements for this view and its padding.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#notifySubtreeAccessibilityStateChanged(android.view.View,%20android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View source, int changeType)
`

Notifies a view parent that the accessibility state of one of its
descendants has changed and that the structure of the subtree is
different.


`


final

void` `
https://developer.android.com/reference/android/view/ViewGroup#offsetDescendantRectToMyCoords(android.view.View,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/View descendant, https://developer.android.com/reference/android/graphics/Rect rect)
`

Offset a rectangle that is in a descendant's coordinate
space into our coordinate space.


`


final

void` `
https://developer.android.com/reference/android/view/ViewGroup#offsetRectIntoDescendantCoords(android.view.View,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/View descendant, https://developer.android.com/reference/android/graphics/Rect rect)
`

Offset a rectangle that is in our coordinate space into an ancestor's
coordinate space.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onAttachedToWindow()()
`

This is called when the view is attached to a window.


`


int[]` `
https://developer.android.com/reference/android/view/ViewGroup#onCreateDrawableState(int)(int extraSpace)
`

Generate the new `https://developer.android.com/reference/android/graphics/drawable/Drawable` state for
this view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onDescendantInvalidated(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View target)
`

The target View has been invalidated, or has had a drawing property changed that
requires the hierarchy to re-render.

If you override this method you *must* call through to the
superclass implementation.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onDetachedFromWindow()()
`

This is called when the view is detached from a window.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onInterceptHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Implement this method to intercept hover events before they are handled
by child views.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onInterceptTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent ev)
`

Implement this method to intercept all touch screen motion events.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewGroup#onLayout(boolean,%20int,%20int,%20int,%20int)(boolean changed, int l, int t, int r, int b)
`

Called from layout when this view should
assign a size and position to each of its children.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onNestedFling(android.view.View,%20float,%20float,%20boolean)(https://developer.android.com/reference/android/view/View target, float velocityX, float velocityY, boolean consumed)
`

Request a fling from a nested scroll.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onNestedPreFling(android.view.View,%20float,%20float)(https://developer.android.com/reference/android/view/View target, float velocityX, float velocityY)
`

React to a nested fling before the target view consumes it.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onNestedPrePerformAccessibilityAction(android.view.View,%20int,%20android.os.Bundle)(https://developer.android.com/reference/android/view/View target, int action, https://developer.android.com/reference/android/os/Bundle args)
`

React to an accessibility action delegated by a target descendant view before the target
processes it.

Subclasses should always call `super.onNestedPrePerformAccessibilityAction`

<br />

`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onNestedPreScroll(android.view.View,%20int,%20int,%20int[])(https://developer.android.com/reference/android/view/View target, int dx, int dy, int[] consumed)
`

React to a nested scroll in progress before the target view consumes a portion of the scroll.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onNestedScroll(android.view.View,%20int,%20int,%20int,%20int)(https://developer.android.com/reference/android/view/View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed)
`

React to a nested scroll in progress.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onNestedScrollAccepted(android.view.View,%20android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View target, int axes)
`

React to the successful claiming of a nested scroll operation.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onRequestFocusInDescendants(int,%20android.graphics.Rect)(int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect)
`

Look for a descendant to call `https://developer.android.com/reference/android/view/View#requestFocus()` on.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onRequestSendAccessibilityEvent(android.view.View,%20android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Called when a child has requested sending an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` and
gives an opportunity to its parent to augment the event.


`


https://developer.android.com/reference/android/view/PointerIcon` `
https://developer.android.com/reference/android/view/ViewGroup#onResolvePointerIcon(android.view.MotionEvent,%20int)(https://developer.android.com/reference/android/view/MotionEvent event, int pointerIndex)
`

Resolve the pointer icon that should be used for specified pointer in the motion event.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#onStartNestedScroll(android.view.View,%20android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View target, int nestedScrollAxes)
`

React to a descendant view initiating a nestable scroll operation, claiming the
nested scroll operation if appropriate.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onStopNestedScroll(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

React to a nested scroll operation ending.

The default implementation of onStopNestedScroll calls
`https://developer.android.com/reference/android/view/View#stopNestedScroll()` to halt any recursive nested scrolling in progress.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onViewAdded(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Called when a new child is added to this ViewGroup.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#onViewRemoved(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Called when a child view is removed from this ViewGroup.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#propagateRequestedFrameRate(float,%20boolean)(float frameRate, boolean forceOverride)
`

You can set the preferred frame rate for a ViewGroup and its children using a positive number
or by specifying the preferred frame rate category using constants, including
REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE, REQUESTED_FRAME_RATE_CATEGORY_LOW,
REQUESTED_FRAME_RATE_CATEGORY_NORMAL, REQUESTED_FRAME_RATE_CATEGORY_HIGH.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#recomputeViewAttributes(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Tell view hierarchy that the global view attributes need to be
re-evaluated.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeAllViews()()
`

Call this method to remove all child views from the
ViewGroup.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeAllViewsInLayout()()
`

Called by a ViewGroup subclass to remove child views from itself,
when it must first know its size on screen before it can calculate how many
child views it will render.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeDetachedView(android.view.View,%20boolean)(https://developer.android.com/reference/android/view/View child, boolean animate)
`

Finishes the removal of a detached view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeView(android.view.View)(https://developer.android.com/reference/android/view/View view)
`


**Note:** do not invoke this method from
`https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)`, `https://developer.android.com/reference/android/view/View#onDraw(android.graphics.Canvas)`,
`https://developer.android.com/reference/android/view/ViewGroup#dispatchDraw(android.graphics.Canvas)` or any related method.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeViewAt(int)(int index)
`

Removes the view at the specified position in the group.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeViewInLayout(android.view.View)(https://developer.android.com/reference/android/view/View view)
`

Removes a view during layout.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeViews(int,%20int)(int start, int count)
`

Removes the specified range of views from the group.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#removeViewsInLayout(int,%20int)(int start, int count)
`

Removes a range of views during layout.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#requestChildFocus(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View focused)
`

Called when a child of this parent wants focus


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#requestChildRectangleOnScreen(android.view.View,%20android.graphics.Rect,%20boolean)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect rectangle, boolean immediate)
`

Called when a child of this group wants a particular rectangle to be
positioned onto the screen.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#requestChildRectangleOnScreen(android.view.View,%20android.graphics.Rect,%20boolean,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect rectangle, boolean immediate, int source)
`

Called when a child of this group wants a particular rectangle to be
positioned onto the screen.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#requestDisallowInterceptTouchEvent(boolean)(boolean disallowIntercept)
`

Called when a child does not want this parent and its ancestors to
intercept touch events with
`https://developer.android.com/reference/android/view/ViewGroup#onInterceptTouchEvent(android.view.MotionEvent)`.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#requestFocus(int,%20android.graphics.Rect)(int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect)
`

Call this to try to give focus to a specific view or to one of its descendants
and give it hints about the direction and a specific rectangle that the focus
is coming from.

Looks for a view to give focus to respecting the setting specified by
`https://developer.android.com/reference/android/view/ViewGroup#getDescendantFocusability()`.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#requestSendAccessibilityEvent(android.view.View,%20android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Called by a child to request from its parent to send an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#requestTransparentRegion(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Called when a child wants the view hierarchy to gather and report
transparent regions to the window compositor.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#restoreDefaultFocus()()
`

Gives focus to the default-focus view in the view hierarchy that has this view as a root.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#scheduleLayoutAnimation()()
`

Schedules the layout animation to be played after the next layout pass
of this view group.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setAddStatesFromChildren(boolean)(boolean addsStates)
`

Sets whether this ViewGroup's drawable states also include
its children's drawable states.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setAlwaysDrawnWithCacheEnabled(boolean)(boolean always)
`

*This method was deprecated
in API level 23.
As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M`, this property is ignored.
Child views may no longer have their caching behavior disabled by parents.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setAnimationCacheEnabled(boolean)(boolean enabled)
`

*This method was deprecated
in API level 23.
As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M`, this property is ignored.
Caching behavior of children may be controlled through `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)`.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setChildrenDrawingCacheEnabled(boolean)(boolean enabled)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setChildrenDrawingOrderEnabled(boolean)(boolean enabled)
`

Tells the ViewGroup whether to draw its children in the order defined by the method
`https://developer.android.com/reference/android/view/ViewGroup#getChildDrawingOrder(int,%20int)`.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setChildrenDrawnWithCacheEnabled(boolean)(boolean enabled)
`

*This method was deprecated
in API level 23.
As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M`, this property is ignored.
Child views may no longer be forced to cache their rendering state by their parents.
Use `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` on individual Views instead.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setClipChildren(boolean)(boolean clipChildren)
`

By default, children are clipped to their bounds before drawing.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setClipToPadding(boolean)(boolean clipToPadding)
`

Sets whether this ViewGroup will clip its children to its padding and resize (but not
clip) any EdgeEffect to the padded region, if padding is present.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setDescendantFocusability(int)(int focusability)
`

Set the descendant focusability of this view group.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setLayoutAnimation(android.view.animation.LayoutAnimationController)(https://developer.android.com/reference/android/view/animation/LayoutAnimationController controller)
`

Sets the layout animation controller used to animate the group's
children after the first layout.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setLayoutAnimationListener(android.view.animation.Animation.AnimationListener)(https://developer.android.com/reference/android/view/animation/Animation.AnimationListener animationListener)
`

Specifies the animation listener to which layout animation events must
be sent.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setLayoutMode(int)(int layoutMode)
`

Sets the basis of alignment during the layout of this ViewGroup.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setLayoutTransition(android.animation.LayoutTransition)(https://developer.android.com/reference/android/animation/LayoutTransition transition)
`

Sets the LayoutTransition object for this ViewGroup.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setMotionEventSplittingEnabled(boolean)(boolean split)
`

Enable or disable the splitting of MotionEvents to multiple children during touch event
dispatch.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setOnHierarchyChangeListener(android.view.ViewGroup.OnHierarchyChangeListener)(https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener listener)
`

Register a callback to be invoked when a child is added to or removed
from this view.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setPersistentDrawingCache(int)(int drawingCacheToKeep)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setRequestedFrameRate(float)(float frameRate)
`

You can set the preferred frame rate for a ViewGroup using a positive number
or by specifying the preferred frame rate category using constants, including
REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE, REQUESTED_FRAME_RATE_CATEGORY_LOW,
REQUESTED_FRAME_RATE_CATEGORY_NORMAL, REQUESTED_FRAME_RATE_CATEGORY_HIGH.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setStaticTransformationsEnabled(boolean)(boolean enabled)
`

When this property is set to true, this ViewGroup supports static transformations on
children; this causes
`https://developer.android.com/reference/android/view/ViewGroup#getChildStaticTransformation(android.view.View,%20android.view.animation.Transformation)` to be
invoked when a child is drawn.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setTouchscreenBlocksFocus(boolean)(boolean touchscreenBlocksFocus)
`

Set whether this ViewGroup should ignore focus requests for itself and its children.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setTransitionGroup(boolean)(boolean isTransitionGroup)
`

Changes whether or not this ViewGroup should be treated as a single entity during
Activity Transitions.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#setWindowInsetsAnimationCallback(android.view.WindowInsetsAnimation.Callback)(https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback callback)
`

Sets a `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback` to be notified about animations of windows that
cause insets.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#shouldDelayChildPressedState()()
`

Return true if the pressed state should be delayed for children or descendants of this
ViewGroup.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#showContextMenuForChild(android.view.View,%20float,%20float)(https://developer.android.com/reference/android/view/View originalView, float x, float y)
`

Shows the context menu for the specified view or its ancestors anchored
to the specified view-relative coordinate.


`


boolean` `
https://developer.android.com/reference/android/view/ViewGroup#showContextMenuForChild(android.view.View)(https://developer.android.com/reference/android/view/View originalView)
`

Shows the context menu for the specified view or its ancestors.


`


https://developer.android.com/reference/android/view/ActionMode` `
https://developer.android.com/reference/android/view/ViewGroup#startActionModeForChild(android.view.View,%20android.view.ActionMode.Callback,%20int)(https://developer.android.com/reference/android/view/View originalView, https://developer.android.com/reference/android/view/ActionMode.Callback callback, int type)
`

Start an action mode of a specific type for the specified view.


`


https://developer.android.com/reference/android/view/ActionMode` `
https://developer.android.com/reference/android/view/ViewGroup#startActionModeForChild(android.view.View,%20android.view.ActionMode.Callback)(https://developer.android.com/reference/android/view/View originalView, https://developer.android.com/reference/android/view/ActionMode.Callback callback)
`

Start an action mode for the specified view with the default type
`https://developer.android.com/reference/android/view/ActionMode#TYPE_PRIMARY`.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#startLayoutAnimation()()
`

Runs the layout animation.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#startViewTransition(android.view.View)(https://developer.android.com/reference/android/view/View view)
`

This method tells the ViewGroup that the given View object, which should have this
ViewGroup as its parent,
should be kept around (re-displayed when the ViewGroup draws its children) even if it
is removed from its parent.


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#suppressLayout(boolean)(boolean suppress)
`

Tells this ViewGroup to suppress all layout() calls until layout
suppression is disabled with a later call to suppressLayout(false).


`


void` `
https://developer.android.com/reference/android/view/ViewGroup#updateViewLayout(android.view.View,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`


From class `

https://developer.android.com/reference/android/view/View

` `


void` `
https://developer.android.com/reference/android/view/View#addChildrenForAccessibility(java.util.ArrayList<android.view.View>)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> outChildren)
`

Adds the children of this View relevant for accessibility to the given list
as output.


`


void` `
https://developer.android.com/reference/android/view/View#addExtraDataToAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo,%20java.lang.String,%20android.os.Bundle)(https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo info, https://developer.android.com/reference/java/lang/String extraDataKey, https://developer.android.com/reference/android/os/Bundle arguments)
`

Adds extra data to an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` based on an explicit request for the
additional data.


`


void` `
https://developer.android.com/reference/android/view/View#addFocusables(java.util.ArrayList<android.view.View>,%20int)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> views, int direction)
`

Add any focusable views that are descendants of this view (possibly
including this view if it is focusable itself) to views.


`


void` `
https://developer.android.com/reference/android/view/View#addFocusables(java.util.ArrayList<android.view.View>,%20int,%20int)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> views, int direction, int focusableMode)
`

Adds any focusable views that are descendants of this view (possibly
including this view if it is focusable itself) to views.


`


void` `
https://developer.android.com/reference/android/view/View#addKeyboardNavigationClusters(java.util.Collection<android.view.View>,%20int)(https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/android/view/View> views, int direction)
`

Adds any keyboard navigation cluster roots that are descendants of this view (possibly
including this view if it is a cluster root itself) to views.


`


void` `
https://developer.android.com/reference/android/view/View#addOnAttachStateChangeListener(android.view.View.OnAttachStateChangeListener)(https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener listener)
`

Add a listener for attach state changes.


`


void` `
https://developer.android.com/reference/android/view/View#addOnLayoutChangeListener(android.view.View.OnLayoutChangeListener)(https://developer.android.com/reference/android/view/View.OnLayoutChangeListener listener)
`

Add a listener that will be called when the bounds of the view change due to
layout processing.


`


void` `
https://developer.android.com/reference/android/view/View#addOnUnhandledKeyEventListener(android.view.View.OnUnhandledKeyEventListener)(https://developer.android.com/reference/android/view/View.OnUnhandledKeyEventListener listener)
`

Adds a listener which will receive unhandled `https://developer.android.com/reference/android/view/KeyEvent`s.


`


void` `
https://developer.android.com/reference/android/view/View#addTouchables(java.util.ArrayList<android.view.View>)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> views)
`

Add any touchable views that are descendants of this view (possibly
including this view if it is touchable itself) to views.


`


https://developer.android.com/reference/android/view/ViewPropertyAnimator` `
https://developer.android.com/reference/android/view/View#animate()()
`

This method returns a ViewPropertyAnimator object, which can be used to animate
specific properties on this View.


`


void` `
https://developer.android.com/reference/android/view/View#announceForAccessibility(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence text)
`

*This method was deprecated
in API level 36.
Use one of the methods described in the documentation above to semantically
describe UI instead of using an announcement, as accessibility services may choose to
ignore events dispatched with this method.*


`


void` `
https://developer.android.com/reference/android/view/View#autofill(android.view.autofill.AutofillValue)(https://developer.android.com/reference/android/view/autofill/AutofillValue value)
`

Automatically fills the content of this view with the `value`.


`


void` `
https://developer.android.com/reference/android/view/View#autofill(android.util.SparseArray<android.view.autofill.AutofillValue>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/view/autofill/AutofillValue> values)
`

Automatically fills the content of the virtual children within this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#awakenScrollBars(int,%20boolean)(int startDelay, boolean invalidate)
`

<br />


Trigger the scrollbars to draw.


`


boolean` `
https://developer.android.com/reference/android/view/View#awakenScrollBars(int)(int startDelay)
`

<br />


Trigger the scrollbars to draw.


`


boolean` `
https://developer.android.com/reference/android/view/View#awakenScrollBars()()
`

<br />

Trigger the scrollbars to draw.


`


void` `
https://developer.android.com/reference/android/view/View#bringToFront()()
`

Change the view's z order in the tree, so it's on top of other sibling
views.


`


void` `
https://developer.android.com/reference/android/view/View#buildDrawingCache(boolean)(boolean autoScale)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#buildDrawingCache()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#buildLayer()()
`

Forces this view's layer to be created and this view to be rendered
into its layer.


`


boolean` `
https://developer.android.com/reference/android/view/View#callOnClick()()
`

Directly call any attached OnClickListener.


`


boolean` `
https://developer.android.com/reference/android/view/View#canResolveLayoutDirection()()
`

Check if layout direction resolution can be done.


`


boolean` `
https://developer.android.com/reference/android/view/View#canResolveTextAlignment()()
`

Check if text alignment resolution can be done.


`


boolean` `
https://developer.android.com/reference/android/view/View#canResolveTextDirection()()
`

Check if text direction resolution can be done.


`


boolean` `
https://developer.android.com/reference/android/view/View#canScrollHorizontally(int)(int direction)
`

Check if this view can be scrolled horizontally in a certain direction.


`


boolean` `
https://developer.android.com/reference/android/view/View#canScrollVertically(int)(int direction)
`

Check if this view can be scrolled vertically in a certain direction.


`


final

void` `
https://developer.android.com/reference/android/view/View#cancelDragAndDrop()()
`

Cancels an ongoing drag and drop operation.


`


void` `
https://developer.android.com/reference/android/view/View#cancelLongPress()()
`

Cancels a pending long press.


`


final

void` `
https://developer.android.com/reference/android/view/View#cancelPendingInputEvents()()
`

Cancel any deferred high-level input events that were previously posted to the event queue.


`


boolean` `
https://developer.android.com/reference/android/view/View#checkInputConnectionProxy(android.view.View)(https://developer.android.com/reference/android/view/View view)
`

Called by the `https://developer.android.com/reference/android/view/inputmethod/InputMethodManager`
when a view who is not the current
input connection target is trying to make a call on the manager.


`


void` `
https://developer.android.com/reference/android/view/View#clearAnimation()()
`

Cancels any animations for this view.


`


void` `
https://developer.android.com/reference/android/view/View#clearFocus()()
`

Called when this view wants to give up focus.


`


void` `
https://developer.android.com/reference/android/view/View#clearPendingCredentialRequest()()
`

Clears the request and callback previously set
through `https://developer.android.com/reference/android/view/View#setPendingCredentialRequest(android.credentials.GetCredentialRequest,%20android.os.OutcomeReceiver<android.credentials.GetCredentialResponse,android.credentials.GetCredentialException>)`.


`


void` `
https://developer.android.com/reference/android/view/View#clearViewTranslationCallback()()
`

Clear the `https://developer.android.com/reference/android/view/translation/ViewTranslationCallback` from this view.


`


static


int` `
https://developer.android.com/reference/android/view/View#combineMeasuredStates(int,%20int)(int curState, int newState)
`

Merge two states as returned by `https://developer.android.com/reference/android/view/View#getMeasuredState()`.


`


int` `
https://developer.android.com/reference/android/view/View#computeHorizontalScrollExtent()()
`

<br />

Compute the horizontal extent of the horizontal scrollbar's thumb
within the horizontal range.


`


int` `
https://developer.android.com/reference/android/view/View#computeHorizontalScrollOffset()()
`

<br />

Compute the horizontal offset of the horizontal scrollbar's thumb
within the horizontal range.


`


int` `
https://developer.android.com/reference/android/view/View#computeHorizontalScrollRange()()
`

<br />

Compute the horizontal range that the horizontal scrollbar
represents.


`


void` `
https://developer.android.com/reference/android/view/View#computeScroll()()
`

Called by a parent to request that a child update its values for mScrollX
and mScrollY if necessary.


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/View#computeSystemWindowInsets(android.view.WindowInsets,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/WindowInsets in, https://developer.android.com/reference/android/graphics/Rect outLocalInsets)
`

Compute insets that should be consumed by this view and the ones that should propagate
to those under it.


`


int` `
https://developer.android.com/reference/android/view/View#computeVerticalScrollExtent()()
`

<br />

Compute the vertical extent of the vertical scrollbar's thumb
within the vertical range.


`


int` `
https://developer.android.com/reference/android/view/View#computeVerticalScrollOffset()()
`

<br />

Compute the vertical offset of the vertical scrollbar's thumb
within the horizontal range.


`


int` `
https://developer.android.com/reference/android/view/View#computeVerticalScrollRange()()
`

<br />

Compute the vertical range that the vertical scrollbar represents.


`


https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` `
https://developer.android.com/reference/android/view/View#createAccessibilityNodeInfo()()
`

Returns an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` representing this view from the
point of view of an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`.


`


void` `
https://developer.android.com/reference/android/view/View#createContextMenu(android.view.ContextMenu)(https://developer.android.com/reference/android/view/ContextMenu menu)
`

Show the context menu for this view.


`


void` `
https://developer.android.com/reference/android/view/View#destroyDrawingCache()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/View#dispatchApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets insets)
`

Request to apply the given window insets to this view or another view in its subtree.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchCapturedPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Pass a captured pointer event down to the focused view.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration newConfig)
`

Dispatch a notification about a resource configuration change down
the view hierarchy.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchCreateViewTranslationRequest(java.util.Map<android.view.autofill.AutofillId,long[]>,%20int[],%20android.view.translation.TranslationCapability,%20java.util.List<android.view.translation.ViewTranslationRequest>)(https://developer.android.com/reference/java/util/Map<https://developer.android.com/reference/android/view/autofill/AutofillId, long[]> viewIds, int[] supportedFormats, https://developer.android.com/reference/android/view/translation/TranslationCapability capability, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest> requests)
`

Dispatch to collect the `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s for translation purpose by traversing
the hierarchy when the app requests ui translation.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchDisplayHint(int)(int hint)
`

Dispatch a hint about whether this view is displayed.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent event)
`

Detects if this View is enabled and has a drag event listener.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas)
`

Called by draw to draw the child views.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchDrawableHotspotChanged(float,%20float)(float x, float y)
`

Dispatches drawableHotspotChanged to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchFinishTemporaryDetach()()
`

Dispatch `https://developer.android.com/reference/android/view/View#onFinishTemporaryDetach()` to this View and its direct children if this is
a container View.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchGenericFocusedEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a generic motion event to the currently focused view.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a generic motion event.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchGenericPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a generic motion event to the view under the first pointer.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Dispatch a hover event.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchKeyEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event)
`

Dispatch a key event to the next view on the focus path.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchKeyEventPreIme(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event)
`

Dispatch a key event before it is processed by any input method
associated with the view hierarchy.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchKeyShortcutEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent event)
`

Dispatches a key shortcut event.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchNestedFling(float,%20float,%20boolean)(float velocityX, float velocityY, boolean consumed)
`

Dispatch a fling to a nested scrolling parent.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchNestedPreFling(float,%20float)(float velocityX, float velocityY)
`

Dispatch a fling to a nested scrolling parent before it is processed by this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchNestedPrePerformAccessibilityAction(int,%20android.os.Bundle)(int action, https://developer.android.com/reference/android/os/Bundle arguments)
`

Report an accessibility action to this view's parents for delegated processing.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchNestedPreScroll(int,%20int,%20int[],%20int[])(int dx, int dy, int[] consumed, int[] offsetInWindow)
`

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchNestedScroll(int,%20int,%20int,%20int,%20int[])(int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow)
`

Dispatch one step of a nested scroll in progress.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchPointerCaptureChanged(boolean)(boolean hasCapture)
` `


boolean` `
https://developer.android.com/reference/android/view/View#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Dispatches an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` to the `https://developer.android.com/reference/android/view/View` to add the text content of the
view and its children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchProvideAutofillStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags)
`

Dispatches creation of a `https://developer.android.com/reference/android/view/ViewStructure`s for autofill purposes down the hierarchy,
when an Assist structure is being created as part of an autofill request.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchProvideStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure structure)
`

Dispatch creation of `https://developer.android.com/reference/android/view/ViewStructure` down the hierarchy.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchRestoreInstanceState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Called by `https://developer.android.com/reference/android/view/View#restoreHierarchyState(android.util.SparseArray<android.os.Parcelable>)` to retrieve the
state for this view and its children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchSaveInstanceState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Called by `https://developer.android.com/reference/android/view/View#saveHierarchyState(android.util.SparseArray<android.os.Parcelable>)` to store the state for
this view and its children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchScrollCaptureSearch(android.graphics.Rect,%20android.graphics.Point,%20java.util.function.Consumer<android.view.ScrollCaptureTarget>)(https://developer.android.com/reference/android/graphics/Rect localVisibleRect, https://developer.android.com/reference/android/graphics/Point windowOffset, https://developer.android.com/reference/java/util/function/Consumer<https://developer.android.com/reference/android/view/ScrollCaptureTarget> targets)
`

Dispatch a scroll capture search request down the view hierarchy.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchSetActivated(boolean)(boolean activated)
`

Dispatch setActivated to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchSetPressed(boolean)(boolean pressed)
`

Dispatch setPressed to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchSetSelected(boolean)(boolean selected)
`

Dispatch setSelected to all of this View's children.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchStartTemporaryDetach()()
`

Dispatch `https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()` to this View and its direct children if this is
a container View.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchSystemUiVisibilityChanged(int)(int visibility)
`

*This method was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsets#isVisible(int)` to find out about system bar visibilities
by setting a `https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener` on this view.*


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Pass the touch screen motion event down to the target view, or this
view if it is the target.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Pass a trackball motion event down to the focused view.


`


boolean` `
https://developer.android.com/reference/android/view/View#dispatchUnhandledMove(android.view.View,%20int)(https://developer.android.com/reference/android/view/View focused, int direction)
`

This method is the last chance for the focused view and its ancestors to
respond to an arrow key.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchVisibilityChanged(android.view.View,%20int)(https://developer.android.com/reference/android/view/View changedView, int visibility)
`

Dispatch a view visibility change down the view hierarchy.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchWindowFocusChanged(boolean)(boolean hasFocus)
`

Called when the window containing this view gains or loses window focus.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchWindowInsetsAnimationEnd(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation animation)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onEnd(android.view.WindowInsetsAnimation)`
when Window Insets animation ends.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchWindowInsetsAnimationPrepare(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation animation)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onPrepare(android.view.WindowInsetsAnimation)`
when Window Insets animation is being prepared.


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/View#dispatchWindowInsetsAnimationProgress(android.view.WindowInsets,%20java.util.List<android.view.WindowInsetsAnimation>)(https://developer.android.com/reference/android/view/WindowInsets insets, https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/view/WindowInsetsAnimation> runningAnimations)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onProgress(android.view.WindowInsets,%20java.util.List<android.view.WindowInsetsAnimation>)`
when Window Insets animation makes progress.


`


https://developer.android.com/reference/android/view/WindowInsetsAnimation.Bounds` `
https://developer.android.com/reference/android/view/View#dispatchWindowInsetsAnimationStart(android.view.WindowInsetsAnimation,%20android.view.WindowInsetsAnimation.Bounds)(https://developer.android.com/reference/android/view/WindowInsetsAnimation animation, https://developer.android.com/reference/android/view/WindowInsetsAnimation.Bounds bounds)
`

Dispatches `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback#onStart(android.view.WindowInsetsAnimation,%20android.view.WindowInsetsAnimation.Bounds)`
when Window Insets animation is started.


`


void` `
https://developer.android.com/reference/android/view/View#dispatchWindowSystemUiVisiblityChanged(int)(int visible)
`

*This method was deprecated
in API level 30.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`


void` `
https://developer.android.com/reference/android/view/View#dispatchWindowVisibilityChanged(int)(int visibility)
`

Dispatch a window visibility change down the view hierarchy.


`


void` `
https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas)
`

Manually render this view (and all of its children) to the given Canvas.


`


void` `
https://developer.android.com/reference/android/view/View#drawableHotspotChanged(float,%20float)(float x, float y)
`

This function is called whenever the view hotspot changes and needs to
be propagated to drawables or child views managed by the view.


`


void` `
https://developer.android.com/reference/android/view/View#drawableStateChanged()()
`

This function is called whenever the state of the view changes in such
a way that it impacts the state of drawables being shown.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/View#findFocus()()
`

Find the view in the hierarchy rooted at this view that currently has
focus.


`


final

https://developer.android.com/reference/android/window/OnBackInvokedDispatcher` `
https://developer.android.com/reference/android/view/View#findOnBackInvokedDispatcher()()
`

Walk up the View hierarchy to find the nearest `https://developer.android.com/reference/android/window/OnBackInvokedDispatcher`.


`


final
<T extends https://developer.android.com/reference/android/view/View>
T` `
https://developer.android.com/reference/android/view/View#findViewById(int)(int id)
`

Finds the first descendant view with the given ID, the view itself if
the ID matches `https://developer.android.com/reference/android/view/View#getId()`, or `null` if the ID is invalid
(\< 0) or there is no matching view in the hierarchy.


`


final
<T extends https://developer.android.com/reference/android/view/View>
T` `
https://developer.android.com/reference/android/view/View#findViewWithTag(java.lang.Object)(https://developer.android.com/reference/java/lang/Object tag)
`

Look for a child view with the given tag.


`


void` `
https://developer.android.com/reference/android/view/View#findViewsWithText(java.util.ArrayList<android.view.View>,%20java.lang.CharSequence,%20int)(https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View> outViews, https://developer.android.com/reference/java/lang/CharSequence searched, int flags)
`

Finds the Views that contain given text.


`


boolean` `
https://developer.android.com/reference/android/view/View#fitSystemWindows(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect insets)
`

*This method was deprecated
in API level 20.
As of API 20 use `https://developer.android.com/reference/android/view/View#dispatchApplyWindowInsets(android.view.WindowInsets)` to apply
insets to views. Views should override `https://developer.android.com/reference/android/view/View#onApplyWindowInsets(android.view.WindowInsets)` or use
`https://developer.android.com/reference/android/view/View#setOnApplyWindowInsetsListener(android.view.View.OnApplyWindowInsetsListener)`
to implement handling their own insets.*


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/View#focusSearch(int)(int direction)
`

Find the nearest view in the specified direction that can take focus.


`


void` `
https://developer.android.com/reference/android/view/View#forceHasOverlappingRendering(boolean)(boolean hasOverlappingRendering)
`

Sets the behavior for overlapping rendering for this view (see `https://developer.android.com/reference/android/view/View#hasOverlappingRendering()` for more details on this behavior).


`


void` `
https://developer.android.com/reference/android/view/View#forceLayout()()
`

Forces this view to be laid out during the next layout pass.


`


boolean` `
https://developer.android.com/reference/android/view/View#gatherTransparentRegion(android.graphics.Region)(https://developer.android.com/reference/android/graphics/Region region)
`

This is used by the ViewRoot to perform an optimization when
the view hierarchy contains one or several SurfaceView.


`


void` `
https://developer.android.com/reference/android/view/View#generateDisplayHash(java.lang.String,%20android.graphics.Rect,%20java.util.concurrent.Executor,%20android.view.displayhash.DisplayHashResultCallback)(https://developer.android.com/reference/java/lang/String hashAlgorithm, https://developer.android.com/reference/android/graphics/Rect bounds, https://developer.android.com/reference/java/util/concurrent/Executor executor, https://developer.android.com/reference/android/view/displayhash/DisplayHashResultCallback callback)
`

Called to generate a `https://developer.android.com/reference/android/view/displayhash/DisplayHash` for this view.


`


static


int` `
https://developer.android.com/reference/android/view/View#generateViewId()()
`

Generate a value suitable for use in `https://developer.android.com/reference/android/view/View#setId(int)`.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/View#getAccessibilityClassName()()
`

Return the class name of this object to be used for accessibility purposes.


`


https://developer.android.com/reference/android/view/View.AccessibilityDelegate` `
https://developer.android.com/reference/android/view/View#getAccessibilityDelegate()()
`

Returns the delegate for implementing accessibility support via
composition.


`


int` `
https://developer.android.com/reference/android/view/View#getAccessibilityLiveRegion()()
`

Gets the live region mode for this View.


`


https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider` `
https://developer.android.com/reference/android/view/View#getAccessibilityNodeProvider()()
`

Gets the provider for managing a virtual view hierarchy rooted at this View
and reported to `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s
that explore the window content.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/View#getAccessibilityPaneTitle()()
`

Get the title of the pane for purposes of accessibility.


`


int` `
https://developer.android.com/reference/android/view/View#getAccessibilityTraversalAfter()()
`

Gets the id of a view after which this one is visited in accessibility traversal.


`


int` `
https://developer.android.com/reference/android/view/View#getAccessibilityTraversalBefore()()
`

Gets the id of a view before which this one is visited in accessibility traversal.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/android/view/View#getAllowedHandwritingDelegatePackageName()()
`

Returns the allowed package for delegate editor views for which this view may act as a
handwriting delegator, as set by `https://developer.android.com/reference/android/view/View#setAllowedHandwritingDelegatePackage(java.lang.String)`.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/android/view/View#getAllowedHandwritingDelegatorPackageName()()
`

Returns the allowed package for views which may act as a handwriting delegator for this
delegate editor view, as set by `https://developer.android.com/reference/android/view/View#setAllowedHandwritingDelegatorPackage(java.lang.String)`.


`


float` `
https://developer.android.com/reference/android/view/View#getAlpha()()
`

The opacity of the view.


`


https://developer.android.com/reference/android/view/animation/Animation` `
https://developer.android.com/reference/android/view/View#getAnimation()()
`

Get the animation currently associated with this view.


`


https://developer.android.com/reference/android/graphics/Matrix` `
https://developer.android.com/reference/android/view/View#getAnimationMatrix()()
`

Return the current transformation matrix of the view.


`


https://developer.android.com/reference/android/os/IBinder` `
https://developer.android.com/reference/android/view/View#getApplicationWindowToken()()
`

Retrieve a unique token identifying the top-level "real" window of
the window that this view is attached to.


`


int[]` `
https://developer.android.com/reference/android/view/View#getAttributeResolutionStack(int)(int attribute)
`

Returns the ordered list of resource ID that are considered when resolving attribute values
for this `https://developer.android.com/reference/android/view/View`.


`


https://developer.android.com/reference/java/util/Map<https://developer.android.com/reference/java/lang/Integer, https://developer.android.com/reference/java/lang/Integer>` `
https://developer.android.com/reference/android/view/View#getAttributeSourceResourceMap()()
`

Returns the mapping of attribute resource ID to source resource ID where the attribute value
was set.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/android/view/View#getAutofillHints()()
`

Gets the hints that help an `https://developer.android.com/reference/android/service/autofill/AutofillService` determine how
to autofill the view with the user's data.


`


final

https://developer.android.com/reference/android/view/autofill/AutofillId` `
https://developer.android.com/reference/android/view/View#getAutofillId()()
`

Gets the unique, logical identifier of this view in the activity, for autofill purposes.


`


int` `
https://developer.android.com/reference/android/view/View#getAutofillType()()
`

Describes the autofill type of this view, so an
`https://developer.android.com/reference/android/service/autofill/AutofillService` can create the proper `https://developer.android.com/reference/android/view/autofill/AutofillValue`
when autofilling the view.


`


https://developer.android.com/reference/android/view/autofill/AutofillValue` `
https://developer.android.com/reference/android/view/View#getAutofillValue()()
`

Gets the `https://developer.android.com/reference/android/view/View`'s current autofill value.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/view/View#getBackground()()
`

Gets the background drawable


`


https://developer.android.com/reference/android/graphics/BlendMode` `
https://developer.android.com/reference/android/view/View#getBackgroundTintBlendMode()()
`

Return the blending mode used to apply the tint to the background
drawable, if specified.


`


https://developer.android.com/reference/android/content/res/ColorStateList` `
https://developer.android.com/reference/android/view/View#getBackgroundTintList()()
`

Return the tint applied to the background drawable, if specified.


`


https://developer.android.com/reference/android/graphics/PorterDuff.Mode` `
https://developer.android.com/reference/android/view/View#getBackgroundTintMode()()
`

Return the blending mode used to apply the tint to the background
drawable, if specified.


`


int` `
https://developer.android.com/reference/android/view/View#getBaseline()()
`

<br />

Return the offset of the widget's text baseline from the widget's top
boundary.


`


final

int` `
https://developer.android.com/reference/android/view/View#getBottom()()
`

Bottom position of this view relative to its parent.


`


float` `
https://developer.android.com/reference/android/view/View#getBottomFadingEdgeStrength()()
`

Returns the strength, or intensity, of the bottom faded edge.


`


int` `
https://developer.android.com/reference/android/view/View#getBottomPaddingOffset()()
`

Amount by which to extend the bottom fading region.


`


float` `
https://developer.android.com/reference/android/view/View#getCameraDistance()()
`

Gets the distance along the Z axis from the camera to this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#getClipBounds(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect outRect)
`

Populates an output rectangle with the clip bounds of the view,
returning `true` if successful or `false` if the view's
clip bounds are `null`.


`


https://developer.android.com/reference/android/graphics/Rect` `
https://developer.android.com/reference/android/view/View#getClipBounds()()
`

Returns a copy of the current `https://developer.android.com/reference/android/view/View#setClipBounds(android.graphics.Rect)`.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#getClipToOutline()()
`

Returns whether the Outline should be used to clip the contents of the View.


`


final

https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession` `
https://developer.android.com/reference/android/view/View#getContentCaptureSession()()
`

Gets the session used to notify content capture events.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/View#getContentDescription()()
`

Returns the `https://developer.android.com/reference/android/view/View`'s content description.


`


final

int` `
https://developer.android.com/reference/android/view/View#getContentSensitivity()()
`

Gets content sensitivity mode to determine whether this view displays sensitive content.


`


final

https://developer.android.com/reference/android/content/Context` `
https://developer.android.com/reference/android/view/View#getContext()()
`

Returns the context the view is running in, through which it can
access the current theme, resources, etc.


`


https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo` `
https://developer.android.com/reference/android/view/View#getContextMenuInfo()()
`

Views should implement this if they have extra information to associate
with the context menu.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#getDefaultFocusHighlightEnabled()()
`

Returns whether this View should use a default focus highlight when it gets focused but
doesn't have `https://developer.android.com/reference/android/R.attr#state_focused` defined in its background.


`


static


int` `
https://developer.android.com/reference/android/view/View#getDefaultSize(int,%20int)(int size, int measureSpec)
`

Utility to return a default size.


`


https://developer.android.com/reference/android/view/Display` `
https://developer.android.com/reference/android/view/View#getDisplay()()
`

Gets the logical display to which the view's window has been attached.


`


final

int[]` `
https://developer.android.com/reference/android/view/View#getDrawableState()()
`

Return an array of resource IDs of the drawable states representing the
current state of the view.


`


https://developer.android.com/reference/android/graphics/Bitmap` `
https://developer.android.com/reference/android/view/View#getDrawingCache()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


https://developer.android.com/reference/android/graphics/Bitmap` `
https://developer.android.com/reference/android/view/View#getDrawingCache(boolean)(boolean autoScale)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


int` `
https://developer.android.com/reference/android/view/View#getDrawingCacheBackgroundColor()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


int` `
https://developer.android.com/reference/android/view/View#getDrawingCacheQuality()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#getDrawingRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect outRect)
`

Return the visible drawing bounds of your view.


`


long` `
https://developer.android.com/reference/android/view/View#getDrawingTime()()
`

<br />

Return the time at which the drawing of the view hierarchy started.


`


float` `
https://developer.android.com/reference/android/view/View#getElevation()()
`

The base elevation of this view relative to its parent, in pixels.


`


int` `
https://developer.android.com/reference/android/view/View#getExplicitStyle()()
`

Returns the resource ID for the style specified using `style="..."` in the
`https://developer.android.com/reference/android/util/AttributeSet`'s backing XML element or `https://developer.android.com/reference/android/content/res/Resources#ID_NULL` otherwise if not
specified or otherwise not applicable.


`


boolean` `
https://developer.android.com/reference/android/view/View#getFilterTouchesWhenObscured()()
`

Gets whether the framework should discard touches when the view's
window is obscured by another visible window at the touched location.


`


boolean` `
https://developer.android.com/reference/android/view/View#getFitsSystemWindows()()
`

Check for state of `https://developer.android.com/reference/android/view/View#setFitsSystemWindows(boolean)`.


`


int` `
https://developer.android.com/reference/android/view/View#getFocusable()()
`

Returns the focusable setting for this view.


`


https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View>` `
https://developer.android.com/reference/android/view/View#getFocusables(int)(int direction)
`

Find and return all focusable views that are descendants of this view,
possibly including this view if it is focusable itself.


`


void` `
https://developer.android.com/reference/android/view/View#getFocusedRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect r)
`

When a view has focus and the user navigates away from it, the next view is searched for
starting from the rectangle filled in by this method.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/view/View#getForeground()()
`

Returns the drawable used as the foreground of this View.


`


int` `
https://developer.android.com/reference/android/view/View#getForegroundGravity()()
`

Describes how the foreground is positioned.


`


https://developer.android.com/reference/android/graphics/BlendMode` `
https://developer.android.com/reference/android/view/View#getForegroundTintBlendMode()()
`

Return the blending mode used to apply the tint to the foreground
drawable, if specified.


`


https://developer.android.com/reference/android/content/res/ColorStateList` `
https://developer.android.com/reference/android/view/View#getForegroundTintList()()
`

Return the tint applied to the foreground drawable, if specified.


`


https://developer.android.com/reference/android/graphics/PorterDuff.Mode` `
https://developer.android.com/reference/android/view/View#getForegroundTintMode()()
`

Return the blending mode used to apply the tint to the foreground
drawable, if specified.


`


float` `
https://developer.android.com/reference/android/view/View#getFrameContentVelocity()()
`

Get the current velocity of the View.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#getGlobalVisibleRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect r)
`

Sets `r` to the coordinates of the non-clipped area of this view in
the coordinate space of the view's root view.


`


boolean` `
https://developer.android.com/reference/android/view/View#getGlobalVisibleRect(android.graphics.Rect,%20android.graphics.Point)(https://developer.android.com/reference/android/graphics/Rect r, https://developer.android.com/reference/android/graphics/Point globalOffset)
`

Sets `r` to the coordinates of the non-clipped area of this view in
the coordinate space of the view's root view.


`


https://developer.android.com/reference/android/os/Handler` `
https://developer.android.com/reference/android/view/View#getHandler()()
` `


float` `
https://developer.android.com/reference/android/view/View#getHandwritingBoundsOffsetBottom()()
`

Return the amount of offset applied to the bottom edge of this view's handwriting bounds, in
the unit of pixel.


`


float` `
https://developer.android.com/reference/android/view/View#getHandwritingBoundsOffsetLeft()()
`

Return the amount of offset applied to the left edge of this view's handwriting bounds,
in the unit of pixel.


`


float` `
https://developer.android.com/reference/android/view/View#getHandwritingBoundsOffsetRight()()
`

Return the amount of offset applied to the right edge of this view's handwriting bounds, in
the unit of pixel.


`


float` `
https://developer.android.com/reference/android/view/View#getHandwritingBoundsOffsetTop()()
`

Return the amount of offset applied to the top edge of this view's handwriting bounds,
in the unit of pixel.


`


int` `
https://developer.android.com/reference/android/view/View#getHandwritingDelegateFlags()()
`

Returns flags configuring the handwriting delegation behavior for this delegate editor view,
as set by `https://developer.android.com/reference/android/view/View#setHandwritingDelegateFlags(int)`.


`


https://developer.android.com/reference/java/lang/Runnable` `
https://developer.android.com/reference/android/view/View#getHandwritingDelegatorCallback()()
`

Returns the callback set by `https://developer.android.com/reference/android/view/View#setHandwritingDelegatorCallback(java.lang.Runnable)` which should be called
when a stylus `https://developer.android.com/reference/android/view/MotionEvent` occurs within this view's bounds.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#getHasOverlappingRendering()()
`

Returns the value for overlapping rendering that is used internally.


`


final

int` `
https://developer.android.com/reference/android/view/View#getHeight()()
`

Return the height of your view.


`


void` `
https://developer.android.com/reference/android/view/View#getHitRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect outRect)
`

Hit rectangle in parent's coordinates


`


int` `
https://developer.android.com/reference/android/view/View#getHorizontalFadingEdgeLength()()
`

Returns the size of the horizontal faded edges used to indicate that more
content in this view is visible.


`


int` `
https://developer.android.com/reference/android/view/View#getHorizontalScrollbarHeight()()
`

Returns the height of the horizontal scrollbar.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/view/View#getHorizontalScrollbarThumbDrawable()()
`

Returns the currently configured Drawable for the thumb of the horizontal scroll bar if it
exists, null otherwise.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/view/View#getHorizontalScrollbarTrackDrawable()()
`

Returns the currently configured Drawable for the track of the horizontal scroll bar if it
exists, null otherwise.


`


int` `
https://developer.android.com/reference/android/view/View#getId()()
`

Returns this view's identifier.


`


int` `
https://developer.android.com/reference/android/view/View#getImportantForAccessibility()()
`

Gets the mode for determining whether this View is important for accessibility.


`


int` `
https://developer.android.com/reference/android/view/View#getImportantForAutofill()()
`

Gets the mode for determining whether this view is important for autofill.


`


int` `
https://developer.android.com/reference/android/view/View#getImportantForContentCapture()()
`

Gets the mode for determining whether this view is important for content capture.


`


boolean` `
https://developer.android.com/reference/android/view/View#getKeepScreenOn()()
`

Returns whether the screen should remain on, corresponding to the current
value of `https://developer.android.com/reference/android/view/View#KEEP_SCREEN_ON`.


`


https://developer.android.com/reference/android/view/KeyEvent.DispatcherState` `
https://developer.android.com/reference/android/view/View#getKeyDispatcherState()()
`

Return the global `https://developer.android.com/reference/android/view/KeyEvent.DispatcherState`
for this view's window.


`


int` `
https://developer.android.com/reference/android/view/View#getLabelFor()()
`

Gets the id of a view for which this view serves as a label for
accessibility purposes.


`


int` `
https://developer.android.com/reference/android/view/View#getLayerType()()
`

Indicates what type of layer is currently associated with this view.


`


int` `
https://developer.android.com/reference/android/view/View#getLayoutDirection()()
`

Returns the resolved layout direction for this view.


`


https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `
https://developer.android.com/reference/android/view/View#getLayoutParams()()
`

Get the LayoutParams associated with this view.


`


final

int` `
https://developer.android.com/reference/android/view/View#getLeft()()
`

Left position of this view relative to its parent.


`


float` `
https://developer.android.com/reference/android/view/View#getLeftFadingEdgeStrength()()
`

Returns the strength, or intensity, of the left faded edge.


`


int` `
https://developer.android.com/reference/android/view/View#getLeftPaddingOffset()()
`

Amount by which to extend the left fading region.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#getLocalVisibleRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect r)
`

Sets `r` to the coordinates of the non-clipped area of this view
relative to the top left corner of the view.


`


void` `
https://developer.android.com/reference/android/view/View#getLocationInSurface(int[])(int[] location)
`

Gets the coordinates of this view in the coordinate space of the
`https://developer.android.com/reference/android/view/Surface` that contains the view.


`


void` `
https://developer.android.com/reference/android/view/View#getLocationInWindow(int[])(int[] outLocation)
`

Gets the coordinates of this view in the coordinate space of the window
that contains the view, irrespective of system decorations.


`


void` `
https://developer.android.com/reference/android/view/View#getLocationOnScreen(int[])(int[] outLocation)
`

Gets the coordinates of this view in the coordinate space of the device
screen, irrespective of system decorations and whether the system is in
multi-window mode.


`


https://developer.android.com/reference/android/graphics/Matrix` `
https://developer.android.com/reference/android/view/View#getMatrix()()
`

The transform matrix of this view, which is calculated based on the current
rotation, scale, and pivot properties.


`


final

int` `
https://developer.android.com/reference/android/view/View#getMeasuredHeight()()
`

Like `https://developer.android.com/reference/android/view/View#getMeasuredHeightAndState()`, but only returns the
raw height component (that is the result is masked by
`https://developer.android.com/reference/android/view/View#MEASURED_SIZE_MASK`).


`


final

int` `
https://developer.android.com/reference/android/view/View#getMeasuredHeightAndState()()
`

Return the full height measurement information for this view as computed
by the most recent call to `https://developer.android.com/reference/android/view/View#measure(int,%20int)`.


`


final

int` `
https://developer.android.com/reference/android/view/View#getMeasuredState()()
`

Return only the state bits of `https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()`
and `https://developer.android.com/reference/android/view/View#getMeasuredHeightAndState()`, combined into one integer.


`


final

int` `
https://developer.android.com/reference/android/view/View#getMeasuredWidth()()
`

Like `https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()`, but only returns the
raw width component (that is the result is masked by
`https://developer.android.com/reference/android/view/View#MEASURED_SIZE_MASK`).


`


final

int` `
https://developer.android.com/reference/android/view/View#getMeasuredWidthAndState()()
`

Return the full width measurement information for this view as computed
by the most recent call to `https://developer.android.com/reference/android/view/View#measure(int,%20int)`.


`


int` `
https://developer.android.com/reference/android/view/View#getMinimumHeight()()
`

Returns the minimum height of the view.


`


int` `
https://developer.android.com/reference/android/view/View#getMinimumWidth()()
`

Returns the minimum width of the view.


`


int` `
https://developer.android.com/reference/android/view/View#getNextClusterForwardId()()
`

Gets the id of the root of the next keyboard navigation cluster.


`


int` `
https://developer.android.com/reference/android/view/View#getNextFocusDownId()()
`

Gets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_DOWN`.


`


int` `
https://developer.android.com/reference/android/view/View#getNextFocusForwardId()()
`

Gets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_FORWARD`.


`


int` `
https://developer.android.com/reference/android/view/View#getNextFocusLeftId()()
`

Gets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_LEFT`.


`


int` `
https://developer.android.com/reference/android/view/View#getNextFocusRightId()()
`

Gets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_RIGHT`.


`


int` `
https://developer.android.com/reference/android/view/View#getNextFocusUpId()()
`

Gets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_UP`.


`


https://developer.android.com/reference/android/view/View.OnFocusChangeListener` `
https://developer.android.com/reference/android/view/View#getOnFocusChangeListener()()
`

Returns the focus-change callback registered for this view.


`


int` `
https://developer.android.com/reference/android/view/View#getOutlineAmbientShadowColor()()
` `


https://developer.android.com/reference/android/view/ViewOutlineProvider` `
https://developer.android.com/reference/android/view/View#getOutlineProvider()()
`

Returns the current `https://developer.android.com/reference/android/view/ViewOutlineProvider` of the view, which generates the Outline
that defines the shape of the shadow it casts, and enables outline clipping.


`


int` `
https://developer.android.com/reference/android/view/View#getOutlineSpotShadowColor()()
` `


int` `
https://developer.android.com/reference/android/view/View#getOverScrollMode()()
`

Returns the over-scroll mode for this view.


`


https://developer.android.com/reference/android/view/ViewOverlay` `
https://developer.android.com/reference/android/view/View#getOverlay()()
`

Returns the overlay for this view, creating it if it does not yet exist.


`


int` `
https://developer.android.com/reference/android/view/View#getPaddingBottom()()
`

Returns the bottom padding of this view.


`


int` `
https://developer.android.com/reference/android/view/View#getPaddingEnd()()
`

Returns the end padding of this view depending on its resolved layout direction.


`


int` `
https://developer.android.com/reference/android/view/View#getPaddingLeft()()
`

Returns the left padding of this view.


`


int` `
https://developer.android.com/reference/android/view/View#getPaddingRight()()
`

Returns the right padding of this view.


`


int` `
https://developer.android.com/reference/android/view/View#getPaddingStart()()
`

Returns the start padding of this view depending on its resolved layout direction.


`


int` `
https://developer.android.com/reference/android/view/View#getPaddingTop()()
`

Returns the top padding of this view.


`


final

https://developer.android.com/reference/android/view/ViewParent` `
https://developer.android.com/reference/android/view/View#getParent()()
`

Gets the parent of this view.


`


https://developer.android.com/reference/android/view/ViewParent` `
https://developer.android.com/reference/android/view/View#getParentForAccessibility()()
`

Gets the parent for accessibility purposes.


`


final

https://developer.android.com/reference/android/os/OutcomeReceiver<https://developer.android.com/reference/android/credentials/GetCredentialResponse, https://developer.android.com/reference/android/credentials/GetCredentialException>` `
https://developer.android.com/reference/android/view/View#getPendingCredentialCallback()()
`

Returns the callback that has previously been set up on this view through
the `https://developer.android.com/reference/android/view/View#setPendingCredentialRequest(android.credentials.GetCredentialRequest,%20android.os.OutcomeReceiver<android.credentials.GetCredentialResponse,android.credentials.GetCredentialException>)` API.


`


final

https://developer.android.com/reference/android/credentials/GetCredentialRequest` `
https://developer.android.com/reference/android/view/View#getPendingCredentialRequest()()
`

Returns the `https://developer.android.com/reference/android/credentials/GetCredentialRequest` associated with the view.


`


float` `
https://developer.android.com/reference/android/view/View#getPivotX()()
`

The x location of the point around which the view is `https://developer.android.com/reference/android/view/View#setRotation(float)`
and `https://developer.android.com/reference/android/view/View#setScaleX(float)`.


`


float` `
https://developer.android.com/reference/android/view/View#getPivotY()()
`

The y location of the point around which the view is `https://developer.android.com/reference/android/view/View#setRotation(float)`
and `https://developer.android.com/reference/android/view/View#setScaleY(float)`.


`


https://developer.android.com/reference/android/view/PointerIcon` `
https://developer.android.com/reference/android/view/View#getPointerIcon()()
`

Gets the mouse pointer icon for the current view.


`


final

https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/graphics/Rect>` `
https://developer.android.com/reference/android/view/View#getPreferKeepClearRects()()
` `


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/android/view/View#getReceiveContentMimeTypes()()
`

Returns the MIME types accepted by `https://developer.android.com/reference/android/view/View#performReceiveContent(android.view.ContentInfo)` for this view, as
configured via `https://developer.android.com/reference/android/view/View#setOnReceiveContentListener(java.lang.String[],%20android.view.OnReceiveContentListener)`.


`


float` `
https://developer.android.com/reference/android/view/View#getRequestedFrameRate()()
`

Get the current preferred frame rate of the View.


`


https://developer.android.com/reference/android/content/res/Resources` `
https://developer.android.com/reference/android/view/View#getResources()()
`

Returns the resources associated with this view.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#getRevealOnFocusHint()()
`

Returns this view's preference for reveal behavior when it gains focus.


`


final

int` `
https://developer.android.com/reference/android/view/View#getRight()()
`

Right position of this view relative to its parent.


`


float` `
https://developer.android.com/reference/android/view/View#getRightFadingEdgeStrength()()
`

Returns the strength, or intensity, of the right faded edge.


`


int` `
https://developer.android.com/reference/android/view/View#getRightPaddingOffset()()
`

Amount by which to extend the right fading region.


`


https://developer.android.com/reference/android/view/AttachedSurfaceControl` `
https://developer.android.com/reference/android/view/View#getRootSurfaceControl()()
`

The AttachedSurfaceControl itself is not a View, it is just the interface to the
windowing-system object that contains the entire view hierarchy.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/View#getRootView()()
`

<br />

Finds the topmost view in the current view hierarchy.


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/View#getRootWindowInsets()()
`

Provide original WindowInsets that are dispatched to the view hierarchy.


`


float` `
https://developer.android.com/reference/android/view/View#getRotation()()
`

The degrees that the view is rotated around the pivot point.


`


float` `
https://developer.android.com/reference/android/view/View#getRotationX()()
`

The degrees that the view is rotated around the horizontal axis through the pivot point.


`


float` `
https://developer.android.com/reference/android/view/View#getRotationY()()
`

The degrees that the view is rotated around the vertical axis through the pivot point.


`


float` `
https://developer.android.com/reference/android/view/View#getScaleX()()
`

The amount that the view is scaled in x around the pivot point, as a proportion of
the view's unscaled width.


`


float` `
https://developer.android.com/reference/android/view/View#getScaleY()()
`

The amount that the view is scaled in y around the pivot point, as a proportion of
the view's unscaled height.


`


int` `
https://developer.android.com/reference/android/view/View#getScrollBarDefaultDelayBeforeFade()()
`

Returns the delay before scrollbars fade.


`


int` `
https://developer.android.com/reference/android/view/View#getScrollBarFadeDuration()()
`

Returns the scrollbar fade duration.


`


int` `
https://developer.android.com/reference/android/view/View#getScrollBarSize()()
`

Returns the scrollbar size.


`


int` `
https://developer.android.com/reference/android/view/View#getScrollBarStyle()()
`

<br />

Returns the current scrollbar style.


`


int` `
https://developer.android.com/reference/android/view/View#getScrollCaptureHint()()
`

Returns the current scroll capture hint for this view.


`


int` `
https://developer.android.com/reference/android/view/View#getScrollIndicators()()
`

Returns a bitmask representing the enabled scroll indicators.


`


final

int` `
https://developer.android.com/reference/android/view/View#getScrollX()()
`

Return the scrolled left position of this view.


`


final

int` `
https://developer.android.com/reference/android/view/View#getScrollY()()
`

Return the scrolled top position of this view.


`


int` `
https://developer.android.com/reference/android/view/View#getSolidColor()()
`

Override this if your view is known to always be drawn on top of a solid color background,
and needs to draw fading edges.


`


int` `
https://developer.android.com/reference/android/view/View#getSourceLayoutResId()()
`

A `https://developer.android.com/reference/android/view/View` can be inflated from an XML layout.


`


final

https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/View#getStateDescription()()
`

Returns the `https://developer.android.com/reference/android/view/View`'s state description.


`


https://developer.android.com/reference/android/animation/StateListAnimator` `
https://developer.android.com/reference/android/view/View#getStateListAnimator()()
`

Returns the current StateListAnimator if exists.


`


int` `
https://developer.android.com/reference/android/view/View#getSuggestedMinimumHeight()()
`

Returns the suggested minimum height that the view should use.


`


int` `
https://developer.android.com/reference/android/view/View#getSuggestedMinimumWidth()()
`

Returns the suggested minimum width that the view should use.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/View#getSupplementalDescription()()
`

Returns the `https://developer.android.com/reference/android/view/View`'s supplemental description.


`


https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/graphics/Rect>` `
https://developer.android.com/reference/android/view/View#getSystemGestureExclusionRects()()
`

Retrieve the list of areas within this view's post-layout coordinate space where the system
should not intercept touch or other pointing device gestures.


`


int` `
https://developer.android.com/reference/android/view/View#getSystemUiVisibility()()
`

*This method was deprecated
in API level 30.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/android/view/View#getTag()()
`

Returns this view's tag.


`


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/android/view/View#getTag(int)(int key)
`

Returns the tag associated with this view and the specified key.


`


int` `
https://developer.android.com/reference/android/view/View#getTextAlignment()()
`

Return the resolved text alignment.


`


int` `
https://developer.android.com/reference/android/view/View#getTextDirection()()
`

Return the resolved text direction.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/view/View#getTooltipText()()
`

Returns the view's tooltip text.


`


final

int` `
https://developer.android.com/reference/android/view/View#getTop()()
`

Top position of this view relative to its parent.


`


float` `
https://developer.android.com/reference/android/view/View#getTopFadingEdgeStrength()()
`

Returns the strength, or intensity, of the top faded edge.


`


int` `
https://developer.android.com/reference/android/view/View#getTopPaddingOffset()()
`

Amount by which to extend the top fading region.


`


https://developer.android.com/reference/android/view/TouchDelegate` `
https://developer.android.com/reference/android/view/View#getTouchDelegate()()
`

Gets the TouchDelegate for this View.


`


https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/view/View>` `
https://developer.android.com/reference/android/view/View#getTouchables()()
`

Find and return all touchable views that are descendants of this view,
possibly including this view if it is touchable itself.


`


float` `
https://developer.android.com/reference/android/view/View#getTransitionAlpha()()
`

This property is intended only for use by the Fade transition, which animates
it to produce a visual translucency that does not side-effect (or get affected
by) the real alpha property.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/android/view/View#getTransitionName()()
`

Returns the name of the View to be used to identify Views in Transitions.


`


float` `
https://developer.android.com/reference/android/view/View#getTranslationX()()
`

The horizontal location of this view relative to its `https://developer.android.com/reference/android/view/View#getLeft()` position.


`


float` `
https://developer.android.com/reference/android/view/View#getTranslationY()()
`

The vertical location of this view relative to its `https://developer.android.com/reference/android/view/View#getTop()` position.


`


float` `
https://developer.android.com/reference/android/view/View#getTranslationZ()()
`

The depth location of this view relative to its `https://developer.android.com/reference/android/view/View#getElevation()`.


`


long` `
https://developer.android.com/reference/android/view/View#getUniqueDrawingId()()
`

Get the identifier used for this view by the drawing system.


`


int` `
https://developer.android.com/reference/android/view/View#getVerticalFadingEdgeLength()()
`

Returns the size of the vertical faded edges used to indicate that more
content in this view is visible.


`


int` `
https://developer.android.com/reference/android/view/View#getVerticalScrollbarPosition()()
` `


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/view/View#getVerticalScrollbarThumbDrawable()()
`

Returns the currently configured Drawable for the thumb of the vertical scroll bar if it
exists, null otherwise.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/view/View#getVerticalScrollbarTrackDrawable()()
`

Returns the currently configured Drawable for the track of the vertical scroll bar if it
exists, null otherwise.


`


int` `
https://developer.android.com/reference/android/view/View#getVerticalScrollbarWidth()()
`

Returns the width of the vertical scrollbar.


`


https://developer.android.com/reference/android/view/translation/ViewTranslationResponse` `
https://developer.android.com/reference/android/view/View#getViewTranslationResponse()()
`

Returns the `https://developer.android.com/reference/android/view/translation/ViewTranslationResponse` associated with this view.


`


https://developer.android.com/reference/android/view/ViewTreeObserver` `
https://developer.android.com/reference/android/view/View#getViewTreeObserver()()
`

Returns the ViewTreeObserver for this view's hierarchy.


`


int` `
https://developer.android.com/reference/android/view/View#getVisibility()()
`

Returns the visibility status for this view.


`


final

int` `
https://developer.android.com/reference/android/view/View#getWidth()()
`

Return the width of your view.


`


int` `
https://developer.android.com/reference/android/view/View#getWindowAttachCount()()
` `


https://developer.android.com/reference/android/view/WindowId` `
https://developer.android.com/reference/android/view/View#getWindowId()()
`

Retrieve the `https://developer.android.com/reference/android/view/WindowId` for the window this view is
currently attached to.


`


https://developer.android.com/reference/android/view/WindowInsetsController` `
https://developer.android.com/reference/android/view/View#getWindowInsetsController()()
`

Retrieves the single `https://developer.android.com/reference/android/view/WindowInsetsController` of the window this view is attached to.


`


int` `
https://developer.android.com/reference/android/view/View#getWindowSystemUiVisibility()()
`

*This method was deprecated
in API level 30.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`


https://developer.android.com/reference/android/os/IBinder` `
https://developer.android.com/reference/android/view/View#getWindowToken()()
`

Retrieve a unique token identifying the window this view is attached to.


`


int` `
https://developer.android.com/reference/android/view/View#getWindowVisibility()()
`

Returns the current visibility of the window this view is attached to
(either `https://developer.android.com/reference/android/view/View#GONE`, `https://developer.android.com/reference/android/view/View#INVISIBLE`, or `https://developer.android.com/reference/android/view/View#VISIBLE`).


`


void` `
https://developer.android.com/reference/android/view/View#getWindowVisibleDisplayFrame(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect outRect)
`

Retrieve the overall visible display size in which the window this view is
attached to has been positioned in.


`


float` `
https://developer.android.com/reference/android/view/View#getX()()
`

The visual x position of this view, in pixels.


`


float` `
https://developer.android.com/reference/android/view/View#getY()()
`

The visual y position of this view, in pixels.


`


float` `
https://developer.android.com/reference/android/view/View#getZ()()
`

The visual z position of this view, in pixels.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasExplicitFocusable()()
`

Returns true if this view is focusable or if it contains a reachable View
for which `https://developer.android.com/reference/android/view/View#hasExplicitFocusable()` returns `true`.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasFocus()()
`

Returns true if this view has focus itself, or is the ancestor of the
view that has focus.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasFocusable()()
`

Returns true if this view is focusable or if it contains a reachable View
for which `https://developer.android.com/reference/android/view/View#hasFocusable()` returns `true`.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasNestedScrollingParent()()
`

Returns true if this view has a nested scrolling parent.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasOnClickListeners()()
`

Return whether this view has an attached OnClickListener.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasOnLongClickListeners()()
`

Return whether this view has an attached OnLongClickListener.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasOverlappingRendering()()
`

Returns whether this View has content which overlaps.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasPointerCapture()()
`

Checks pointer capture status.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasTransientState()()
`

Indicates whether the view is currently tracking transient state that the
app should not need to concern itself with saving and restoring, but that
the framework should take special note to preserve when possible.


`


boolean` `
https://developer.android.com/reference/android/view/View#hasWindowFocus()()
`

Returns true if this view is in a window that currently has window focus.


`


static


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/View#inflate(android.content.Context,%20int,%20android.view.ViewGroup)(https://developer.android.com/reference/android/content/Context context, int resource, https://developer.android.com/reference/android/view/ViewGroup root)
`

Inflate a view from an XML resource.


`


void` `
https://developer.android.com/reference/android/view/View#invalidate()()
`

Invalidate the whole view.


`


void` `
https://developer.android.com/reference/android/view/View#invalidate(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect dirty)
`

*This method was deprecated
in API level 28.
The switch to hardware accelerated rendering in API 14 reduced
the importance of the dirty rectangle. In API 21 the given rectangle is
ignored entirely in favor of an internally-calculated area instead.
Because of this, clients are encouraged to just call `https://developer.android.com/reference/android/view/View#invalidate()`.*


`


void` `
https://developer.android.com/reference/android/view/View#invalidate(int,%20int,%20int,%20int)(int l, int t, int r, int b)
`

*This method was deprecated
in API level 28.
The switch to hardware accelerated rendering in API 14 reduced
the importance of the dirty rectangle. In API 21 the given rectangle is
ignored entirely in favor of an internally-calculated area instead.
Because of this, clients are encouraged to just call `https://developer.android.com/reference/android/view/View#invalidate()`.*


`


void` `
https://developer.android.com/reference/android/view/View#invalidateDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable drawable)
`

Invalidates the specified Drawable.


`


void` `
https://developer.android.com/reference/android/view/View#invalidateOutline()()
`

Called to rebuild this View's Outline from its `https://developer.android.com/reference/android/view/ViewOutlineProvider`


`


boolean` `
https://developer.android.com/reference/android/view/View#isAccessibilityDataSensitive()()
`

Whether this view should restrict accessibility service access only to services that have the
`https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property
set to true.


`


boolean` `
https://developer.android.com/reference/android/view/View#isAccessibilityFocused()()
`

Returns whether this View is accessibility focused.


`


boolean` `
https://developer.android.com/reference/android/view/View#isAccessibilityHeading()()
`

Gets whether this view is a heading for accessibility purposes.


`


boolean` `
https://developer.android.com/reference/android/view/View#isActivated()()
`

Indicates the activation state of this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#isAttachedToWindow()()
`

Returns true if this view is currently attached to a window.


`


boolean` `
https://developer.android.com/reference/android/view/View#isAutoHandwritingEnabled()()
`

Return whether the View allows automatic handwriting initiation.


`


boolean` `
https://developer.android.com/reference/android/view/View#isClickable()()
`

Indicates whether this view reacts to click events or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#isContentCaptureSelfReportingEnabled()()
`

Returns whether this View automatically reports its lifecycle events and layout bounds
to the Content Capture Version 2.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isContentSensitive()()
`

Returns whether this view displays sensitive content, based
on the value explicitly set by `https://developer.android.com/reference/android/view/View#setContentSensitivity(int)`.


`


boolean` `
https://developer.android.com/reference/android/view/View#isContextClickable()()
`

Indicates whether this view reacts to context clicks or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#isCredential()()
`

*This method was deprecated
in API level 37.
The `https://developer.android.com/reference/android/view/View#isCredential()` is no longer used by the system and is not
recommended for use by apps. The purpose and usage expectations of this property were
never clearly defined.*


`


boolean` `
https://developer.android.com/reference/android/view/View#isDirty()()
`

True if this view has changed since the last time being drawn.


`


boolean` `
https://developer.android.com/reference/android/view/View#isDrawingCacheEnabled()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


boolean` `
https://developer.android.com/reference/android/view/View#isDuplicateParentStateEnabled()()
`

<br />

Indicates whether this duplicates its drawable state from its parent.


`


boolean` `
https://developer.android.com/reference/android/view/View#isEnabled()()
`

Returns the enabled status for this view.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isFocusable()()
`

Returns whether this View is currently able to take focus.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isFocusableInTouchMode()()
`

When a view is focusable, it may not want to take focus when in touch mode.


`


boolean` `
https://developer.android.com/reference/android/view/View#isFocused()()
`

Returns true if this view has focus


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isFocusedByDefault()()
`

Returns whether this View should receive focus when the focus is restored for the view
hierarchy containing this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#isForceDarkAllowed()()
`

See `https://developer.android.com/reference/android/view/View#setForceDarkAllowed(boolean)`


`


boolean` `
https://developer.android.com/reference/android/view/View#isHandwritingDelegate()()
`

Returns whether this view has been set as a handwriting delegate by `https://developer.android.com/reference/android/view/View#setIsHandwritingDelegate(boolean)`.


`


boolean` `
https://developer.android.com/reference/android/view/View#isHapticFeedbackEnabled()()
` `


boolean` `
https://developer.android.com/reference/android/view/View#isHardwareAccelerated()()
`

<br />

Indicates whether this view is attached to a hardware accelerated
window or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#isHorizontalFadingEdgeEnabled()()
`

<br />

Indicate whether the horizontal edges are faded when the view is
scrolled horizontally.


`


boolean` `
https://developer.android.com/reference/android/view/View#isHorizontalScrollBarEnabled()()
`

<br />

Indicate whether the horizontal scrollbar should be drawn or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#isHovered()()
`

Returns true if the view is currently hovered.


`


boolean` `
https://developer.android.com/reference/android/view/View#isImportantForAccessibility()()
`

Computes whether this view should be exposed for accessibility.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isImportantForAutofill()()
`

Hints the Android System whether the `https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode`
associated with this view is considered important for autofill purposes.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isImportantForContentCapture()()
`

Hints the Android System whether this view is considered important for content capture, based
on the value explicitly set by `https://developer.android.com/reference/android/view/View#setImportantForContentCapture(int)` and heuristics
when it's `https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO`.


`


boolean` `
https://developer.android.com/reference/android/view/View#isInEditMode()()
`

Indicates whether this View is currently in edit mode.


`


boolean` `
https://developer.android.com/reference/android/view/View#isInLayout()()
`

Returns whether the view hierarchy is currently undergoing a layout pass.


`


boolean` `
https://developer.android.com/reference/android/view/View#isInTouchMode()()
`

Returns the touch mode state associated with this view.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isKeyboardNavigationCluster()()
`

Returns whether this View is a root of a keyboard navigation cluster.


`


boolean` `
https://developer.android.com/reference/android/view/View#isLaidOut()()
`

Returns true if this view has been through at least one layout since it
was last attached to or detached from a window.


`


boolean` `
https://developer.android.com/reference/android/view/View#isLayoutDirectionResolved()()
` `


boolean` `
https://developer.android.com/reference/android/view/View#isLayoutRequested()()
`

<br />

Indicates whether or not this view's layout will be requested during
the next hierarchy layout pass.


`


boolean` `
https://developer.android.com/reference/android/view/View#isLongClickable()()
`

Indicates whether this view reacts to long click events or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#isNestedScrollingEnabled()()
`

Returns true if nested scrolling is enabled for this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#isOpaque()()
`

Indicates whether this View is opaque.


`


boolean` `
https://developer.android.com/reference/android/view/View#isPaddingOffsetRequired()()
`

If the View draws content inside its padding and enables fading edges,
it needs to support padding offsets.


`


boolean` `
https://developer.android.com/reference/android/view/View#isPaddingRelative()()
`

Return if the padding has been set through relative values
`https://developer.android.com/reference/android/view/View#setPaddingRelative(int,%20int,%20int,%20int)` or through


`


boolean` `
https://developer.android.com/reference/android/view/View#isPivotSet()()
`

Returns whether or not a pivot has been set by a call to `https://developer.android.com/reference/android/view/View#setPivotX(float)` or
`https://developer.android.com/reference/android/view/View#setPivotY(float)`.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isPreferKeepClear()()
`

Retrieve the preference for this view to be kept clear.


`


boolean` `
https://developer.android.com/reference/android/view/View#isPressed()()
`

Indicates whether the view is currently in pressed state.


`


boolean` `
https://developer.android.com/reference/android/view/View#isSaveEnabled()()
`

Indicates whether this view will save its state (that is,
whether its `https://developer.android.com/reference/android/view/View#onSaveInstanceState()` method will be called).


`


boolean` `
https://developer.android.com/reference/android/view/View#isSaveFromParentEnabled()()
`

Indicates whether the entire hierarchy under this view will save its
state when a state saving traversal occurs from its parent.


`


boolean` `
https://developer.android.com/reference/android/view/View#isScreenReaderFocusable()()
`

Returns whether the view should be treated as a focusable unit by screen reader
accessibility tools.


`


boolean` `
https://developer.android.com/reference/android/view/View#isScrollContainer()()
`

Indicates whether this view is one of the set of scrollable containers in
its window.


`


boolean` `
https://developer.android.com/reference/android/view/View#isScrollbarFadingEnabled()()
`

Returns true if scrollbars will fade when this view is not scrolling


`


boolean` `
https://developer.android.com/reference/android/view/View#isSelected()()
`

Indicates the selection state of this view.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#isShowingLayoutBounds()()
`

Returns `true` when the View is attached and the system developer setting to show
the layout bounds is enabled or `false` otherwise.


`


boolean` `
https://developer.android.com/reference/android/view/View#isShown()()
`

Returns the visibility of this view and all of its ancestors


`


boolean` `
https://developer.android.com/reference/android/view/View#isSoundEffectsEnabled()()
` `


final

boolean` `
https://developer.android.com/reference/android/view/View#isTemporarilyDetached()()
`

Tells whether the `https://developer.android.com/reference/android/view/View` is in the state between `https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()`
and `https://developer.android.com/reference/android/view/View#onFinishTemporaryDetach()`.


`


boolean` `
https://developer.android.com/reference/android/view/View#isTextAlignmentResolved()()
` `


boolean` `
https://developer.android.com/reference/android/view/View#isTextDirectionResolved()()
` `


boolean` `
https://developer.android.com/reference/android/view/View#isVerticalFadingEdgeEnabled()()
`

<br />

Indicate whether the vertical edges are faded when the view is
scrolled horizontally.


`


boolean` `
https://developer.android.com/reference/android/view/View#isVerticalScrollBarEnabled()()
`

<br />

Indicate whether the vertical scrollbar should be drawn or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#isVisibleToUserForAutofill(int)(int virtualId)
`

Computes whether this virtual autofill view is visible to the user.


`


void` `
https://developer.android.com/reference/android/view/View#jumpDrawablesToCurrentState()()
`

Call `https://developer.android.com/reference/android/graphics/drawable/Drawable#jumpToCurrentState()`
on all Drawable objects associated with this view.


`


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/View#keyboardNavigationClusterSearch(android.view.View,%20int)(https://developer.android.com/reference/android/view/View currentCluster, int direction)
`

Find the nearest keyboard navigation cluster in the specified direction.


`


void` `
https://developer.android.com/reference/android/view/View#layout(int,%20int,%20int,%20int)(int l, int t, int r, int b)
`

Assign a size and position to a view and all of its
descendants

This is the second phase of the layout mechanism.


`


final

void` `
https://developer.android.com/reference/android/view/View#measure(int,%20int)(int widthMeasureSpec, int heightMeasureSpec)
`

<br />


This is called to find out how big a view should be.


`


static


int[]` `
https://developer.android.com/reference/android/view/View#mergeDrawableStates(int[],%20int[])(int[] baseState, int[] additionalState)
`

Merge your own state values in <var translate="no">additionalState</var> into the base
state values <var translate="no">baseState</var> that were returned by
`https://developer.android.com/reference/android/view/View#onCreateDrawableState(int)`.


`


void` `
https://developer.android.com/reference/android/view/View#offsetLeftAndRight(int)(int offset)
`

Offset this view's horizontal location by the specified amount of pixels.


`


void` `
https://developer.android.com/reference/android/view/View#offsetTopAndBottom(int)(int offset)
`

Offset this view's vertical location by the specified number of pixels.


`


void` `
https://developer.android.com/reference/android/view/View#onAnimationEnd()()
`

Invoked by a parent ViewGroup to notify the end of the animation
currently associated with this view.


`


void` `
https://developer.android.com/reference/android/view/View#onAnimationStart()()
`

Invoked by a parent ViewGroup to notify the start of the animation
currently associated with this view.


`


https://developer.android.com/reference/android/view/WindowInsets` `
https://developer.android.com/reference/android/view/View#onApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets insets)
`

Called when the view should apply `https://developer.android.com/reference/android/view/WindowInsets` according to its internal policy.


`


void` `
https://developer.android.com/reference/android/view/View#onAttachedToWindow()()
`

This is called when the view is attached to a window.


`


void` `
https://developer.android.com/reference/android/view/View#onCancelPendingInputEvents()()
`

Called as the result of a call to `https://developer.android.com/reference/android/view/View#cancelPendingInputEvents()` on this view or
a parent view.


`


boolean` `
https://developer.android.com/reference/android/view/View#onCapturedPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Implement this method to handle captured pointer events


`


boolean` `
https://developer.android.com/reference/android/view/View#onCheckIsTextEditor()()
`

Check whether the called view is a text editor, in which case it
would make sense to automatically display a soft input window for
it.


`


void` `
https://developer.android.com/reference/android/view/View#onConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration newConfig)
`

Called when the current configuration of the resources being used
by the application have changed.


`


void` `
https://developer.android.com/reference/android/view/View#onCreateContextMenu(android.view.ContextMenu)(https://developer.android.com/reference/android/view/ContextMenu menu)
`

Views should implement this if the view itself is going to add items to
the context menu.


`


int[]` `
https://developer.android.com/reference/android/view/View#onCreateDrawableState(int)(int extraSpace)
`

Generate the new `https://developer.android.com/reference/android/graphics/drawable/Drawable` state for
this view.


`


https://developer.android.com/reference/android/view/inputmethod/InputConnection` `
https://developer.android.com/reference/android/view/View#onCreateInputConnection(android.view.inputmethod.EditorInfo)(https://developer.android.com/reference/android/view/inputmethod/EditorInfo outAttrs)
`

Create a new InputConnection for an InputMethod to interact
with the view.


`


void` `
https://developer.android.com/reference/android/view/View#onCreateViewTranslationRequest(int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)(int[] supportedFormats, https://developer.android.com/reference/java/util/function/Consumer<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest> requestsCollector)
`

Collects a `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest` which represents the content to be translated in
the view.


`


void` `
https://developer.android.com/reference/android/view/View#onCreateVirtualViewTranslationRequests(long[],%20int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)(long[] virtualIds, int[] supportedFormats, https://developer.android.com/reference/java/util/function/Consumer<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest> requestsCollector)
`

Collects `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s which represents the content to be translated
for the virtual views in the host view.


`


void` `
https://developer.android.com/reference/android/view/View#onDetachedFromWindow()()
`

This is called when the view is detached from a window.


`


void` `
https://developer.android.com/reference/android/view/View#onDisplayHint(int)(int hint)
`

Gives this view a hint about whether is displayed or not.


`


boolean` `
https://developer.android.com/reference/android/view/View#onDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent event)
`

Handles drag events sent by the system following a call to
`https://developer.android.com/reference/android/view/View#startDragAndDrop(android.content.ClipData,%20android.view.View.DragShadowBuilder,%20java.lang.Object,%20int)`.


`


void` `
https://developer.android.com/reference/android/view/View#onDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas)
`

Implement this to do your drawing.


`


void` `
https://developer.android.com/reference/android/view/View#onDrawForeground(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas)
`

Draw any foreground content for this view.


`


final

void` `
https://developer.android.com/reference/android/view/View#onDrawScrollBars(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas canvas)
`

<br />

Request the drawing of the horizontal and the vertical scrollbar.


`


boolean` `
https://developer.android.com/reference/android/view/View#onFilterTouchEventForSecurity(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Filter the touch event to apply security policies.


`


void` `
https://developer.android.com/reference/android/view/View#onFinishInflate()()
`

Finalize inflating a view from XML.


`


void` `
https://developer.android.com/reference/android/view/View#onFinishTemporaryDetach()()
`

Called after `https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()` when the container is done
changing the view.


`


void` `
https://developer.android.com/reference/android/view/View#onFocusChanged(boolean,%20int,%20android.graphics.Rect)(boolean gainFocus, int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect)
`

Called by the view system when the focus state of this view changes.


`


boolean` `
https://developer.android.com/reference/android/view/View#onGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Implement this method to handle generic motion events.


`


void` `
https://developer.android.com/reference/android/view/View#onHoverChanged(boolean)(boolean hovered)
`

Implement this method to handle hover state changes.


`


boolean` `
https://developer.android.com/reference/android/view/View#onHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Implement this method to handle hover events.


`


void` `
https://developer.android.com/reference/android/view/View#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Initializes an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` with information about
this View which is the event source.


`


void` `
https://developer.android.com/reference/android/view/View#onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo)(https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo info)
`

Initializes an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` with information about this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#onKeyDown(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyDown(int,%20android.view.KeyEvent)`: perform press of the view
when `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER` or `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_ENTER`
is released, if the view is enabled and clickable.


`


boolean` `
https://developer.android.com/reference/android/view/View#onKeyLongPress(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyLongPress(int,%20android.view.KeyEvent)`: always returns false (doesn't handle
the event).


`


boolean` `
https://developer.android.com/reference/android/view/View#onKeyMultiple(int,%20int,%20android.view.KeyEvent)(int keyCode, int repeatCount, https://developer.android.com/reference/android/view/KeyEvent event)
`

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)`: always returns false (doesn't handle
the event).


`


boolean` `
https://developer.android.com/reference/android/view/View#onKeyPreIme(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Handle a key event before it is processed by any input method
associated with the view hierarchy.


`


boolean` `
https://developer.android.com/reference/android/view/View#onKeyShortcut(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Called on the focused view when a key shortcut event is not handled.


`


boolean` `
https://developer.android.com/reference/android/view/View#onKeyUp(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyUp(int,%20android.view.KeyEvent)`: perform clicking of the view
when `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER`, `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_ENTER`
or `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_SPACE` is released.


`


void` `
https://developer.android.com/reference/android/view/View#onLayout(boolean,%20int,%20int,%20int,%20int)(boolean changed, int left, int top, int right, int bottom)
`

Called from layout when this view should
assign a size and position to each of its children.


`


void` `
https://developer.android.com/reference/android/view/View#onMeasure(int,%20int)(int widthMeasureSpec, int heightMeasureSpec)
`

<br />


Measure the view and its content to determine the measured width and the
measured height.


`


void` `
https://developer.android.com/reference/android/view/View#onOverScrolled(int,%20int,%20boolean,%20boolean)(int scrollX, int scrollY, boolean clampedX, boolean clampedY)
`

Called by `https://developer.android.com/reference/android/view/View#overScrollBy(int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20boolean)` to
respond to the results of an over-scroll operation.


`


void` `
https://developer.android.com/reference/android/view/View#onPointerCaptureChange(boolean)(boolean hasCapture)
`

Called when the window has just acquired or lost pointer capture.


`


void` `
https://developer.android.com/reference/android/view/View#onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Called from `https://developer.android.com/reference/android/view/View#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)`
giving a chance to this View to populate the accessibility event with its
text content.


`


void` `
https://developer.android.com/reference/android/view/View#onProvideAutofillStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags)
`

Populates a `https://developer.android.com/reference/android/view/ViewStructure` to fullfil an autofill request.


`


void` `
https://developer.android.com/reference/android/view/View#onProvideAutofillVirtualStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags)
`

Populates a `https://developer.android.com/reference/android/view/ViewStructure` containing virtual children to fullfil an autofill
request.


`


void` `
https://developer.android.com/reference/android/view/View#onProvideContentCaptureNodeProperties(android.view.contentcapture.ContentCaptureNodeProperties)(https://developer.android.com/reference/android/view/contentcapture/ContentCaptureNodeProperties properties)
`

Populates the properties of this `https://developer.android.com/reference/android/view/View` for Content Capture version 2.


`


void` `
https://developer.android.com/reference/android/view/View#onProvideContentCaptureStructure(android.view.ViewStructure,%20int)(https://developer.android.com/reference/android/view/ViewStructure structure, int flags)
`

Populates a `https://developer.android.com/reference/android/view/ViewStructure` for content capture.


`


void` `
https://developer.android.com/reference/android/view/View#onProvideStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure structure)
`

Called when assist structure is being retrieved from a view as part of
`https://developer.android.com/reference/android/app/Activity#onProvideAssistData(android.os.Bundle)`.


`


void` `
https://developer.android.com/reference/android/view/View#onProvideVirtualStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure structure)
`

Called when assist structure is being retrieved from a view as part of
`https://developer.android.com/reference/android/app/Activity#onProvideAssistData(android.os.Bundle)` to
generate additional virtual structure under this view.


`


https://developer.android.com/reference/android/view/ContentInfo` `
https://developer.android.com/reference/android/view/View#onReceiveContent(android.view.ContentInfo)(https://developer.android.com/reference/android/view/ContentInfo payload)
`

Implements the default behavior for receiving content for this type of view.


`


https://developer.android.com/reference/android/view/PointerIcon` `
https://developer.android.com/reference/android/view/View#onResolvePointerIcon(android.view.MotionEvent,%20int)(https://developer.android.com/reference/android/view/MotionEvent event, int pointerIndex)
`

Resolve the pointer icon that should be used for specified pointer in the motion event.


`


void` `
https://developer.android.com/reference/android/view/View#onRestoreInstanceState(android.os.Parcelable)(https://developer.android.com/reference/android/os/Parcelable state)
`

Hook allowing a view to re-apply a representation of its internal state that had previously
been generated by `https://developer.android.com/reference/android/view/View#onSaveInstanceState()`.


`


void` `
https://developer.android.com/reference/android/view/View#onRtlPropertiesChanged(int)(int layoutDirection)
`

Called when any RTL property (layout direction or text direction or text alignment) has
been changed.


`


https://developer.android.com/reference/android/os/Parcelable` `
https://developer.android.com/reference/android/view/View#onSaveInstanceState()()
`

Hook allowing a view to generate a representation of its internal state
that can later be used to create a new instance with that same state.


`


void` `
https://developer.android.com/reference/android/view/View#onScreenStateChanged(int)(int screenState)
`

This method is called whenever the state of the screen this view is
attached to changes.


`


void` `
https://developer.android.com/reference/android/view/View#onScrollCaptureSearch(android.graphics.Rect,%20android.graphics.Point,%20java.util.function.Consumer<android.view.ScrollCaptureTarget>)(https://developer.android.com/reference/android/graphics/Rect localVisibleRect, https://developer.android.com/reference/android/graphics/Point windowOffset, https://developer.android.com/reference/java/util/function/Consumer<https://developer.android.com/reference/android/view/ScrollCaptureTarget> targets)
`

Called when scroll capture is requested, to search for appropriate content to scroll.


`


void` `
https://developer.android.com/reference/android/view/View#onScrollChanged(int,%20int,%20int,%20int)(int l, int t, int oldl, int oldt)
`

This is called in response to an internal scroll in this view (i.e., the
view scrolled its own contents).


`


boolean` `
https://developer.android.com/reference/android/view/View#onSetAlpha(int)(int alpha)
`

Invoked if there is a Transform that involves alpha.


`


void` `
https://developer.android.com/reference/android/view/View#onSizeChanged(int,%20int,%20int,%20int)(int w, int h, int oldw, int oldh)
`

This is called during layout when the size of this view has changed.


`


void` `
https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()()
`

This is called when a container is going to temporarily detach a child, with
`https://developer.android.com/reference/android/view/ViewGroup#detachViewFromParent(android.view.View)`.


`


boolean` `
https://developer.android.com/reference/android/view/View#onTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Implement this method to handle pointer events.


`


boolean` `
https://developer.android.com/reference/android/view/View#onTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Implement this method to handle trackball motion events.


`


void` `
https://developer.android.com/reference/android/view/View#onViewTranslationResponse(android.view.translation.ViewTranslationResponse)(https://developer.android.com/reference/android/view/translation/ViewTranslationResponse response)
`

Called when the content from `https://developer.android.com/reference/android/view/View#onCreateViewTranslationRequest(int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)` had been translated
by the TranslationService.


`


void` `
https://developer.android.com/reference/android/view/View#onVirtualViewTranslationResponses(android.util.LongSparseArray<android.view.translation.ViewTranslationResponse>)(https://developer.android.com/reference/android/util/LongSparseArray<https://developer.android.com/reference/android/view/translation/ViewTranslationResponse> response)
`

Called when the content from `https://developer.android.com/reference/android/view/View#onCreateVirtualViewTranslationRequests(long[],%20int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)` had been
translated by the TranslationService.


`


void` `
https://developer.android.com/reference/android/view/View#onVisibilityAggregated(boolean)(boolean isVisible)
`

Called when the user-visibility of this View is potentially affected by a change
to this view itself, an ancestor view or the window this view is attached to.


`


void` `
https://developer.android.com/reference/android/view/View#onVisibilityChanged(android.view.View,%20int)(https://developer.android.com/reference/android/view/View changedView, int visibility)
`

Called when the visibility of the view or an ancestor of the view has
changed.


`


void` `
https://developer.android.com/reference/android/view/View#onWindowFocusChanged(boolean)(boolean hasWindowFocus)
`

Called when the window containing this view gains or loses focus.


`


void` `
https://developer.android.com/reference/android/view/View#onWindowSystemUiVisibilityChanged(int)(int visible)
`

*This method was deprecated
in API level 30.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`


void` `
https://developer.android.com/reference/android/view/View#onWindowVisibilityChanged(int)(int visibility)
`

Called when the window containing has change its visibility
(between `https://developer.android.com/reference/android/view/View#GONE`, `https://developer.android.com/reference/android/view/View#INVISIBLE`, and `https://developer.android.com/reference/android/view/View#VISIBLE`).


`


boolean` `
https://developer.android.com/reference/android/view/View#overScrollBy(int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20boolean)(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent)
`

Scroll the view with standard behavior for scrolling beyond the normal
content boundaries.


`


boolean` `
https://developer.android.com/reference/android/view/View#performAccessibilityAction(int,%20android.os.Bundle)(int action, https://developer.android.com/reference/android/os/Bundle arguments)
`

Performs the specified accessibility action on the view.


`


boolean` `
https://developer.android.com/reference/android/view/View#performClick()()
`

Call this view's OnClickListener, if it is defined.


`


boolean` `
https://developer.android.com/reference/android/view/View#performContextClick(float,%20float)(float x, float y)
`

Call this view's OnContextClickListener, if it is defined.


`


boolean` `
https://developer.android.com/reference/android/view/View#performContextClick()()
`

Call this view's OnContextClickListener, if it is defined.


`


boolean` `
https://developer.android.com/reference/android/view/View#performHapticFeedback(int)(int feedbackConstant)
`

BZZZTT!!1!

Provide haptic feedback to the user for this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#performHapticFeedback(android.os.vibrator.HapticFeedbackRequest)(https://developer.android.com/reference/android/os/vibrator/HapticFeedbackRequest request)
`

<br />

Like `https://developer.android.com/reference/android/view/View#performHapticFeedback(int,%20int)`, but takes a `https://developer.android.com/reference/android/os/vibrator/HapticFeedbackRequest`.


`


boolean` `
https://developer.android.com/reference/android/view/View#performHapticFeedback(int,%20int)(int feedbackConstant, int flags)
`

BZZZTT!!1!

Like `https://developer.android.com/reference/android/view/View#performHapticFeedback(int)`, with additional options.


`


boolean` `
https://developer.android.com/reference/android/view/View#performLongClick(float,%20float)(float x, float y)
`

Calls this view's OnLongClickListener, if it is defined.


`


boolean` `
https://developer.android.com/reference/android/view/View#performLongClick()()
`

Calls this view's OnLongClickListener, if it is defined.


`


https://developer.android.com/reference/android/view/ContentInfo` `
https://developer.android.com/reference/android/view/View#performReceiveContent(android.view.ContentInfo)(https://developer.android.com/reference/android/view/ContentInfo payload)
`

Receives the given content.


`


void` `
https://developer.android.com/reference/android/view/View#playSoundEffect(int)(int soundConstant)
`

Play a sound effect for this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#post(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable action)
`

<br />

Causes the Runnable to be added to the message queue.


`


boolean` `
https://developer.android.com/reference/android/view/View#postDelayed(java.lang.Runnable,%20long)(https://developer.android.com/reference/java/lang/Runnable action, long delayMillis)
`

<br />

Causes the Runnable to be added to the message queue, to be run
after the specified amount of time elapses.


`


void` `
https://developer.android.com/reference/android/view/View#postInvalidate()()
`

<br />

Cause an invalidate to happen on a subsequent cycle through the event loop.


`


void` `
https://developer.android.com/reference/android/view/View#postInvalidate(int,%20int,%20int,%20int)(int left, int top, int right, int bottom)
`

<br />

Cause an invalidate of the specified area to happen on a subsequent cycle
through the event loop.


`


void` `
https://developer.android.com/reference/android/view/View#postInvalidateDelayed(long,%20int,%20int,%20int,%20int)(long delayMilliseconds, int left, int top, int right, int bottom)
`

<br />

Cause an invalidate of the specified area to happen on a subsequent cycle
through the event loop.


`


void` `
https://developer.android.com/reference/android/view/View#postInvalidateDelayed(long)(long delayMilliseconds)
`

<br />

Cause an invalidate to happen on a subsequent cycle through the event
loop.


`


void` `
https://developer.android.com/reference/android/view/View#postInvalidateOnAnimation(int,%20int,%20int,%20int)(int left, int top, int right, int bottom)
`

<br />

Cause an invalidate of the specified area to happen on the next animation
time step, typically the next display frame.


`


void` `
https://developer.android.com/reference/android/view/View#postInvalidateOnAnimation()()
`

<br />

Cause an invalidate to happen on the next animation time step, typically the
next display frame.


`


void` `
https://developer.android.com/reference/android/view/View#postOnAnimation(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable action)
`

<br />

Causes the Runnable to execute on the next animation time step.


`


void` `
https://developer.android.com/reference/android/view/View#postOnAnimationDelayed(java.lang.Runnable,%20long)(https://developer.android.com/reference/java/lang/Runnable action, long delayMillis)
`

<br />

Causes the Runnable to execute on the next animation time step,
after the specified amount of time elapses.


`


void` `
https://developer.android.com/reference/android/view/View#refreshDrawableState()()
`

Call this to force a view to update its drawable state.


`


static


void` `
https://developer.android.com/reference/android/view/View#registerCalledFromWrongThreadListener(android.view.View.CalledFromWrongThreadListener)(https://developer.android.com/reference/android/view/View.CalledFromWrongThreadListener listener)
`

Registers a listener that is notified when a View API is called from the wrong thread.


`


void` `
https://developer.android.com/reference/android/view/View#releasePointerCapture()()
`

Releases the pointer capture.


`


boolean` `
https://developer.android.com/reference/android/view/View#removeCallbacks(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable action)
`

<br />

Removes the specified Runnable from the message queue.


`


void` `
https://developer.android.com/reference/android/view/View#removeOnAttachStateChangeListener(android.view.View.OnAttachStateChangeListener)(https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener listener)
`

Remove a listener for attach state changes.


`


void` `
https://developer.android.com/reference/android/view/View#removeOnLayoutChangeListener(android.view.View.OnLayoutChangeListener)(https://developer.android.com/reference/android/view/View.OnLayoutChangeListener listener)
`

Remove a listener for layout changes.


`


void` `
https://developer.android.com/reference/android/view/View#removeOnUnhandledKeyEventListener(android.view.View.OnUnhandledKeyEventListener)(https://developer.android.com/reference/android/view/View.OnUnhandledKeyEventListener listener)
`

Removes a listener which will receive unhandled `https://developer.android.com/reference/android/view/KeyEvent`s.


`


void` `
https://developer.android.com/reference/android/view/View#reportAppJankStats(android.app.jank.AppJankStats)(https://developer.android.com/reference/android/app/jank/AppJankStats appJankStats)
`

Called from apps when they want to report jank stats to the system.


`


void` `
https://developer.android.com/reference/android/view/View#requestApplyInsets()()
`

Ask that a new dispatch of `https://developer.android.com/reference/android/view/View#onApplyWindowInsets(android.view.WindowInsets)` be performed.


`


void` `
https://developer.android.com/reference/android/view/View#requestFitSystemWindows()()
`

*This method was deprecated
in API level 20.
Use `https://developer.android.com/reference/android/view/View#requestApplyInsets()` for newer platform versions.*


`


final

boolean` `
https://developer.android.com/reference/android/view/View#requestFocus(int)(int direction)
`

Call this to try to give focus to a specific view or to one of its
descendants and give it a hint about what direction focus is heading.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#requestFocus()()
`

Call this to try to give focus to a specific view or to one of its
descendants.


`


boolean` `
https://developer.android.com/reference/android/view/View#requestFocus(int,%20android.graphics.Rect)(int direction, https://developer.android.com/reference/android/graphics/Rect previouslyFocusedRect)
`

Call this to try to give focus to a specific view or to one of its descendants
and give it hints about the direction and a specific rectangle that the focus
is coming from.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#requestFocusFromTouch()()
`

Call this to try to give focus to a specific view or to one of its descendants.


`


void` `
https://developer.android.com/reference/android/view/View#requestLayout()()
`

Call this when something has changed which has invalidated the
layout of this view.


`


void` `
https://developer.android.com/reference/android/view/View#requestPointerCapture()()
`

Requests pointer capture in
relative mode.


`


void` `
https://developer.android.com/reference/android/view/View#requestPointerCapture(int)(int mode)
`

Requests pointer capture in the specified mode.


`


boolean` `
https://developer.android.com/reference/android/view/View#requestRectangleOnScreen(android.graphics.Rect,%20boolean,%20int)(https://developer.android.com/reference/android/graphics/Rect rectangle, boolean immediate, int source)
`

Request that a rectangle of this view be visible on the screen,
scrolling if necessary just enough.


`


boolean` `
https://developer.android.com/reference/android/view/View#requestRectangleOnScreen(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect rectangle)
`

Request that a rectangle of this view be visible on the screen,
scrolling if necessary just enough.


`


boolean` `
https://developer.android.com/reference/android/view/View#requestRectangleOnScreen(android.graphics.Rect,%20boolean)(https://developer.android.com/reference/android/graphics/Rect rectangle, boolean immediate)
`

Request that a rectangle of this view be visible on the screen,
scrolling if necessary just enough.


`


final

void` `
https://developer.android.com/reference/android/view/View#requestUnbufferedDispatch(int)(int source)
`

Request unbuffered dispatch of the given event source class to this view.


`


final

void` `
https://developer.android.com/reference/android/view/View#requestUnbufferedDispatch(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent event)
`

Request unbuffered dispatch of the given stream of MotionEvents to this View.


`


final
<T extends https://developer.android.com/reference/android/view/View>
T` `
https://developer.android.com/reference/android/view/View#requireViewById(int)(int id)
`

Finds the first descendant view with the given ID, the view itself if the ID matches
`https://developer.android.com/reference/android/view/View#getId()`, or throws an IllegalArgumentException if the ID is invalid or there is no
matching view in the hierarchy.


`


void` `
https://developer.android.com/reference/android/view/View#resetPivot()()
`

Clears any pivot previously set by a call to `https://developer.android.com/reference/android/view/View#setPivotX(float)` or
`https://developer.android.com/reference/android/view/View#setPivotY(float)`.


`


static


int` `
https://developer.android.com/reference/android/view/View#resolveSize(int,%20int)(int size, int measureSpec)
`

Version of `https://developer.android.com/reference/android/view/View#resolveSizeAndState(int,%20int,%20int)`
returning only the `https://developer.android.com/reference/android/view/View#MEASURED_SIZE_MASK` bits of the result.


`


static


int` `
https://developer.android.com/reference/android/view/View#resolveSizeAndState(int,%20int,%20int)(int size, int measureSpec, int childMeasuredState)
`

Utility to reconcile a desired size and state, with constraints imposed
by a MeasureSpec.


`


boolean` `
https://developer.android.com/reference/android/view/View#restoreDefaultFocus()()
`

Gives focus to the default-focus view in the view hierarchy that has this view as a root.


`


void` `
https://developer.android.com/reference/android/view/View#restoreHierarchyState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Restore this view hierarchy's frozen state from the given container.


`


final

void` `
https://developer.android.com/reference/android/view/View#saveAttributeDataForStyleable(android.content.Context,%20int[],%20android.util.AttributeSet,%20android.content.res.TypedArray,%20int,%20int)(https://developer.android.com/reference/android/content/Context context, int[] styleable, https://developer.android.com/reference/android/util/AttributeSet attrs, https://developer.android.com/reference/android/content/res/TypedArray t, int defStyleAttr, int defStyleRes)
`

Stores debugging information about attributes.


`


void` `
https://developer.android.com/reference/android/view/View#saveHierarchyState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray<https://developer.android.com/reference/android/os/Parcelable> container)
`

Store this view hierarchy's frozen state into the given container.


`


void` `
https://developer.android.com/reference/android/view/View#scheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable,%20long)(https://developer.android.com/reference/android/graphics/drawable/Drawable who, https://developer.android.com/reference/java/lang/Runnable what, long when)
`

Schedules an action on a drawable to occur at a specified time.


`


void` `
https://developer.android.com/reference/android/view/View#scrollBy(int,%20int)(int x, int y)
`

Move the scrolled position of your view.


`


void` `
https://developer.android.com/reference/android/view/View#scrollTo(int,%20int)(int x, int y)
`

Set the scrolled position of your view.


`


void` `
https://developer.android.com/reference/android/view/View#sendAccessibilityEvent(int)(int eventType)
`

Sends an accessibility event of the given type.


`


void` `
https://developer.android.com/reference/android/view/View#sendAccessibilityEventUnchecked(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

This method behaves exactly as `https://developer.android.com/reference/android/view/View#sendAccessibilityEvent(int)` but
takes as an argument an empty `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` and does not
perform a check whether accessibility is enabled.


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityDataSensitive(int)(int accessibilityDataSensitive)
`

Specifies whether this view should only allow interactions from
`https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s with the
`https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property
set to true.


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityDelegate(android.view.View.AccessibilityDelegate)(https://developer.android.com/reference/android/view/View.AccessibilityDelegate delegate)
`

Sets a delegate for implementing accessibility support via composition
(as opposed to inheritance).


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityHeading(boolean)(boolean isHeading)
`

Set if view is a heading for a section of content for accessibility purposes.


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityLiveRegion(int)(int mode)
`

Sets the live region mode for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityPaneTitle(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence accessibilityPaneTitle)
`

Visually distinct portion of a window with window-like semantics are considered panes for
accessibility purposes.


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityTraversalAfter(int)(int afterId)
`

Sets the id of a view that screen readers are requested to visit before this view.


`


void` `
https://developer.android.com/reference/android/view/View#setAccessibilityTraversalBefore(int)(int beforeId)
`

Sets the id of a view that screen readers are requested to visit after this view.


`


void` `
https://developer.android.com/reference/android/view/View#setActivated(boolean)(boolean activated)
`

Changes the activated state of this view.


`


void` `
https://developer.android.com/reference/android/view/View#setAllowClickWhenDisabled(boolean)(boolean clickableWhenDisabled)
`

Enables or disables click events for this view when disabled.


`


void` `
https://developer.android.com/reference/android/view/View#setAllowedHandwritingDelegatePackage(java.lang.String)(https://developer.android.com/reference/java/lang/String allowedPackageName)
`

Specifies that this view may act as a handwriting initiation delegator for a delegate editor
view from the specified package.


`


void` `
https://developer.android.com/reference/android/view/View#setAllowedHandwritingDelegatorPackage(java.lang.String)(https://developer.android.com/reference/java/lang/String allowedPackageName)
`

Specifies that a view from the specified package may act as a handwriting delegator for this
delegate editor view.


`


void` `
https://developer.android.com/reference/android/view/View#setAlpha(float)(float alpha)
`

Sets the opacity of the view to a value from 0 to 1, where 0 means the view is
completely transparent and 1 means the view is completely opaque.


`


void` `
https://developer.android.com/reference/android/view/View#setAnimation(android.view.animation.Animation)(https://developer.android.com/reference/android/view/animation/Animation animation)
`

Sets the next animation to play for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setAnimationMatrix(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix matrix)
`

Changes the transformation matrix on the view.


`


void` `
https://developer.android.com/reference/android/view/View#setAutoHandwritingEnabled(boolean)(boolean enabled)
`

Set whether this view enables automatic handwriting initiation.


`


void` `
https://developer.android.com/reference/android/view/View#setAutofillHints(java.lang.String[])(https://developer.android.com/reference/java/lang/String autofillHints)
`

Sets the hints that help an `https://developer.android.com/reference/android/service/autofill/AutofillService` determine how
to autofill the view with the user's data.


`


void` `
https://developer.android.com/reference/android/view/View#setAutofillId(android.view.autofill.AutofillId)(https://developer.android.com/reference/android/view/autofill/AutofillId id)
`

Sets the unique, logical identifier of this view in the activity, for autofill purposes.


`


void` `
https://developer.android.com/reference/android/view/View#setBackdropRenderEffect(android.graphics.RenderEffect)(https://developer.android.com/reference/android/graphics/RenderEffect renderEffect)
`

Configure the `https://developer.android.com/reference/android/graphics/RenderEffect` to apply to the backdrop contents of this
View.


`


void` `
https://developer.android.com/reference/android/view/View#setBackground(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable background)
`

Set the background to a given Drawable, or remove the background.


`


void` `
https://developer.android.com/reference/android/view/View#setBackgroundColor(int)(int color)
`

Sets the background color for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setBackgroundDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable background)
`

*This method was deprecated
in API level 16.
use `https://developer.android.com/reference/android/view/View#setBackground(android.graphics.drawable.Drawable)` instead*


`


void` `
https://developer.android.com/reference/android/view/View#setBackgroundResource(int)(int resid)
`

Set the background to a given resource.


`


void` `
https://developer.android.com/reference/android/view/View#setBackgroundTintBlendMode(android.graphics.BlendMode)(https://developer.android.com/reference/android/graphics/BlendMode blendMode)
`

Specifies the blending mode used to apply the tint specified by
`https://developer.android.com/reference/android/view/View#setBackgroundTintList(android.content.res.ColorStateList)`} to the background
drawable.


`


void` `
https://developer.android.com/reference/android/view/View#setBackgroundTintList(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList tint)
`

Applies a tint to the background drawable.


`


void` `
https://developer.android.com/reference/android/view/View#setBackgroundTintMode(android.graphics.PorterDuff.Mode)(https://developer.android.com/reference/android/graphics/PorterDuff.Mode tintMode)
`

Specifies the blending mode used to apply the tint specified by
`https://developer.android.com/reference/android/view/View#setBackgroundTintList(android.content.res.ColorStateList)`} to the background
drawable.


`


final

void` `
https://developer.android.com/reference/android/view/View#setBottom(int)(int bottom)
`

Sets the bottom position of this view relative to its parent.


`


void` `
https://developer.android.com/reference/android/view/View#setCameraDistance(float)(float distance)
`

<br />

Sets the distance along the Z axis (orthogonal to the X/Y plane on which
views are drawn) from the camera to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setClickable(boolean)(boolean clickable)
`

Enables or disables click events for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setClipBounds(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect clipBounds)
`

Sets a rectangular area on this view to which the view will be clipped
when it is drawn.


`


void` `
https://developer.android.com/reference/android/view/View#setClipToOutline(boolean)(boolean clipToOutline)
`

Sets whether the View's Outline should be used to clip the contents of the View.


`


void` `
https://developer.android.com/reference/android/view/View#setContentCaptureSession(android.view.contentcapture.ContentCaptureSession)(https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession contentCaptureSession)
`

Sets the (optional) `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession` associated with this view.


`


void` `
https://developer.android.com/reference/android/view/View#setContentDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence contentDescription)
`

Sets the `https://developer.android.com/reference/android/view/View`'s content description.


`


final

void` `
https://developer.android.com/reference/android/view/View#setContentSensitivity(int)(int mode)
`

Sets content sensitivity mode to determine whether this view displays sensitive content
(e.g. username, password etc.).


`


void` `
https://developer.android.com/reference/android/view/View#setContextClickable(boolean)(boolean contextClickable)
`

Enables or disables context clicking for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setDefaultFocusHighlightEnabled(boolean)(boolean defaultFocusHighlightEnabled)
`

Sets whether this View should use a default focus highlight when it gets focused but doesn't
have `https://developer.android.com/reference/android/R.attr#state_focused` defined in its background.


`


void` `
https://developer.android.com/reference/android/view/View#setDrawingCacheBackgroundColor(int)(int color)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#setDrawingCacheEnabled(boolean)(boolean enabled)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#setDrawingCacheQuality(int)(int quality)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#setDuplicateParentStateEnabled(boolean)(boolean enabled)
`

<br />

Enables or disables the duplication of the parent's state into this view.


`


void` `
https://developer.android.com/reference/android/view/View#setElevation(float)(float elevation)
`

Sets the base elevation of this view, in pixels.


`


void` `
https://developer.android.com/reference/android/view/View#setEnabled(boolean)(boolean enabled)
`

Set the enabled state of this view.


`


void` `
https://developer.android.com/reference/android/view/View#setFadingEdgeLength(int)(int length)
`

Set the size of the faded edge used to indicate that more content in this
view is available.


`


void` `
https://developer.android.com/reference/android/view/View#setFilterTouchesWhenObscured(boolean)(boolean enabled)
`

Sets whether the framework should discard touches when the view's
window is obscured by another visible window at the touched location.


`


void` `
https://developer.android.com/reference/android/view/View#setFitsSystemWindows(boolean)(boolean fitSystemWindows)
`

Sets whether or not this view should account for system screen decorations
such as the status bar and inset its content; that is, controlling whether
the default implementation of `https://developer.android.com/reference/android/view/View#fitSystemWindows(android.graphics.Rect)` will be
executed.


`


void` `
https://developer.android.com/reference/android/view/View#setFocusable(boolean)(boolean focusable)
`

Set whether this view can receive the focus.


`


void` `
https://developer.android.com/reference/android/view/View#setFocusable(int)(int focusable)
`

Sets whether this view can receive focus.


`


void` `
https://developer.android.com/reference/android/view/View#setFocusableInTouchMode(boolean)(boolean focusableInTouchMode)
`

Set whether this view can receive focus while in touch mode.


`


void` `
https://developer.android.com/reference/android/view/View#setFocusedByDefault(boolean)(boolean isFocusedByDefault)
`

Sets whether this View should receive focus when the focus is restored for the view
hierarchy containing this view.


`


void` `
https://developer.android.com/reference/android/view/View#setForceDarkAllowed(boolean)(boolean allow)
`

Sets whether or not to allow force dark to apply to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setForeground(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable foreground)
`

Supply a Drawable that is to be rendered on top of all of the content in the view.


`


void` `
https://developer.android.com/reference/android/view/View#setForegroundGravity(int)(int gravity)
`

Describes how the foreground is positioned.


`


void` `
https://developer.android.com/reference/android/view/View#setForegroundTintBlendMode(android.graphics.BlendMode)(https://developer.android.com/reference/android/graphics/BlendMode blendMode)
`

Specifies the blending mode used to apply the tint specified by
`https://developer.android.com/reference/android/view/View#setForegroundTintList(android.content.res.ColorStateList)`} to the background
drawable.


`


void` `
https://developer.android.com/reference/android/view/View#setForegroundTintList(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList tint)
`

Applies a tint to the foreground drawable.


`


void` `
https://developer.android.com/reference/android/view/View#setForegroundTintMode(android.graphics.PorterDuff.Mode)(https://developer.android.com/reference/android/graphics/PorterDuff.Mode tintMode)
`

Specifies the blending mode used to apply the tint specified by
`https://developer.android.com/reference/android/view/View#setForegroundTintList(android.content.res.ColorStateList)`} to the background
drawable.


`


void` `
https://developer.android.com/reference/android/view/View#setFrameContentVelocity(float)(float pixelsPerSecond)
`

Set the current velocity of the View, we only track positive value.


`


void` `
https://developer.android.com/reference/android/view/View#setHandwritingBoundsOffsets(float,%20float,%20float,%20float)(float offsetLeft, float offsetTop, float offsetRight, float offsetBottom)
`

Set the amount of offset applied to this view's stylus handwriting bounds.


`


void` `
https://developer.android.com/reference/android/view/View#setHandwritingDelegateFlags(int)(int flags)
`

Sets flags configuring the handwriting delegation behavior for this delegate editor view.


`


void` `
https://developer.android.com/reference/android/view/View#setHandwritingDelegatorCallback(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable callback)
`

Sets a callback which should be called when a stylus `https://developer.android.com/reference/android/view/MotionEvent` occurs within this
view's bounds.


`


void` `
https://developer.android.com/reference/android/view/View#setHapticFeedbackEnabled(boolean)(boolean hapticFeedbackEnabled)
`

Set whether this view should have haptic feedback for events such as
long presses.


`


void` `
https://developer.android.com/reference/android/view/View#setHasTransientState(boolean)(boolean hasTransientState)
`

Set whether this view is currently tracking transient state that the
framework should attempt to preserve when possible.


`


void` `
https://developer.android.com/reference/android/view/View#setHorizontalFadingEdgeEnabled(boolean)(boolean horizontalFadingEdgeEnabled)
`

<br />

Define whether the horizontal edges should be faded when this view
is scrolled horizontally.


`


void` `
https://developer.android.com/reference/android/view/View#setHorizontalScrollBarEnabled(boolean)(boolean horizontalScrollBarEnabled)
`

<br />

Define whether the horizontal scrollbar should be drawn or not.


`


void` `
https://developer.android.com/reference/android/view/View#setHorizontalScrollbarThumbDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable drawable)
`

Defines the horizontal thumb drawable


`


void` `
https://developer.android.com/reference/android/view/View#setHorizontalScrollbarTrackDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable drawable)
`

Defines the horizontal track drawable


`


void` `
https://developer.android.com/reference/android/view/View#setHovered(boolean)(boolean hovered)
`

Sets whether the view is currently hovered.


`


void` `
https://developer.android.com/reference/android/view/View#setId(int)(int id)
`

Sets the identifier for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setImportantForAccessibility(int)(int mode)
`

Sets how to determine whether this view is important for accessibility
which is if it fires accessibility events and if it is reported to
accessibility services that query the screen.


`


void` `
https://developer.android.com/reference/android/view/View#setImportantForAutofill(int)(int mode)
`

Sets the mode for determining whether this view is considered important for autofill.


`


void` `
https://developer.android.com/reference/android/view/View#setImportantForContentCapture(int)(int mode)
`

Sets the mode for determining whether this view is considered important for content capture.


`


void` `
https://developer.android.com/reference/android/view/View#setIsCredential(boolean)(boolean isCredential)
`

*This method was deprecated
in API level 37.
The `https://developer.android.com/reference/android/view/View#isCredential()` is no longer used by the system and is not
recommended for use by apps. The purpose and usage expectations of this property were
never clearly defined.*


`


void` `
https://developer.android.com/reference/android/view/View#setIsHandwritingDelegate(boolean)(boolean isHandwritingDelegate)
`

Sets this view to be a handwriting delegate.


`


void` `
https://developer.android.com/reference/android/view/View#setKeepScreenOn(boolean)(boolean keepScreenOn)
`

Controls whether the screen should remain on, modifying the
value of `https://developer.android.com/reference/android/view/View#KEEP_SCREEN_ON`.


`


void` `
https://developer.android.com/reference/android/view/View#setKeyboardNavigationCluster(boolean)(boolean isCluster)
`

Set whether this view is a root of a keyboard navigation cluster.


`


void` `
https://developer.android.com/reference/android/view/View#setLabelFor(int)(int id)
`

Sets the id of a view for which this view serves as a label for
accessibility purposes.


`


void` `
https://developer.android.com/reference/android/view/View#setLayerPaint(android.graphics.Paint)(https://developer.android.com/reference/android/graphics/Paint paint)
`

Updates the `https://developer.android.com/reference/android/graphics/Paint` object used with the current layer (used only if the current
layer type is not set to `https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE`).


`


void` `
https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)(int layerType, https://developer.android.com/reference/android/graphics/Paint paint)
`

<br />

Specifies the type of layer backing this view.


`


void` `
https://developer.android.com/reference/android/view/View#setLayoutDirection(int)(int layoutDirection)
`

Set the layout direction for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`

Set the layout parameters associated with this view.


`


final

void` `
https://developer.android.com/reference/android/view/View#setLeft(int)(int left)
`

Sets the left position of this view relative to its parent.


`


final

void` `
https://developer.android.com/reference/android/view/View#setLeftTopRightBottom(int,%20int,%20int,%20int)(int left, int top, int right, int bottom)
`

Assign a size and position to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setLongClickable(boolean)(boolean longClickable)
`

Enables or disables long click events for this view.


`


final

void` `
https://developer.android.com/reference/android/view/View#setMeasuredDimension(int,%20int)(int measuredWidth, int measuredHeight)
`

<br />

This method must be called by `https://developer.android.com/reference/android/view/View#onMeasure(int,%20int)` to store the
measured width and measured height.


`


void` `
https://developer.android.com/reference/android/view/View#setMinimumHeight(int)(int minHeight)
`

Sets the minimum height of the view.


`


void` `
https://developer.android.com/reference/android/view/View#setMinimumWidth(int)(int minWidth)
`

Sets the minimum width of the view.


`


void` `
https://developer.android.com/reference/android/view/View#setNestedScrollingEnabled(boolean)(boolean enabled)
`

Enable or disable nested scrolling for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setNextClusterForwardId(int)(int nextClusterForwardId)
`

Sets the id of the view to use as the root of the next keyboard navigation cluster.


`


void` `
https://developer.android.com/reference/android/view/View#setNextFocusDownId(int)(int nextFocusDownId)
`

Sets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_DOWN`.


`


void` `
https://developer.android.com/reference/android/view/View#setNextFocusForwardId(int)(int nextFocusForwardId)
`

Sets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_FORWARD`.


`


void` `
https://developer.android.com/reference/android/view/View#setNextFocusLeftId(int)(int nextFocusLeftId)
`

Sets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_LEFT`.


`


void` `
https://developer.android.com/reference/android/view/View#setNextFocusRightId(int)(int nextFocusRightId)
`

Sets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_RIGHT`.


`


void` `
https://developer.android.com/reference/android/view/View#setNextFocusUpId(int)(int nextFocusUpId)
`

Sets the id of the view to use when the next focus is `https://developer.android.com/reference/android/view/View#FOCUS_UP`.


`


void` `
https://developer.android.com/reference/android/view/View#setOnApplyWindowInsetsListener(android.view.View.OnApplyWindowInsetsListener)(https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener listener)
`

Set an `https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener` to take over the policy for applying
window insets to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setOnCapturedPointerListener(android.view.View.OnCapturedPointerListener)(https://developer.android.com/reference/android/view/View.OnCapturedPointerListener l)
`

Set a listener to receive callbacks when the pointer capture state of a view changes.


`


void` `
https://developer.android.com/reference/android/view/View#setOnClickListener(android.view.View.OnClickListener)(https://developer.android.com/reference/android/view/View.OnClickListener l)
`

Register a callback to be invoked when this view is clicked.


`


void` `
https://developer.android.com/reference/android/view/View#setOnContextClickListener(android.view.View.OnContextClickListener)(https://developer.android.com/reference/android/view/View.OnContextClickListener l)
`

Register a callback to be invoked when this view is context clicked.


`


void` `
https://developer.android.com/reference/android/view/View#setOnCreateContextMenuListener(android.view.View.OnCreateContextMenuListener)(https://developer.android.com/reference/android/view/View.OnCreateContextMenuListener l)
`

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


`


void` `
https://developer.android.com/reference/android/view/View#setOnDragListener(android.view.View.OnDragListener)(https://developer.android.com/reference/android/view/View.OnDragListener l)
`

Register a drag event listener callback object for this View.


`


void` `
https://developer.android.com/reference/android/view/View#setOnFocusChangeListener(android.view.View.OnFocusChangeListener)(https://developer.android.com/reference/android/view/View.OnFocusChangeListener l)
`

Register a callback to be invoked when focus of this view changed.


`


void` `
https://developer.android.com/reference/android/view/View#setOnGenericMotionListener(android.view.View.OnGenericMotionListener)(https://developer.android.com/reference/android/view/View.OnGenericMotionListener l)
`

Register a callback to be invoked when a generic motion event is sent to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setOnHoverListener(android.view.View.OnHoverListener)(https://developer.android.com/reference/android/view/View.OnHoverListener l)
`

Register a callback to be invoked when a hover event is sent to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setOnKeyListener(android.view.View.OnKeyListener)(https://developer.android.com/reference/android/view/View.OnKeyListener l)
`

Register a callback to be invoked when a hardware key is pressed in this view.


`


void` `
https://developer.android.com/reference/android/view/View#setOnLongClickListener(android.view.View.OnLongClickListener)(https://developer.android.com/reference/android/view/View.OnLongClickListener l)
`

Register a callback to be invoked when this view is clicked and held.


`


void` `
https://developer.android.com/reference/android/view/View#setOnReceiveContentListener(java.lang.String[],%20android.view.OnReceiveContentListener)(https://developer.android.com/reference/java/lang/String mimeTypes, https://developer.android.com/reference/android/view/OnReceiveContentListener listener)
`

Sets the listener to be `https://developer.android.com/reference/android/view/View#performReceiveContent(android.view.ContentInfo)` to handle insertion of
content into this view.


`


void` `
https://developer.android.com/reference/android/view/View#setOnScrollChangeListener(android.view.View.OnScrollChangeListener)(https://developer.android.com/reference/android/view/View.OnScrollChangeListener l)
`

Register a callback to be invoked when the scroll X or Y positions of
this view change.


`


void` `
https://developer.android.com/reference/android/view/View#setOnSystemUiVisibilityChangeListener(android.view.View.OnSystemUiVisibilityChangeListener)(https://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener l)
`

*This method was deprecated
in API level 30.
Use `https://developer.android.com/reference/android/view/WindowInsets#isVisible(int)` to find out about system bar visibilities
by setting a `https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener` on this view.*


`


void` `
https://developer.android.com/reference/android/view/View#setOnTouchListener(android.view.View.OnTouchListener)(https://developer.android.com/reference/android/view/View.OnTouchListener l)
`

Register a callback to be invoked when a touch event is sent to this view.


`


void` `
https://developer.android.com/reference/android/view/View#setOutlineAmbientShadowColor(int)(int color)
`

Sets the color of the ambient shadow that is drawn when the view has a positive Z or
elevation value.


`


void` `
https://developer.android.com/reference/android/view/View#setOutlineProvider(android.view.ViewOutlineProvider)(https://developer.android.com/reference/android/view/ViewOutlineProvider provider)
`

Sets the `https://developer.android.com/reference/android/view/ViewOutlineProvider` of the view, which generates the Outline that defines
the shape of the shadow it casts, and enables outline clipping.


`


void` `
https://developer.android.com/reference/android/view/View#setOutlineSpotShadowColor(int)(int color)
`

Sets the color of the spot shadow that is drawn when the view has a positive Z or
elevation value.


`


void` `
https://developer.android.com/reference/android/view/View#setOverScrollMode(int)(int overScrollMode)
`

Set the over-scroll mode for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setPadding(int,%20int,%20int,%20int)(int left, int top, int right, int bottom)
`

Sets the padding.


`


void` `
https://developer.android.com/reference/android/view/View#setPaddingRelative(int,%20int,%20int,%20int)(int start, int top, int end, int bottom)
`

Sets the relative padding.


`


void` `
https://developer.android.com/reference/android/view/View#setPendingCredentialRequest(android.credentials.GetCredentialRequest,%20android.os.OutcomeReceiver<android.credentials.GetCredentialResponse,android.credentials.GetCredentialException>)(https://developer.android.com/reference/android/credentials/GetCredentialRequest request, https://developer.android.com/reference/android/os/OutcomeReceiver<https://developer.android.com/reference/android/credentials/GetCredentialResponse, https://developer.android.com/reference/android/credentials/GetCredentialException> callback)
`

Sets a `https://developer.android.com/reference/android/credentials/CredentialManager` request to retrieve credentials, when the user focuses
on this given view.


`


void` `
https://developer.android.com/reference/android/view/View#setPivotX(float)(float pivotX)
`

Sets the x location of the point around which the view is
`https://developer.android.com/reference/android/view/View#setRotation(float)` and `https://developer.android.com/reference/android/view/View#setScaleX(float)`.


`


void` `
https://developer.android.com/reference/android/view/View#setPivotY(float)(float pivotY)
`

Sets the y location of the point around which the view is `https://developer.android.com/reference/android/view/View#setRotation(float)`
and `https://developer.android.com/reference/android/view/View#setScaleY(float)`.


`


void` `
https://developer.android.com/reference/android/view/View#setPointerIcon(android.view.PointerIcon)(https://developer.android.com/reference/android/view/PointerIcon pointerIcon)
`

Set the pointer icon to be used for a mouse pointer in the current view.


`


final

void` `
https://developer.android.com/reference/android/view/View#setPreferKeepClear(boolean)(boolean preferKeepClear)
`

Set a preference to keep the bounds of this view clear from floating windows above this
view's window.


`


final

void` `
https://developer.android.com/reference/android/view/View#setPreferKeepClearRects(java.util.List<android.graphics.Rect>)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/graphics/Rect> rects)
`

Set a preference to keep the provided rects clear from floating windows above this
view's window.


`


void` `
https://developer.android.com/reference/android/view/View#setPressed(boolean)(boolean pressed)
`

Sets the pressed state for this view.


`


void` `
https://developer.android.com/reference/android/view/View#setRenderEffect(android.graphics.RenderEffect)(https://developer.android.com/reference/android/graphics/RenderEffect renderEffect)
`

Configure the `https://developer.android.com/reference/android/graphics/RenderEffect` to apply to this View.


`


void` `
https://developer.android.com/reference/android/view/View#setRequestedFrameRate(float)(float frameRate)
`

You can set the preferred frame rate for a View using a positive number
or by specifying the preferred frame rate category using constants, including
REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE, REQUESTED_FRAME_RATE_CATEGORY_LOW,
REQUESTED_FRAME_RATE_CATEGORY_NORMAL, REQUESTED_FRAME_RATE_CATEGORY_HIGH.


`


final

void` `
https://developer.android.com/reference/android/view/View#setRevealOnFocusHint(boolean)(boolean revealOnFocus)
`

Sets this view's preference for reveal behavior when it gains focus.


`


final

void` `
https://developer.android.com/reference/android/view/View#setRight(int)(int right)
`

Sets the right position of this view relative to its parent.


`


void` `
https://developer.android.com/reference/android/view/View#setRotation(float)(float rotation)
`

Sets the degrees that the view is rotated around the pivot point.


`


void` `
https://developer.android.com/reference/android/view/View#setRotationX(float)(float rotationX)
`

Sets the degrees that the view is rotated around the horizontal axis through the pivot point.


`


void` `
https://developer.android.com/reference/android/view/View#setRotationY(float)(float rotationY)
`

Sets the degrees that the view is rotated around the vertical axis through the pivot point.


`


void` `
https://developer.android.com/reference/android/view/View#setSaveEnabled(boolean)(boolean enabled)
`

Controls whether the saving of this view's state is
enabled (that is, whether its `https://developer.android.com/reference/android/view/View#onSaveInstanceState()` method
will be called).


`


void` `
https://developer.android.com/reference/android/view/View#setSaveFromParentEnabled(boolean)(boolean enabled)
`

Controls whether the entire hierarchy under this view will save its
state when a state saving traversal occurs from its parent.


`


void` `
https://developer.android.com/reference/android/view/View#setScaleX(float)(float scaleX)
`

Sets the amount that the view is scaled in x around the pivot point, as a proportion of
the view's unscaled width.


`


void` `
https://developer.android.com/reference/android/view/View#setScaleY(float)(float scaleY)
`

Sets the amount that the view is scaled in Y around the pivot point, as a proportion of
the view's unscaled width.


`


void` `
https://developer.android.com/reference/android/view/View#setScreenReaderFocusable(boolean)(boolean screenReaderFocusable)
`

Sets whether this View should be a focusable element for screen readers
and include non-focusable Views from its subtree when providing feedback.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollBarDefaultDelayBeforeFade(int)(int scrollBarDefaultDelayBeforeFade)
`

Define the delay before scrollbars fade.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollBarFadeDuration(int)(int scrollBarFadeDuration)
`

Define the scrollbar fade duration.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollBarSize(int)(int scrollBarSize)
`

Define the scrollbar size.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollBarStyle(int)(int style)
`

<br />

Specify the style of the scrollbars.


`


final

void` `
https://developer.android.com/reference/android/view/View#setScrollCaptureCallback(android.view.ScrollCaptureCallback)(https://developer.android.com/reference/android/view/ScrollCaptureCallback callback)
`

Sets the callback to receive scroll capture requests.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollCaptureHint(int)(int hint)
`

Sets the scroll capture hint for this View.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollContainer(boolean)(boolean isScrollContainer)
`

Change whether this view is one of the set of scrollable containers in
its window.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollIndicators(int,%20int)(int indicators, int mask)
`

Sets the state of the scroll indicators specified by the mask.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollIndicators(int)(int indicators)
`

Sets the state of all scroll indicators.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollX(int)(int value)
`

Set the horizontal scrolled position of your view.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollY(int)(int value)
`

Set the vertical scrolled position of your view.


`


void` `
https://developer.android.com/reference/android/view/View#setScrollbarFadingEnabled(boolean)(boolean fadeScrollbars)
`

Define whether scrollbars will fade when the view is not scrolling.


`


void` `
https://developer.android.com/reference/android/view/View#setSelected(boolean)(boolean selected)
`

Changes the selection state of this view.


`


void` `
https://developer.android.com/reference/android/view/View#setSoundEffectsEnabled(boolean)(boolean soundEffectsEnabled)
`

Set whether this view should have sound effects enabled for events such as
clicking and touching.


`


void` `
https://developer.android.com/reference/android/view/View#setStateDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence stateDescription)
`

Sets the `https://developer.android.com/reference/android/view/View`'s state description.


`


void` `
https://developer.android.com/reference/android/view/View#setStateListAnimator(android.animation.StateListAnimator)(https://developer.android.com/reference/android/animation/StateListAnimator stateListAnimator)
`

Attaches the provided StateListAnimator to this View.


`


void` `
https://developer.android.com/reference/android/view/View#setSupplementalDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence supplementalDescription)
`

Sets the `https://developer.android.com/reference/android/view/View`'s supplemental description.


`


void` `
https://developer.android.com/reference/android/view/View#setSystemGestureExclusionRects(java.util.List<android.graphics.Rect>)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/graphics/Rect> rects)
`

Sets a list of areas within this view's post-layout coordinate space where the system
should not intercept touch or other pointing device gestures.


`


void` `
https://developer.android.com/reference/android/view/View#setSystemUiVisibility(int)(int visibility)
`

*This method was deprecated
in API level 30.
SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController`
instead.*


`


void` `
https://developer.android.com/reference/android/view/View#setTag(int,%20java.lang.Object)(int key, https://developer.android.com/reference/java/lang/Object tag)
`

Sets a tag associated with this view and a key.


`


void` `
https://developer.android.com/reference/android/view/View#setTag(java.lang.Object)(https://developer.android.com/reference/java/lang/Object tag)
`

Sets the tag associated with this view.


`


void` `
https://developer.android.com/reference/android/view/View#setTextAlignment(int)(int textAlignment)
`

Set the text alignment.


`


void` `
https://developer.android.com/reference/android/view/View#setTextDirection(int)(int textDirection)
`

Set the text direction.


`


void` `
https://developer.android.com/reference/android/view/View#setTooltipText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence tooltipText)
`

Sets the tooltip text which will be displayed in a small popup next to the view.


`


final

void` `
https://developer.android.com/reference/android/view/View#setTop(int)(int top)
`

Sets the top position of this view relative to its parent.


`


void` `
https://developer.android.com/reference/android/view/View#setTouchDelegate(android.view.TouchDelegate)(https://developer.android.com/reference/android/view/TouchDelegate delegate)
`

Sets the TouchDelegate for this View.


`


void` `
https://developer.android.com/reference/android/view/View#setTransitionAlpha(float)(float alpha)
`

This property is intended only for use by the Fade transition, which animates it
to produce a visual translucency that does not side-effect (or get affected by)
the real alpha property.


`


final

void` `
https://developer.android.com/reference/android/view/View#setTransitionName(java.lang.String)(https://developer.android.com/reference/java/lang/String transitionName)
`

Sets the name of the View to be used to identify Views in Transitions.


`


void` `
https://developer.android.com/reference/android/view/View#setTransitionVisibility(int)(int visibility)
`

Changes the visibility of this View without triggering any other changes.


`


void` `
https://developer.android.com/reference/android/view/View#setTranslationX(float)(float translationX)
`

Sets the horizontal location of this view relative to its `https://developer.android.com/reference/android/view/View#getLeft()` position.


`


void` `
https://developer.android.com/reference/android/view/View#setTranslationY(float)(float translationY)
`

Sets the vertical location of this view relative to its `https://developer.android.com/reference/android/view/View#getTop()` position.


`


void` `
https://developer.android.com/reference/android/view/View#setTranslationZ(float)(float translationZ)
`

Sets the depth location of this view relative to its `https://developer.android.com/reference/android/view/View#getElevation()`.


`


void` `
https://developer.android.com/reference/android/view/View#setVerticalFadingEdgeEnabled(boolean)(boolean verticalFadingEdgeEnabled)
`

<br />

Define whether the vertical edges should be faded when this view
is scrolled vertically.


`


void` `
https://developer.android.com/reference/android/view/View#setVerticalScrollBarEnabled(boolean)(boolean verticalScrollBarEnabled)
`

<br />

Define whether the vertical scrollbar should be drawn or not.


`


void` `
https://developer.android.com/reference/android/view/View#setVerticalScrollbarPosition(int)(int position)
`

Set the position of the vertical scroll bar.


`


void` `
https://developer.android.com/reference/android/view/View#setVerticalScrollbarThumbDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable drawable)
`

Defines the vertical scrollbar thumb drawable


`


void` `
https://developer.android.com/reference/android/view/View#setVerticalScrollbarTrackDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable drawable)
`

Defines the vertical scrollbar track drawable


`


void` `
https://developer.android.com/reference/android/view/View#setViewTranslationCallback(android.view.translation.ViewTranslationCallback)(https://developer.android.com/reference/android/view/translation/ViewTranslationCallback callback)
`

Sets a `https://developer.android.com/reference/android/view/translation/ViewTranslationCallback` that is used to display/hide the translated
information.


`


void` `
https://developer.android.com/reference/android/view/View#setVisibility(int)(int visibility)
`

Set the visibility state of this view.


`


void` `
https://developer.android.com/reference/android/view/View#setWillNotCacheDrawing(boolean)(boolean willNotCacheDrawing)
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


void` `
https://developer.android.com/reference/android/view/View#setWillNotDraw(boolean)(boolean willNotDraw)
`

If this view doesn't do any drawing on its own, set this flag to
allow further optimizations.


`


void` `
https://developer.android.com/reference/android/view/View#setWindowInsetsAnimationCallback(android.view.WindowInsetsAnimation.Callback)(https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback callback)
`

Sets a `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback` to be notified about animations of windows that
cause insets.


`


void` `
https://developer.android.com/reference/android/view/View#setX(float)(float x)
`

Sets the visual x position of this view, in pixels.


`


void` `
https://developer.android.com/reference/android/view/View#setY(float)(float y)
`

Sets the visual y position of this view, in pixels.


`


void` `
https://developer.android.com/reference/android/view/View#setZ(float)(float z)
`

Sets the visual z position of this view, in pixels.


`


boolean` `
https://developer.android.com/reference/android/view/View#showContextMenu()()
`

Shows the context menu for this view.


`


boolean` `
https://developer.android.com/reference/android/view/View#showContextMenu(float,%20float)(float x, float y)
`

Shows the context menu for this view anchored to the specified
view-relative coordinate.


`


https://developer.android.com/reference/android/view/ActionMode` `
https://developer.android.com/reference/android/view/View#startActionMode(android.view.ActionMode.Callback,%20int)(https://developer.android.com/reference/android/view/ActionMode.Callback callback, int type)
`

Start an action mode with the given type.


`


https://developer.android.com/reference/android/view/ActionMode` `
https://developer.android.com/reference/android/view/View#startActionMode(android.view.ActionMode.Callback)(https://developer.android.com/reference/android/view/ActionMode.Callback callback)
`

Start an action mode with the default type `https://developer.android.com/reference/android/view/ActionMode#TYPE_PRIMARY`.


`


void` `
https://developer.android.com/reference/android/view/View#startAnimation(android.view.animation.Animation)(https://developer.android.com/reference/android/view/animation/Animation animation)
`

Start the specified animation now.


`


final

boolean` `
https://developer.android.com/reference/android/view/View#startDrag(android.content.ClipData,%20android.view.View.DragShadowBuilder,%20java.lang.Object,%20int)(https://developer.android.com/reference/android/content/ClipData data, https://developer.android.com/reference/android/view/View.DragShadowBuilder shadowBuilder, https://developer.android.com/reference/java/lang/Object myLocalState, int flags)
`

*This method was deprecated
in API level 24.
Use `https://developer.android.com/reference/android/view/View#startDragAndDrop(android.content.ClipData,%20android.view.View.DragShadowBuilder,%20java.lang.Object,%20int)` for newer platform versions.*


`


final

boolean` `
https://developer.android.com/reference/android/view/View#startDragAndDrop(android.content.ClipData,%20android.view.View.DragShadowBuilder,%20java.lang.Object,%20int)(https://developer.android.com/reference/android/content/ClipData data, https://developer.android.com/reference/android/view/View.DragShadowBuilder shadowBuilder, https://developer.android.com/reference/java/lang/Object myLocalState, int flags)
`

Starts a drag and drop operation.


`


boolean` `
https://developer.android.com/reference/android/view/View#startNestedScroll(int)(int axes)
`

Begin a nestable scroll operation along the given axes.


`


void` `
https://developer.android.com/reference/android/view/View#stopNestedScroll()()
`

Stop a nested scroll in progress.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/android/view/View#toString()()
`

Returns a string representation of the object.


`


void` `
https://developer.android.com/reference/android/view/View#transformMatrixToGlobal(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix matrix)
`

Modifies the input matrix such that it maps view-local coordinates to
on-screen coordinates.


`


void` `
https://developer.android.com/reference/android/view/View#transformMatrixToLocal(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix matrix)
`

Modifies the input matrix such that it maps on-screen coordinates to
view-local coordinates.


`


static


void` `
https://developer.android.com/reference/android/view/View#unregisterCalledFromWrongThreadListener(android.view.View.CalledFromWrongThreadListener)(https://developer.android.com/reference/android/view/View.CalledFromWrongThreadListener listener)
`

Unregisters a listener that was previously registered with
`https://developer.android.com/reference/android/view/View#registerCalledFromWrongThreadListener(android.view.View.CalledFromWrongThreadListener)`.


`


void` `
https://developer.android.com/reference/android/view/View#unscheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable)(https://developer.android.com/reference/android/graphics/drawable/Drawable who, https://developer.android.com/reference/java/lang/Runnable what)
`

Cancels a scheduled action on a drawable.


`


void` `
https://developer.android.com/reference/android/view/View#unscheduleDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable who)
`

Unschedule any events associated with the given Drawable.


`


final

void` `
https://developer.android.com/reference/android/view/View#updateDragShadow(android.view.View.DragShadowBuilder)(https://developer.android.com/reference/android/view/View.DragShadowBuilder shadowBuilder)
`

Updates the drag shadow for the ongoing drag and drop operation.


`


boolean` `
https://developer.android.com/reference/android/view/View#verifyDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable who)
`

If your view subclass is displaying its own Drawable objects, it should
override this function and return true for any Drawable it is
displaying.


`


boolean` `
https://developer.android.com/reference/android/view/View#willNotCacheDrawing()()
`

*This method was deprecated
in API level 28.
The view drawing cache was largely made obsolete with the introduction of
hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache
layers are largely unnecessary and can easily result in a net loss in performance due to the
cost of creating and updating the layer. In the rare cases where caching layers are useful,
such as for alpha animations, `https://developer.android.com/reference/android/view/View#setLayerType(int,%20android.graphics.Paint)` handles this with hardware
rendering. For software-rendered snapshots of a small part of the View hierarchy or
individual Views it is recommended to create a `https://developer.android.com/reference/android/graphics/Canvas` from either a `https://developer.android.com/reference/android/graphics/Bitmap` or
`https://developer.android.com/reference/android/graphics/Picture` and call `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)` on the View. However these
software-rendered usages are discouraged and have compatibility issues with hardware-only
rendering features such as `https://developer.android.com/reference/android/graphics/Bitmap.Config#HARDWARE`
bitmaps, real-time shadows, and outline clipping. For screenshots of the UI for feedback
reports or unit testing the `https://developer.android.com/reference/android/view/PixelCopy` API is recommended.*


`


boolean` `
https://developer.android.com/reference/android/view/View#willNotDraw()()
`

Returns whether or not this View draws on its own.


From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

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


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

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


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

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


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

https://developer.android.com/reference/android/view/ViewManager

` `
abstract


void` `
https://developer.android.com/reference/android/view/ViewManager#addView(android.view.View,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
`

Assign the passed LayoutParams to the passed View and add the view to the window.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewManager#removeView(android.view.View)(https://developer.android.com/reference/android/view/View view)
` `
abstract


void` `
https://developer.android.com/reference/android/view/ViewManager#updateViewLayout(android.view.View,%20android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams params)
` From interface `

https://developer.android.com/reference/android/view/ViewParent

` `
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#bringChildToFront(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Change the z order of the child so it's on top of all other children.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#canResolveLayoutDirection()()
`

Tells if this view parent can resolve the layout direction.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#canResolveTextAlignment()()
`

Tells if this view parent can resolve the text alignment.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#canResolveTextDirection()()
`

Tells if this view parent can resolve the text direction.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#childDrawableStateChanged(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

This method is called on the parent when a child's drawable state
has changed.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#childHasTransientStateChanged(android.view.View,%20boolean)(https://developer.android.com/reference/android/view/View child, boolean hasTransientState)
`

Called when a child view now has or no longer is tracking transient state.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#clearChildFocus(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Called when a child of this parent is giving up focus


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#createContextMenu(android.view.ContextMenu)(https://developer.android.com/reference/android/view/ContextMenu menu)
`

Have the parent populate the specified context menu if it has anything to
add (and then recurse on its parent).


`

default


https://developer.android.com/reference/android/window/OnBackInvokedDispatcher` `
https://developer.android.com/reference/android/view/ViewParent#findOnBackInvokedDispatcherForChild(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View requester)
`

Walk up the View hierarchy to find the nearest `https://developer.android.com/reference/android/window/OnBackInvokedDispatcher`.


`
abstract


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/ViewParent#focusSearch(android.view.View,%20int)(https://developer.android.com/reference/android/view/View v, int direction)
`

Find the nearest view in the specified direction that wants to take focus


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#focusableViewAvailable(android.view.View)(https://developer.android.com/reference/android/view/View v)
`

Tells the parent that a new focusable view has become available.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#getChildVisibleRect(android.view.View,%20android.graphics.Rect,%20android.graphics.Point)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect r, https://developer.android.com/reference/android/graphics/Point offset)
`

Compute the visible part of a rectangular region defined in terms of a child view's
coordinates.


`
abstract


int` `
https://developer.android.com/reference/android/view/ViewParent#getLayoutDirection()()
`

Return this view parent layout direction.


`
abstract


https://developer.android.com/reference/android/view/ViewParent` `
https://developer.android.com/reference/android/view/ViewParent#getParent()()
`

Returns the parent if it exists, or null.


`
abstract


https://developer.android.com/reference/android/view/ViewParent` `
https://developer.android.com/reference/android/view/ViewParent#getParentForAccessibility()()
`

Gets the parent of a given View for accessibility.


`
abstract


int` `
https://developer.android.com/reference/android/view/ViewParent#getTextAlignment()()
`

Return this view parent text alignment.


`
abstract


int` `
https://developer.android.com/reference/android/view/ViewParent#getTextDirection()()
`

Return this view parent text direction.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#invalidateChild(android.view.View,%20android.graphics.Rect)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect r)
`

*This method was deprecated
in API level 26.
Use `https://developer.android.com/reference/android/view/ViewParent#onDescendantInvalidated(android.view.View,%20android.view.View)` instead.*


`
abstract


https://developer.android.com/reference/android/view/ViewParent` `
https://developer.android.com/reference/android/view/ViewParent#invalidateChildInParent(int[],%20android.graphics.Rect)(int[] location, https://developer.android.com/reference/android/graphics/Rect r)
`

*This method was deprecated
in API level 26.
Use `https://developer.android.com/reference/android/view/ViewParent#onDescendantInvalidated(android.view.View,%20android.view.View)` instead.*


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#isLayoutDirectionResolved()()
`

Tells if this view parent layout direction is resolved.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#isLayoutRequested()()
`

Indicates whether layout was requested on this view parent.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#isTextAlignmentResolved()()
`

Tells if this view parent text alignment is resolved.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#isTextDirectionResolved()()
`

Tells if this view parent text direction is resolved.


`
abstract


https://developer.android.com/reference/android/view/View` `
https://developer.android.com/reference/android/view/ViewParent#keyboardNavigationClusterSearch(android.view.View,%20int)(https://developer.android.com/reference/android/view/View currentCluster, int direction)
`

Find the nearest keyboard navigation cluster in the specified direction.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#notifySubtreeAccessibilityStateChanged(android.view.View,%20android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View source, int changeType)
`

Notifies a view parent that the accessibility state of one of its
descendants has changed and that the structure of the subtree is
different.


`

default


void` `
https://developer.android.com/reference/android/view/ViewParent#onDescendantInvalidated(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View target)
`

The target View has been invalidated, or has had a drawing property changed that
requires the hierarchy to re-render.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#onNestedFling(android.view.View,%20float,%20float,%20boolean)(https://developer.android.com/reference/android/view/View target, float velocityX, float velocityY, boolean consumed)
`

Request a fling from a nested scroll.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#onNestedPreFling(android.view.View,%20float,%20float)(https://developer.android.com/reference/android/view/View target, float velocityX, float velocityY)
`

React to a nested fling before the target view consumes it.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#onNestedPrePerformAccessibilityAction(android.view.View,%20int,%20android.os.Bundle)(https://developer.android.com/reference/android/view/View target, int action, https://developer.android.com/reference/android/os/Bundle arguments)
`

React to an accessibility action delegated by a target descendant view before the target
processes it.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#onNestedPreScroll(android.view.View,%20int,%20int,%20int[])(https://developer.android.com/reference/android/view/View target, int dx, int dy, int[] consumed)
`

React to a nested scroll in progress before the target view consumes a portion of the scroll.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#onNestedScroll(android.view.View,%20int,%20int,%20int,%20int)(https://developer.android.com/reference/android/view/View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed)
`

React to a nested scroll in progress.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#onNestedScrollAccepted(android.view.View,%20android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View target, int nestedScrollAxes)
`

React to the successful claiming of a nested scroll operation.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#onStartNestedScroll(android.view.View,%20android.view.View,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View target, int nestedScrollAxes)
`

React to a descendant view initiating a nestable scroll operation, claiming the
nested scroll operation if appropriate.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#onStopNestedScroll(android.view.View)(https://developer.android.com/reference/android/view/View target)
`

React to a nested scroll operation ending.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#recomputeViewAttributes(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Tell view hierarchy that the global view attributes need to be
re-evaluated.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#requestChildFocus(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/View focused)
`

Called when a child of this parent wants focus


`

default


boolean` `
https://developer.android.com/reference/android/view/ViewParent#requestChildRectangleOnScreen(android.view.View,%20android.graphics.Rect,%20boolean,%20int)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect rectangle, boolean immediate, int source)
`

Called when a child of this group wants a particular rectangle to be
positioned onto the screen.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#requestChildRectangleOnScreen(android.view.View,%20android.graphics.Rect,%20boolean)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/graphics/Rect rectangle, boolean immediate)
`

Called when a child of this group wants a particular rectangle to be
positioned onto the screen.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#requestDisallowInterceptTouchEvent(boolean)(boolean disallowIntercept)
`

Called when a child does not want this parent and its ancestors to
intercept touch events with
`https://developer.android.com/reference/android/view/ViewGroup#onInterceptTouchEvent(android.view.MotionEvent)`.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#requestFitSystemWindows()()
`

Ask that a new dispatch of `https://developer.android.com/reference/android/view/View#fitSystemWindows(android.graphics.Rect)` be performed.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#requestLayout()()
`

Called when something has changed which has invalidated the layout of a
child of this view parent.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#requestSendAccessibilityEvent(android.view.View,%20android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/View child, https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Called by a child to request from its parent to send an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewParent#requestTransparentRegion(android.view.View)(https://developer.android.com/reference/android/view/View child)
`

Called when a child wants the view hierarchy to gather and report
transparent regions to the window compositor.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#showContextMenuForChild(android.view.View)(https://developer.android.com/reference/android/view/View originalView)
`

Shows the context menu for the specified view or its ancestors.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/ViewParent#showContextMenuForChild(android.view.View,%20float,%20float)(https://developer.android.com/reference/android/view/View originalView, float x, float y)
`

Shows the context menu for the specified view or its ancestors anchored
to the specified view-relative coordinate.


`
abstract


https://developer.android.com/reference/android/view/ActionMode` `
https://developer.android.com/reference/android/view/ViewParent#startActionModeForChild(android.view.View,%20android.view.ActionMode.Callback,%20int)(https://developer.android.com/reference/android/view/View originalView, https://developer.android.com/reference/android/view/ActionMode.Callback callback, int type)
`

Start an action mode of a specific type for the specified view.


`
abstract


https://developer.android.com/reference/android/view/ActionMode` `
https://developer.android.com/reference/android/view/ViewParent#startActionModeForChild(android.view.View,%20android.view.ActionMode.Callback)(https://developer.android.com/reference/android/view/View originalView, https://developer.android.com/reference/android/view/ActionMode.Callback callback)
`

Start an action mode for the specified view with the default type
`https://developer.android.com/reference/android/view/ActionMode#TYPE_PRIMARY`.


From interface `

https://developer.android.com/reference/android/view/accessibility/AccessibilityEventSource

` `
abstract


void` `
https://developer.android.com/reference/android/view/accessibility/AccessibilityEventSource#sendAccessibilityEvent(int)(int eventType)
`

Handles the request for sending an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` given
the event type.


`
abstract


void` `
https://developer.android.com/reference/android/view/accessibility/AccessibilityEventSource#sendAccessibilityEventUnchecked(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event)
`

Handles the request for sending an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`.


From interface `

https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback

` `
abstract


void` `
https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback#invalidateDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable who)
`

Called when the drawable needs to be redrawn.


`
abstract


void` `
https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback#scheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable,%20long)(https://developer.android.com/reference/android/graphics/drawable/Drawable who, https://developer.android.com/reference/java/lang/Runnable what, long when)
`

A Drawable can call this to schedule the next frame of its
animation.


`
abstract


void` `
https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback#unscheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable)(https://developer.android.com/reference/android/graphics/drawable/Drawable who, https://developer.android.com/reference/java/lang/Runnable what)
`

A Drawable can call this to unschedule an action previously
scheduled with `https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback#scheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable,%20long)`.


From interface `

https://developer.android.com/reference/android/view/KeyEvent.Callback

` `
abstract


boolean` `
https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyDown(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Called when a key down event has occurred.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyLongPress(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Called when a long press has occurred.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)(int keyCode, int count, https://developer.android.com/reference/android/view/KeyEvent event)
`

Called when a user's interaction with an analog control, such as
flinging a trackball, generates simulated down/up events for the same
key multiple times in quick succession.


`
abstract


boolean` `
https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyUp(int,%20android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent event)
`

Called when a key up event has occurred.


From interface `

https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener

` `
abstract


void` `
https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener#onChildViewAdded(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View parent, https://developer.android.com/reference/android/view/View child)
`

Called when a new child is added to a parent view.


`
abstract


void` `
https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener#onChildViewRemoved(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View parent, https://developer.android.com/reference/android/view/View child)
`

Called when a child is removed from a parent view.


From interface `

https://developer.android.com/reference/android/view/ViewTreeObserver.OnGlobalFocusChangeListener

` `
abstract


void` `
https://developer.android.com/reference/android/view/ViewTreeObserver.OnGlobalFocusChangeListener#onGlobalFocusChanged(android.view.View,%20android.view.View)(https://developer.android.com/reference/android/view/View oldFocus, https://developer.android.com/reference/android/view/View newFocus)
`

Callback method to be invoked when the focus changes in the view tree.


## Constants

### RENDERER_PRIORITY_BOUND

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RENDERER_PRIORITY_BOUND
```

This is the medium binding priority for the WebView renderer process. This is equivalent to
the standard priority used by the system for calls to `https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)` when no flags are
provided. At this priority level `https://developer.android.com/reference/android/webkit/WebView` renderers will be slightly more likely
targets for being killed when the system is running low on memory.

If using this priority, we recommend handling the `https://developer.android.com/reference/android/webkit/WebViewClient#onRenderProcessGone(android.webkit.WebView,%20android.webkit.RenderProcessGoneDetail)` callback to recover from low memory kills as well as other
types of renderer crashes.

<br />

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setRendererPriorityPolicy(int,%20boolean)`
- `https://developer.android.com/`
- `https://developer.android.com/reference/android/webkit/RenderProcessGoneDetail#rendererPriorityAtExit()`

Constant Value:

1
(0x00000001)


### RENDERER_PRIORITY_IMPORTANT

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RENDERER_PRIORITY_IMPORTANT
```

This is the highest binding priority for the WebView renderer process, and the default value
WebView uses to bind to the renderer process. This is equivalent to `https://developer.android.com/reference/android/content/Context#BIND_IMPORTANT`. At this priority level `https://developer.android.com/reference/android/webkit/WebView` renderers are less likely to
be killed when the system is running low on memory and will have the same priority as your
app's main process.

It's still possible for the renderer process to be killed when the system is running low
on memory, however specifying this priority makes this situation less likely. It's also still
possible for the renderer process to crash for other reasons. You may optionally still choose
to handle `https://developer.android.com/reference/android/webkit/WebViewClient#onRenderProcessGone(android.webkit.WebView,%20android.webkit.RenderProcessGoneDetail)` in order to recover from a killed or
crashed renderer process.

<br />

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setRendererPriorityPolicy(int,%20boolean)`
- `https://developer.android.com/`
- `https://developer.android.com/reference/android/webkit/RenderProcessGoneDetail#rendererPriorityAtExit()`

Constant Value:

2
(0x00000002)


### RENDERER_PRIORITY_WAIVED

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RENDERER_PRIORITY_WAIVED
```

This is the lowest binding priority for the WebView renderer process. This is equivalent to
`https://developer.android.com/reference/android/content/Context#BIND_WAIVE_PRIORITY`. At this priority level `https://developer.android.com/reference/android/webkit/WebView` renderers will be
frequent targets for being killed when the system is running low on memory.

If using this priority, we recommend handling the `https://developer.android.com/reference/android/webkit/WebViewClient#onRenderProcessGone(android.webkit.WebView,%20android.webkit.RenderProcessGoneDetail)` callback to recover from low memory kills as well as other
types of renderer crashes.

<br />

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setRendererPriorityPolicy(int,%20boolean)`
- `https://developer.android.com/`
- `https://developer.android.com/reference/android/webkit/RenderProcessGoneDetail#rendererPriorityAtExit()`

Constant Value:

0
(0x00000000)


### SCHEME_GEO

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SCHEME_GEO
```

URI scheme for map address.

<br />

Constant Value:

"geo:0,0?q="


### SCHEME_MAILTO

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SCHEME_MAILTO
```

URI scheme for email address.

<br />

Constant Value:

"mailto:"


### SCHEME_TEL

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SCHEME_TEL
```

URI scheme for telephone number.

<br />

Constant Value:

"tel:"


## Public constructors

### WebView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebView (Context context)
```

Constructs a new WebView with an Activity Context object.

**Note:** WebView should always be instantiated with an Activity Context.
If instantiated with an Application Context, WebView will be unable to provide several
features, such as JavaScript dialogs and autofill.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: an Activity Context to access application assets. This value cannot be `null`. <br /> |

### WebView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebView (Context context, 
                AttributeSet attrs)
```

Constructs a new WebView with layout parameters.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: an Activity Context to access application assets. This value cannot be `null`. <br /> |
| `attrs` | `AttributeSet`: an AttributeSet passed to our parent. This value may be `null`. <br /> |

### WebView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)
```

Constructs a new WebView with layout parameters and a default style.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: an Activity Context to access application assets. This value cannot be `null`. <br /> |
| `attrs` | `AttributeSet`: an AttributeSet passed to our parent. This value may be `null`. <br /> |
| `defStyleAttr` | `int`: an attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults. <br /> |

### WebView

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr, 
                boolean privateBrowsing)
```


**This constructor is deprecated.**   

Private browsing is no longer supported directly via
WebView and will be removed in a future release. Prefer using
`https://developer.android.com/reference/android/webkit/WebSettings`, `https://developer.android.com/reference/android/webkit/WebViewDatabase`, `https://developer.android.com/reference/android/webkit/CookieManager`
and `https://developer.android.com/reference/android/webkit/WebStorage` for fine-grained control of privacy data.

Constructs a new WebView with layout parameters and a default style.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: an Activity Context to access application assets. This value cannot be `null`. <br /> |
| `attrs` | `AttributeSet`: an AttributeSet passed to our parent. This value may be `null`. <br /> |
| `defStyleAttr` | `int`: an attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults. <br /> |
| `privateBrowsing` | `boolean`: whether this WebView will be initialized in private mode <br /> |

### WebView

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr, 
                int defStyleRes)
```

Constructs a new WebView with layout parameters and a default style.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: an Activity Context to access application assets. This value cannot be `null`. <br /> |
| `attrs` | `AttributeSet`: an AttributeSet passed to our parent. This value may be `null`. <br /> |
| `defStyleAttr` | `int`: an attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults. <br /> |
| `defStyleRes` | `int`: a resource identifier of a style resource that supplies default values for the view, used only if defStyleAttr is 0 or can not be found in the theme. Can be 0 to not look for defaults. <br /> |

## Public methods

### addJavascriptInterface

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addJavascriptInterface (Object object, 
                String name)
```

Injects the supplied Java object into this WebView. The object is
injected into all frames of the web page, including all the iframes,
using the supplied name. This allows the Java object's methods to be
accessed from JavaScript. For applications targeted to API
level `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1`
and above, only public methods that are annotated with
`https://developer.android.com/reference/android/webkit/JavascriptInterface` can be accessed from JavaScript.
For applications targeted to API level `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN` or below,
all public methods (including the inherited ones) can be accessed, see the
important security note below for implications.

Note that injected objects will not appear in JavaScript until the page is next
(re)loaded. JavaScript should be enabled before injecting the object. For example:

```
class JsObject {
   @JavascriptInterface
   public String toString() { return "injectedObject"; }
}
webview.getSettings().setJavaScriptEnabled(true);
webView.addJavascriptInterface(new JsObject(), "injectedObject");
webView.loadData("html", "text/html", null);
webView.loadUrl("javascript:alert(injectedObject.toString())");
```


**IMPORTANT:**

- This method can be used to allow JavaScript to control the host application. This is a powerful feature, but also presents a security risk for apps targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN` or earlier. Apps that target a version later than `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN` are still vulnerable if the app runs on a device running Android earlier than 4.2. The most secure way to use this method is to target `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1` and to ensure the method is called only when running on Android 4.2 or later. With these older versions, JavaScript could use reflection to access an injected object's public fields. Use of this method in a WebView containing untrusted content could allow an attacker to manipulate the host application in unintended ways, executing Java code with the permissions of the host application. Use extreme care when using this method in a WebView which could contain untrusted content.
- JavaScript interacts with Java object on a private, background thread of this WebView. Care is therefore required to maintain thread safety.
- Because the object is exposed to all the frames, any frame could obtain the object name and call methods on it. There is no way to tell the calling frame's origin from the app side, so the app must not assume that the caller is trustworthy unless the app can guarantee that no third party content is ever loaded into the WebView even inside an iframe.
- The Java object's fields are not accessible.
- For applications targeted to API level `https://developer.android.com/reference/android/os/Build.VERSION_CODES#LOLLIPOP` and above, methods of injected Java objects are enumerable from JavaScript.

.   
This method must be called on the thread that originally created this UI element. This is typically the [main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

<br />

| Parameters ||
|---|---|
| `object` | `Object`: the Java object to inject into this WebView's JavaScript context. `null` values are ignored. <br /> |
| `name` | `String`: the name used to expose the object in JavaScript. This value cannot be `null`. <br /> |

### autofill

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void autofill (SparseArray<AutofillValue> values)
```

Automatically fills the content of the virtual children within this view.

Views with virtual children support the Autofill Framework mainly by:

- Providing the metadata defining what the virtual children mean and how they can be autofilled.
- Implementing the methods that autofill the virtual children.

`https://developer.android.com/reference/android/view/View#onProvideAutofillVirtualStructure(android.view.ViewStructure,%20int)` is responsible for the
former, this method is responsible for the latter - see `https://developer.android.com/reference/android/view/View#autofill(android.view.autofill.AutofillValue)` and
`https://developer.android.com/reference/android/view/View#onProvideAutofillVirtualStructure(android.view.ViewStructure,%20int)` for more info about autofill.

If a child value is updated asynchronously, the next call to
`https://developer.android.com/reference/android/view/autofill/AutofillManager#notifyValueChanged(android.view.View,%20int,%20android.view.autofill.AutofillValue)` must happen
**after** the value was changed to the autofilled value. If not, the child will not be
considered autofilled.

**Note:** To indicate that a virtual view was autofilled,
`?android:attr/autofilledHighlight` should be drawn over it until the data
changes.

<br />

| Parameters ||
|---|---|
| `values` | `SparseArray`: map of values to be autofilled, keyed by virtual child id. This value cannot be `null`. <br /> |

### canGoBack

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canGoBack ()
```

Gets whether this WebView has a back history item.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if this WebView has a back history item <br /> |

### canGoBackOrForward

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canGoBackOrForward (int steps)
```

Gets whether the page can go back or forward the given
number of steps.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `steps` | `int`: the negative or positive number of steps to move the history <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### canGoForward

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canGoForward ()
```

Gets whether this WebView has a forward history item.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if this WebView has a forward history item <br /> |

### canZoomIn

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canZoomIn ()
```


**This method was deprecated
in API level 17.**   

This method is prone to inaccuracy due to race conditions
between the web rendering and UI threads; prefer
`https://developer.android.com/reference/android/webkit/WebViewClient#onScaleChanged(android.webkit.WebView,%20float,%20float)`.

Gets whether this WebView can be zoomed in.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if this WebView can be zoomed in <br /> |

### canZoomOut

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean canZoomOut ()
```


**This method was deprecated
in API level 17.**   

This method is prone to inaccuracy due to race conditions
between the web rendering and UI threads; prefer
`https://developer.android.com/reference/android/webkit/WebViewClient#onScaleChanged(android.webkit.WebView,%20float,%20float)`.

Gets whether this WebView can be zoomed out.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if this WebView can be zoomed out <br /> |

### capturePicture

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Picture capturePicture ()
```


**This method was deprecated
in API level 19.**   

Use `https://developer.android.com/reference/android/webkit/WebView#onDraw(android.graphics.Canvas)` to obtain a bitmap snapshot of the WebView, or
`https://developer.android.com/reference/android/webkit/WebView#saveWebArchive(java.lang.String)` to save the content to a file.

Gets a new picture that captures the current contents of this WebView.
The picture is of the entire document being displayed, and is not
limited to the area currently displayed by this WebView. Also, the
picture is a static copy and is unaffected by later changes to the
content being displayed.


Note that due to internal changes, for API levels between
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB` and
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH` inclusive, the
picture does not include fixed position elements or scrollable divs.


Note that from `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1` the returned picture
should only be drawn into bitmap-backed Canvas - using any other type of Canvas will involve
additional conversion at a cost in memory and performance.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/Picture` | a picture that captures the current contents of this WebView <br /> |

### clearCache

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearCache (boolean includeDiskFiles)
```

Clears the resource cache. Note that the cache is per-application, so
this will clear the cache for all WebViews used.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `includeDiskFiles` | `boolean`: if `false`, only the RAM cache is cleared <br /> |

### clearClientCertPreferences

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void clearClientCertPreferences (Runnable onCleared)
```

Clears the client certificate preferences stored in response
to proceeding/cancelling client cert requests. Note that WebView
automatically clears these preferences when the system keychain is updated.
The preferences are shared by all the WebViews that are created by the embedder application.

<br />

| Parameters ||
|---|---|
| `onCleared` | `Runnable`: A runnable to be invoked when client certs are cleared. The runnable will be called in UI thread. This value may be `null`. <br /> |

### clearFormData

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearFormData ()
```

Removes the autocomplete popup from the currently focused form field, if
present. Note this only affects the display of the autocomplete popup,
it does not remove any saved form data from this WebView's store. To do
that, use `https://developer.android.com/reference/android/webkit/WebViewDatabase#clearFormData()`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### clearHistory

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearHistory ()
```

Tells this WebView to clear its internal back/forward list.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### clearMatches

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearMatches ()
```

Clears the highlighting surrounding text matches created by
`https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### clearSslPreferences

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearSslPreferences ()
```

Clears the SSL preferences table stored in response to proceeding with
SSL certificate errors.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### clearView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearView ()
```


**This method was deprecated
in API level 18.**   

Use WebView.loadUrl("about:blank") to reliably reset the view state
and release page resources (including any running JavaScript).

Clears this WebView so that onDraw() will draw nothing but white background,
and onMeasure() will return 0 if MeasureSpec is not MeasureSpec.EXACTLY.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### computeScroll

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void computeScroll ()
```

Called by a parent to request that a child update its values for mScrollX
and mScrollY if necessary. This will typically be done if the child is
animating a scroll using a `https://developer.android.com/reference/android/widget/Scroller`
object.

<br />

### copyBackForwardList

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebBackForwardList copyBackForwardList ()
```

Gets the WebBackForwardList for this WebView. This contains the
back/forward list for use in querying each item in the history stack.
This is a copy of the private WebBackForwardList so it contains only a
snapshot of the current state. Multiple calls to this method may return
different objects. The object returned from this method will not be
updated to reflect any new state.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebBackForwardList` | This value cannot be `null`. <br /> |

### createPrintDocumentAdapter

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PrintDocumentAdapter createPrintDocumentAdapter (String documentName)
```

Creates a PrintDocumentAdapter that provides the content of this WebView for printing.

The adapter works by converting the WebView contents to a PDF stream. The WebView cannot
be drawn during the conversion process - any such draws are undefined. It is recommended
to use a dedicated off screen WebView for the printing. If necessary, an application may
temporarily hide a visible WebView by using a custom PrintDocumentAdapter instance
wrapped around the object returned and observing the onStart and onFinish methods. See
`https://developer.android.com/reference/android/print/PrintDocumentAdapter` for more information.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `documentName` | `String`: The user-facing name of the printed document. See `https://developer.android.com/reference/android/print/PrintDocumentInfo` This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/print/PrintDocumentAdapter` | This value cannot be `null`. <br /> |

### createPrintDocumentAdapter

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PrintDocumentAdapter createPrintDocumentAdapter ()
```


**This method was deprecated
in API level 21.**   

Use `https://developer.android.com/reference/android/webkit/WebView#createPrintDocumentAdapter(java.lang.String)` which requires user
to provide a print document name.

This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/print/PrintDocumentAdapter` | <br /> |

### createWebMessageChannel

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebMessagePort[] createWebMessageChannel ()
```

Creates a message channel to communicate with JS and returns the message
ports that represent the endpoints of this message channel. The HTML5 message
channel functionality is described
[here](https://html.spec.whatwg.org/multipage/comms.html#messagechannel)

The returned message channels are entangled and already in started state.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebMessagePort` | the two message ports that form the message channel. This value cannot be `null`. <br /> |

### destroy

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void destroy ()
```

Destroys the internal state of this WebView. This method should be called
after this WebView has been removed from the view system. No other
methods may be called on this WebView after destroy.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### disableWebView

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void disableWebView ()
```

Indicate that the current process does not intend to use WebView, and
that an exception should be thrown if a WebView is created or any other
methods in the android.webkit package are used.


Applications with multiple processes may wish to call this in processes
that are not intended to use WebView to avoid accidentally incurring
the memory usage of initializing WebView in long-lived processes that
have no need for it, and to prevent potential data directory conflicts
(see `https://developer.android.com/reference/android/webkit/WebView#setDataDirectorySuffix(java.lang.String)`).


For example, an audio player application with one process for its
activities and another process for its playback service may wish to call
this method in the playback service's `https://developer.android.com/reference/android/app/Service#onCreate()`.

<br />

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if WebView has already been initialized in the current process. |

### dispatchCreateViewTranslationRequest

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void dispatchCreateViewTranslationRequest (Map<AutofillId, long[]> viewIds, 
                int[] supportedFormats, 
                TranslationCapability capability, 
                List<ViewTranslationRequest> requests)
```

Dispatch to collect the `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s for translation purpose by traversing
the hierarchy when the app requests ui translation. Typically, this method should only be
overridden by subclasses that provide a view hierarchy (such as `https://developer.android.com/reference/android/view/ViewGroup`). Other
classes should override `https://developer.android.com/reference/android/view/View#onCreateViewTranslationRequest(int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)` for normal view or
override `https://developer.android.com/reference/android/view/View#onVirtualViewTranslationResponses(android.util.LongSparseArray<android.view.translation.ViewTranslationResponse>)` for view contains virtual children.
When requested to start the ui translation, the system will call this method to traverse the
view hierarchy to collect `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s and create a
`https://developer.android.com/reference/android/view/translation/Translator` to translate the requests. All the
`https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s must be added when the traversal is done.

The default implementation calls `https://developer.android.com/reference/android/view/View#onCreateViewTranslationRequest(int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)` for normal
view or calls `https://developer.android.com/reference/android/view/View#onVirtualViewTranslationResponses(android.util.LongSparseArray<android.view.translation.ViewTranslationResponse>)` for view contains virtual
children to build `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest` if the view should be translated.
The view is marked as having `https://developer.android.com/reference/android/view/View#setHasTransientState(boolean)` so that
recycling of views doesn't prevent the system from attaching the response to it. Therefore,
if overriding this method, you should set or reset the transient state.
The implementation calls `https://developer.android.com/reference/android/view/ViewGroup#dispatchCreateViewTranslationRequest(java.util.Map<android.view.autofill.AutofillId,long[]>,%20int[],%20android.view.translation.TranslationCapability,%20java.util.List<android.view.translation.ViewTranslationRequest>)` for all the child views.

<br />

<br />

| Parameters ||
|---|---|
| `viewIds` | `Map`: This value cannot be `null`. <br /> |
| `supportedFormats` | `int`: This value cannot be `null`. Value is one of the following: - `https://developer.android.com/reference/android/view/translation/TranslationSpec#DATA_FORMAT_TEXT` |
| `capability` | `TranslationCapability`: This value may be `null`. <br /> |
| `requests` | `List`: This value cannot be `null`. <br /> |

### dispatchKeyEvent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean dispatchKeyEvent (KeyEvent event)
```

Dispatch a key event to the next view on the focus path. This path runs
from the top of the view tree down to the currently focused view. If this
view has focus, it will dispatch to itself. Otherwise it will dispatch
the next node down the focus path. This method also fires any key
listeners.

<br />

| Parameters ||
|---|---|
| `event` | `KeyEvent`: The key event to be dispatched. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the event was handled, false otherwise. <br /> |

### documentHasImages

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void documentHasImages (Message response)
```

Queries the document to see if it contains any image references. The
message object will be dispatched with arg1 being set to 1 if images
were found and 0 if the document does not reference any images.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `response` | `Message`: the message that will be dispatched with the result. This value cannot be `null`. <br /> |

### enableSlowWholeDocumentDraw

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void enableSlowWholeDocumentDraw ()
```

For apps targeting the L release, WebView has a new default behavior that reduces
memory footprint and increases performance by intelligently choosing
the portion of the HTML document that needs to be drawn. These
optimizations are transparent to the developers. However, under certain
circumstances, an App developer may want to disable them:

1. When an app uses `https://developer.android.com/reference/android/webkit/WebView#onDraw(android.graphics.Canvas)` to do own drawing and accesses portions of the page that is way outside the visible portion of the page.
2. When an app uses `https://developer.android.com/reference/android/webkit/WebView#capturePicture()` to capture a very large HTML document. Note that capturePicture is a deprecated API.

Enabling drawing the entire HTML document has a significant performance cost. This method should be called before any WebViews are created.

<br />

<br />

### evaluateJavascript

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void evaluateJavascript (String script, 
                ValueCallback<String> resultCallback)
```

Asynchronously evaluates JavaScript in the context of the currently displayed page.
If non-null, `resultCallback` will be invoked with any result returned from that
execution. This method must be called on the UI thread and the callback will
be made on the UI thread.


Compatibility note. Applications targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#N` or
later, JavaScript state from an empty WebView is no longer persisted across navigations like
`https://developer.android.com/reference/android/webkit/WebView#loadUrl(java.lang.String)`. For example, global variables and functions defined before calling
`https://developer.android.com/reference/android/webkit/WebView#loadUrl(java.lang.String)` will not exist in the loaded page. Applications should use
`https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String)` instead to persist JavaScript objects across navigations.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `script` | `String`: the JavaScript to execute. This value cannot be `null`. <br /> |
| `resultCallback` | `ValueCallback`: A callback to be invoked when the script execution completes with the result of the execution (if any). May be `null` if no notification of the result is required. <br /> |

### findAddress

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static String findAddress (String addr)
```


**This method was deprecated
in API level 28.**   

This method is superseded by `https://developer.android.com/reference/android/view/textclassifier/TextClassifier#generateLinks(android.view.textclassifier.TextLinks.Request)`. Avoid using this method even when targeting
API levels where no alternative is available.

Gets the first substring which appears to be the address of a physical
location. Only addresses in the United States can be detected, which
must consist of:

- a house number
- a street name
- a street type (Road, Circle, etc), either spelled out or abbreviated
- a city name
- a state or territory, either spelled out or two-letter abbr
- an optional 5 digit or 9 digit zip code

All names must be correctly capitalized, and the zip code, if present, must be valid for the state. The street type must be a standard USPS spelling or abbreviation. The state or territory must also be spelled or abbreviated using USPS standards. The house number may not exceed five digits.

**Note:** This function is deprecated and should be
avoided on all API levels, as it cannot detect addresses outside of the
United States and has a high rate of false positives. On API level
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#O_MR1` and earlier, it also causes
the entire WebView implementation to be loaded and initialized, which
can throw `https://developer.android.com/reference/android/util/AndroidRuntimeException` or other exceptions
if the WebView implementation is currently being updated.

<br />

| Parameters ||
|---|---|
| `addr` | `String`: the string to search for addresses <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the address, or if no address is found, `null` <br /> |

### findAll

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int findAll (String find)
```


**This method was deprecated
in API level 16.**   

`https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)` is preferred.

Finds all instances of find on the page and highlights them.
Notifies any registered `https://developer.android.com/reference/android/webkit/WebView.FindListener`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `find` | `String`: the string to find <br /> |

| Returns ||
|---|---|
| `int` | the number of occurrences of the String "find" that were found <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setFindListener(android.webkit.WebView.FindListener)`

### findAllAsync

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void findAllAsync (String find)
```

Finds all instances of find on the page and highlights them,
asynchronously. Notifies any registered `https://developer.android.com/reference/android/webkit/WebView.FindListener`.
Successive calls to this will cancel any pending searches.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `find` | `String`: the string to find. This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setFindListener(android.webkit.WebView.FindListener)`

### findFocus

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public View findFocus ()
```

Find the view in the hierarchy rooted at this view that currently has
focus.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/View` | The view that currently has focus, or null if no focused view can be found. <br /> |

### findNext

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void findNext (boolean forward)
```

Highlights and scrolls to the next match found by
`https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)`, wrapping around page boundaries as necessary.
Notifies any registered `https://developer.android.com/reference/android/webkit/WebView.FindListener`. If `https://developer.android.com/reference/android/webkit/WebView#findAllAsync(java.lang.String)`
has not been called yet, or if `https://developer.android.com/reference/android/webkit/WebView#clearMatches()` has been called since the
last find operation, this function does nothing.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `forward` | `boolean`: the direction to search <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setFindListener(android.webkit.WebView.FindListener)`

### flingScroll

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void flingScroll (int vx, 
                int vy)
```

This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `vx` | `int` <br /> |
| `vy` | `int` <br /> |

### freeMemory

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void freeMemory ()
```


**This method was deprecated
in API level 19.**   

Memory caches are automatically dropped when no longer needed, and in response
to system memory pressure.

Informs this WebView that memory is low so that it can free any available
memory.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### getAccessibilityClassName

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence getAccessibilityClassName ()
```

Return the class name of this object to be used for accessibility purposes.
Subclasses should only override this if they are implementing something that
should be seen as a completely new class of view when used by accessibility,
unrelated to the class it is deriving from. This is used to fill in
`https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setClassName(java.lang.CharSequence)`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | <br /> |

### getAccessibilityNodeProvider

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeProvider getAccessibilityNodeProvider ()
```

Gets the provider for managing a virtual view hierarchy rooted at this View
and reported to `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`s
that explore the window content.


If this method returns an instance, this instance is responsible for managing
`https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo`s describing the virtual sub-tree rooted at this
View including the one representing the View itself. Similarly the returned
instance is responsible for performing accessibility actions on any virtual
view or the root view itself.


If an `https://developer.android.com/reference/android/view/View.AccessibilityDelegate` has been specified via calling
`https://developer.android.com/reference/android/view/View#setAccessibilityDelegate(android.view.View.AccessibilityDelegate)` its
`https://developer.android.com/reference/android/view/View.AccessibilityDelegate#getAccessibilityNodeProvider(android.view.View)`
is responsible for handling this call.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider` | The provider. <br /> |

### getCertificate

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public SslCertificate getCertificate ()
```

Gets the SSL certificate for the main top-level page or `null` if there is
no certificate (the site is not secure).


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/http/SslCertificate` | the SSL certificate for the main top-level page <br /> |

### getContentHeight

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getContentHeight ()
```

Gets the height of the HTML content.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `int` | the height of the HTML content <br /> |

### getCurrentWebViewPackage

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static PackageInfo getCurrentWebViewPackage ()
```

If WebView has already been loaded into the current process this method will return the
package that was used to load it. Otherwise, the package that would be used if the WebView
was loaded right now will be returned; this does not cause WebView to be loaded, so this
information may become outdated at any time.
The WebView package changes either when the current WebView package is updated, disabled, or
uninstalled. It can also be changed through a Developer Setting.
If the WebView package changes, any app process that has loaded WebView will be killed. The
next time the app starts and loads WebView it will use the new WebView package instead.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/pm/PackageInfo` | the current WebView package, or `null` if there is none. <br /> |

### getFavicon

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Bitmap getFavicon ()
```

Gets the favicon for the current page. This is the favicon of the current
page until WebViewClient.onReceivedIcon is called.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap` | the favicon for the current page or `null` if the page doesn't have one or if no page has been loaded <br /> |

### getHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Handler getHandler ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/Handler` | A handler associated with the thread running the View. This handler can be used to pump events in the UI events queue. <br /> |

### getHitTestResult

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebView.HitTestResult getHitTestResult ()
```

Gets a HitTestResult based on the current cursor node. If a HTML::a
tag is found and the anchor has a non-JavaScript URL, the HitTestResult
type is set to SRC_ANCHOR_TYPE and the URL is set in the "extra" field.
If the anchor does not have a URL or if it is a JavaScript URL, the type
will be UNKNOWN_TYPE and the URL has to be retrieved through
`https://developer.android.com/reference/android/webkit/WebView#requestFocusNodeHref(android.os.Message)` asynchronously. If a HTML::img tag is
found, the HitTestResult type is set to IMAGE_TYPE and the URL is set in
the "extra" field. A type of
SRC_IMAGE_ANCHOR_TYPE indicates an anchor with a URL that has an image as
a child node. If a phone number is found, the HitTestResult type is set
to PHONE_TYPE and the phone number is set in the "extra" field of
HitTestResult. If a map address is found, the HitTestResult type is set
to GEO_TYPE and the address is set in the "extra" field of HitTestResult.
If an email address is found, the HitTestResult type is set to EMAIL_TYPE
and the email is set in the "extra" field of HitTestResult. Otherwise,
HitTestResult type is set to UNKNOWN_TYPE.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebView.HitTestResult` | This value cannot be `null`. <br /> |

### getHttpAuthUsernamePassword

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String[] getHttpAuthUsernamePassword (String host, 
                String realm)
```


**This method was deprecated
in API level 26.**   

Use `https://developer.android.com/reference/android/webkit/WebViewDatabase#getHttpAuthUsernamePassword(java.lang.String,%20java.lang.String)` instead

Retrieves HTTP authentication credentials for a given host and realm from the `https://developer.android.com/reference/android/webkit/WebViewDatabase` instance.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `host` | `String`: the host to which the credentials apply <br /> |
| `realm` | `String`: the realm to which the credentials apply <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the credentials as a String array, if found. The first element is the username and the second element is the password. `null` if no credentials are found. <br /> |

### getOriginalUrl

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getOriginalUrl ()
```

Gets the original URL for the current page. This is not always the same
as the URL passed to WebViewClient.onPageStarted because although the
load for that URL has begun, the current page may not have changed.
Also, there may have been redirects resulting in a different URL to that
originally requested.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the URL that was originally requested for the current page or `null` if no page has been loaded <br /> |

### getProgress

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getProgress ()
```

Gets the progress for the current page.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `int` | the progress for the current page between 0 and 100 <br /> |

### getRendererPriorityWaivedWhenNotVisible

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean getRendererPriorityWaivedWhenNotVisible ()
```

Return whether this WebView requests a priority of
`https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED` when not visible.

<br />

| Returns ||
|---|---|
| `boolean` | whether this WebView requests a priority of `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED` when not visible. <br /> |

### getRendererRequestedPriority

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getRendererRequestedPriority ()
```

Get the requested renderer priority for this WebView.

<br />

| Returns ||
|---|---|
| `int` | the requested renderer priority policy. Value is one of the following: - `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED` - `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_BOUND` - `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_IMPORTANT` |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setRendererPriorityPolicy(int,%20boolean)`
- `https://developer.android.com/reference/android/webkit/RenderProcessGoneDetail#rendererPriorityAtExit()`

### getSafeBrowsingPrivacyPolicyUrl

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static Uri getSafeBrowsingPrivacyPolicyUrl ()
```

Returns a URL pointing to the privacy policy for Safe Browsing reporting.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the url pointing to a privacy policy document which can be displayed to users. This value cannot be `null`. <br /> |

### getScale

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getScale ()
```


**This method was deprecated
in API level 17.**   

This method is prone to inaccuracy due to race conditions
between the web rendering and UI threads; prefer
`https://developer.android.com/reference/android/webkit/WebViewClient#onScaleChanged(android.webkit.WebView,%20float,%20float)`.

Gets the current scale of this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `float` | the current scale <br /> |

### getSettings

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebSettings getSettings ()
```

Gets the WebSettings object used to control the settings for this
WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebSettings` | a WebSettings object that can be used to control this WebView's settings. This value cannot be `null`. <br /> |

### getTextClassifier

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TextClassifier getTextClassifier ()
```

Returns the `https://developer.android.com/reference/android/view/textclassifier/TextClassifier` used by this WebView.
If no TextClassifier has been set, this WebView uses the default set by the system.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/textclassifier/TextClassifier` | This value cannot be `null`. <br /> |

### getTitle

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getTitle ()
```

Gets the title for the current page. This is the title of the current page
until WebViewClient.onReceivedTitle is called.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the title for the current page or `null` if no page has been loaded <br /> |

### getUrl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getUrl ()
```

Gets the URL for the current page. This is not always the same as the URL
passed to WebViewClient.onPageStarted because although the load for
that URL has begun, the current page may not have changed.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the URL for the current page or `null` if no page has been loaded <br /> |

### getWebChromeClient

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebChromeClient getWebChromeClient ()
```

Gets the chrome handler.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebChromeClient` | the WebChromeClient, or `null` if not yet set <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setWebChromeClient(android.webkit.WebChromeClient)`

### getWebViewClassLoader

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ClassLoader getWebViewClassLoader ()
```

Returns the `https://developer.android.com/reference/java/lang/ClassLoader` used to load internal WebView classes.
This method is meant for use by the WebView Support Library, there is no reason to use this
method otherwise.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/ClassLoader` | This value cannot be `null`. <br /> |

### getWebViewClient

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebViewClient getWebViewClient ()
```

Gets the WebViewClient.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebViewClient` | the WebViewClient, or a default client if not yet set. This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#setWebViewClient(android.webkit.WebViewClient)`

### getWebViewLooper

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Looper getWebViewLooper ()
```

Returns the `https://developer.android.com/reference/android/os/Looper` corresponding to the thread on which WebView calls must be made.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/Looper` | This value cannot be `null`. <br /> |

### getWebViewRenderProcess

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebViewRenderProcess getWebViewRenderProcess ()
```

Gets a handle to the WebView renderer process associated with this WebView.

In `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O` and above, WebView may
run in "multiprocess" mode. In multiprocess mode, rendering of web
content is performed by a sandboxed renderer process separate to the
application process. This renderer process may be shared with other
WebViews in the application, but is not shared with other application
processes.

If WebView is running in multiprocess mode, this method returns a
handle to the renderer process associated with the WebView, which can
be used to control the renderer process.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebViewRenderProcess` | the `https://developer.android.com/reference/android/webkit/WebViewRenderProcess` renderer handle associated with this `https://developer.android.com/reference/android/webkit/WebView`, or `null` if WebView is not runing in multiprocess mode. <br /> |

### getWebViewRenderProcessClient

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebViewRenderProcessClient getWebViewRenderProcessClient ()
```

Gets the renderer client object associated with this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` | the `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` object associated with this WebView, if one has been set via `https://developer.android.com/reference/android/webkit/WebView#setWebViewRenderProcessClient(android.webkit.WebViewRenderProcessClient)` or `null` otherwise. <br /> |

### goBack

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void goBack ()
```

Goes back in the history of this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### goBackOrForward

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void goBackOrForward (int steps)
```

Goes to the history item that is the number of steps away from
the current item. Steps is negative if backward and positive
if forward.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `steps` | `int`: the number of steps to take back or forward in the back forward list <br /> |

### goForward

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void goForward ()
```

Goes forward in the history of this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### invokeZoomPicker

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void invokeZoomPicker ()
```

Invokes the graphical zoom picker widget for this WebView. This will
result in the zoom widget appearing on the screen to control the zoom
level of this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### isPrivateBrowsingEnabled

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isPrivateBrowsingEnabled ()
```

Gets whether private browsing is enabled in this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isVisibleToUserForAutofill

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isVisibleToUserForAutofill (int virtualId)
```

Computes whether this virtual autofill view is visible to the user.

**Note:** By default it returns `true`, but views providing a virtual hierarchy
view must override it.

<br />

| Parameters ||
|---|---|
| `virtualId` | `int` <br /> |

| Returns ||
|---|---|
| `boolean` | Whether the view is visible on the screen. <br /> |

### loadData

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void loadData (String data, 
                String mimeType, 
                String encoding)
```

Loads the given data into this WebView using a 'data' scheme URL.


Note that JavaScript's same origin policy means that script running in a
page loaded using this method will be unable to access content loaded
using any scheme other than 'data', including 'http(s)'. To avoid this
restriction, use `https://developer.android.com/reference/android/webkit/WebView#loadDataWithBaseURL(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)` with an appropriate base URL.


The `encoding` parameter specifies whether the data is base64 or URL
encoded. If the data is base64 encoded, the value of the encoding
parameter must be `"base64"`. HTML can be encoded with `https://developer.android.com/reference/android/util/Base64#encodeToString(byte[],%20int)` like so:

```
String unencodedHtml =
    "<html><body>'%28' is the code for '('</body></html>";
String encodedHtml = Base64.encodeToString(unencodedHtml.getBytes(), Base64.NO_PADDING);
webView.loadData(encodedHtml, "text/html", "base64");
```


For all other values of `encoding` (including `null`) it is assumed that the
data uses ASCII encoding for octets inside the range of safe URL characters and use the
standard %xx hex encoding of URLs for octets outside that range. See [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2.2) for more information.
Applications targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#Q` or later must either use
base64 or encode any `#` characters in the content as `%23`, otherwise they
will be treated as the end of the content and the remaining text used as a document
fragment identifier.


The `mimeType` parameter specifies the format of the data.
If WebView can't handle the specified MIME type, it will download the data.
If `null`, defaults to 'text/html'.


The 'data' scheme URL formed by this method uses the default US-ASCII
charset. If you need to set a different charset, you should form a
'data' scheme URL which explicitly specifies a charset parameter in the
mediatype portion of the URL and call `https://developer.android.com/reference/android/webkit/WebView#loadUrl(java.lang.String)` instead.
Note that the charset obtained from the mediatype portion of a data URL
always overrides that specified in the HTML or XML document itself.


Content loaded using this method will have a `window.origin` value
of `"null"`. This must not be considered to be a trusted origin
by the application or by any JavaScript code running inside the WebView
(for example, event sources in DOM event handlers or web messages),
because malicious content can also create frames with a null origin. If
you need to identify the main frame's origin in a trustworthy way, you
should use `https://developer.android.com/reference/android/webkit/WebView#loadDataWithBaseURL(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)` with a valid HTTP or HTTPS base URL to set the
origin.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `data` | `String`: a String of data in the given encoding. This value cannot be `null`. <br /> |
| `mimeType` | `String`: the MIME type of the data, e.g. 'text/html'. This value may be `null`. <br /> |
| `encoding` | `String`: the encoding of the data. This value may be `null`. <br /> |

### loadDataWithBaseURL

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void loadDataWithBaseURL (String baseUrl, 
                String data, 
                String mimeType, 
                String encoding, 
                String historyUrl)
```

Loads the given data into this WebView, using baseUrl as the base URL for
the content. The base URL is used both to resolve relative URLs and when
applying JavaScript's same origin policy. The historyUrl is used for the
history entry.


The `mimeType` parameter specifies the format of the data.
If WebView can't handle the specified MIME type, it will download the data.
If `null`, defaults to 'text/html'.


Note that content specified in this way can access local device files
(via 'file' scheme URLs) only if baseUrl specifies a scheme other than
'http', 'https', 'ftp', 'ftps', 'about' or 'javascript'.


If the base URL uses the data scheme, this method is equivalent to
calling `https://developer.android.com/reference/android/webkit/WebView#loadData(java.lang.String,%20java.lang.String,%20java.lang.String)` and the
historyUrl is ignored, and the data will be treated as part of a data: URL,
including the requirement that the content be URL-encoded or base64 encoded.
If the base URL uses any other scheme, then the data will be loaded into
the WebView as a plain string (i.e. not part of a data URL) and any URL-encoded
entities in the string will not be decoded.


Note that the baseUrl is sent in the 'Referer' HTTP header when
requesting subresources (images, etc.) of the page loaded using this method.


If a valid HTTP or HTTPS base URL is not specified in `baseUrl`, then
content loaded using this method will have a `window.origin` value
of `"null"`. This must not be considered to be a trusted origin
by the application or by any JavaScript code running inside the WebView
(for example, event sources in DOM event handlers or web messages),
because malicious content can also create frames with a null origin. If
you need to identify the main frame's origin in a trustworthy way, you
should use a valid HTTP or HTTPS base URL to set the origin.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `baseUrl` | `String`: the URL to use as the page's base URL. If `null` defaults to 'about:blank'. <br /> |
| `data` | `String`: a String of data in the given encoding. This value cannot be `null`. <br /> |
| `mimeType` | `String`: the MIME type of the data, e.g. 'text/html'. This value may be `null`. <br /> |
| `encoding` | `String`: the encoding of the data. This value may be `null`. <br /> |
| `historyUrl` | `String`: the URL to use as the history entry. If `null` defaults to 'about:blank'. If non-null, this must be a valid URL. <br /> |

### loadUrl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void loadUrl (String url)
```

Loads the given URL.


Also see compatibility note on `https://developer.android.com/reference/android/webkit/WebView#evaluateJavascript(java.lang.String,%20android.webkit.ValueCallback<java.lang.String>)`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `url` | `String`: the URL of the resource to load. This value cannot be `null`. <br /> |

### loadUrl

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void loadUrl (String url, 
                Map<String, String> additionalHttpHeaders)
```

Loads the given URL with additional HTTP headers, specified as a map from
name to value. Note that if this map contains any of the headers that are
set by default by this WebView, such as those controlling caching, accept
types or the User-Agent, their values may be overridden by this WebView's
defaults.


Some older WebView implementations require `additionalHttpHeaders`
to be mutable.


Also see compatibility note on `https://developer.android.com/reference/android/webkit/WebView#evaluateJavascript(java.lang.String,%20android.webkit.ValueCallback<java.lang.String>)`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `url` | `String`: the URL of the resource to load. This value cannot be `null`. <br /> |
| `additionalHttpHeaders` | `Map`: map with additional headers. This value cannot be `null`. <br /> |

### onApplyWindowInsets

Added in [API level 20](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WindowInsets onApplyWindowInsets (WindowInsets insets)
```

Called when the view should apply `https://developer.android.com/reference/android/view/WindowInsets` according to its internal policy.

This method should be overridden by views that wish to apply a policy different from or
in addition to the default behavior. Clients that wish to force a view subtree
to apply insets should call `https://developer.android.com/reference/android/view/View#dispatchApplyWindowInsets(android.view.WindowInsets)`.

Clients may supply an `https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener` to a view. If one is set
it will be called during dispatch instead of this method. The listener may optionally
call this method from its own implementation if it wishes to apply the view's default
insets policy in addition to its own.

Implementations of this method should either return the insets parameter unchanged
or a new `https://developer.android.com/reference/android/view/WindowInsets` cloned from the supplied insets with any insets consumed
that this view applied itself. This allows new inset types added in future platform
versions to pass through existing implementations unchanged without being erroneously
consumed.

By default if a view's `https://developer.android.com/reference/android/view/View#setFitsSystemWindows(boolean)`
property is set then the view will consume the system window insets and apply them
as padding for the view.

<br />

<br />

| Parameters ||
|---|---|
| `insets` | `WindowInsets`: Insets to apply <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/WindowInsets` | The supplied insets with any applied insets consumed <br /> |

### onCheckIsTextEditor

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onCheckIsTextEditor ()
```

Check whether the called view is a text editor, in which case it
would make sense to automatically display a soft input window for
it. Subclasses should override this if they implement
`https://developer.android.com/reference/android/view/View#onCreateInputConnection(android.view.inputmethod.EditorInfo)` to return true if
a call on that method would return a non-null InputConnection, and
they are really a first-class editor that the user would normally
start typing on when the go into a window containing your view.

The default implementation always returns false. This does
*not* mean that its `https://developer.android.com/reference/android/view/View#onCreateInputConnection(android.view.inputmethod.EditorInfo)`
will not be called or the user can not otherwise perform edits on your
view; it is just a hint to the system that this is not the primary
purpose of this view.

<br />

| Returns ||
|---|---|
| `boolean` | Returns true if this view is a text editor, else false. <br /> |

### onChildViewAdded

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onChildViewAdded (View parent, 
                View child)
```


**This method is deprecated.**   

WebView no longer needs to implement
ViewGroup.OnHierarchyChangeListener. This method does nothing now.

Called when a new child is added to a parent view.

<br />

| Parameters ||
|---|---|
| `parent` | `View`: the view in which a child was added <br /> |
| `child` | `View`: the new child view added in the hierarchy <br /> |

### onChildViewRemoved

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onChildViewRemoved (View p, 
                View child)
```


**This method is deprecated.**   

WebView no longer needs to implement
ViewGroup.OnHierarchyChangeListener. This method does nothing now.

Called when a child is removed from a parent view.

<br />

| Parameters ||
|---|---|
| `p` | `View`: the view from which the child was removed <br /> |
| `child` | `View`: the child removed from the hierarchy <br /> |

### onCreateInputConnection

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
```

Creates a new InputConnection for an InputMethod to interact with the WebView.
This is similar to `https://developer.android.com/reference/android/view/View#onCreateInputConnection(android.view.inputmethod.EditorInfo)` but note that WebView
calls InputConnection methods on a thread other than the UI thread.
If these methods are overridden, then the overriding methods should respect
thread restrictions when calling View methods or accessing data.

<br />

| Parameters ||
|---|---|
| `outAttrs` | `EditorInfo`: Fill in with attribute information about the connection. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/inputmethod/InputConnection` | <br /> |

### onCreateVirtualViewTranslationRequests

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onCreateVirtualViewTranslationRequests (long[] virtualIds, 
                int[] supportedFormats, 
                Consumer<ViewTranslationRequest> requestsCollector)
```

Collects `https://developer.android.com/reference/android/view/translation/ViewTranslationRequest`s which represents the content to be translated
for the virtual views in the host view. This is called if this view returned a virtual
view structure from `https://developer.android.com/reference/android/view/View#onProvideContentCaptureStructure(android.view.ViewStructure,%20int)` and the system determined that
those virtual views were relevant for translation.

The default implementation does nothing.

<br />

<br />

| Parameters ||
|---|---|
| `virtualIds` | `long`: This value cannot be `null`. <br /> |
| `supportedFormats` | `int`: This value cannot be `null`. Value is one of the following: - `https://developer.android.com/reference/android/view/translation/TranslationSpec#DATA_FORMAT_TEXT` |
| `requestsCollector` | `Consumer`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `void` | This value may be `null`. <br /> |

### onDragEvent

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onDragEvent (DragEvent event)
```

Handles drag events sent by the system following a call to
`https://developer.android.com/reference/android/view/View#startDragAndDrop(android.content.ClipData,%20android.view.View.DragShadowBuilder,%20java.lang.Object,%20int)`.


The system calls this method and passes a `https://developer.android.com/reference/android/view/DragEvent` object in response to drag and
drop events. This method can then call `https://developer.android.com/reference/android/view/DragEvent#getAction()` to determine the state
of the drag and drop operation.


The default implementation returns `false` unless an `https://developer.android.com/reference/android/view/OnReceiveContentListener`
has been set for this view (see `https://developer.android.com/reference/android/view/View#setOnReceiveContentListener(java.lang.String[],%20android.view.OnReceiveContentListener)`), in which case
the default implementation does the following:

- Returns `true` for an `https://developer.android.com/reference/android/view/DragEvent#ACTION_DRAG_STARTED` event
- Calls `https://developer.android.com/reference/android/view/View#performReceiveContent(android.view.ContentInfo)` for an `https://developer.android.com/reference/android/view/DragEvent#ACTION_DROP` event
- Returns `true` for an `https://developer.android.com/reference/android/view/DragEvent#ACTION_DROP` event if the `OnReceiveContentListener` consumed some or all of the content

<br />

<br />

| Parameters ||
|---|---|
| `event` | `DragEvent`: The `https://developer.android.com/reference/android/view/DragEvent` object sent by the system. The `https://developer.android.com/reference/android/view/DragEvent#getAction()` method returns an action type constant that indicates the type of drag event represented by this object. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if the method successfully handled the drag event, otherwise `false`. The method must return `true` in response to an `https://developer.android.com/reference/android/view/DragEvent#ACTION_DRAG_STARTED` action type to continue to receive drag events for the current drag and drop operation. The method should return `true` in response to an `https://developer.android.com/reference/android/view/DragEvent#ACTION_DROP` action type if the dropped data was consumed (at least partially); `false`, if none of the data was consumed. For all other events, the return value is `false`. |

### onFinishTemporaryDetach

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onFinishTemporaryDetach ()
```

Called after `https://developer.android.com/reference/android/view/View#onStartTemporaryDetach()` when the container is done
changing the view.

<br />

### onGenericMotionEvent

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onGenericMotionEvent (MotionEvent event)
```

Implement this method to handle generic motion events.


Generic motion events describe joystick movements, hover events from mouse or stylus
devices, trackpad touches, scroll wheel movements and other motion events not handled
by `https://developer.android.com/reference/android/view/View#onTouchEvent(android.view.MotionEvent)` or `https://developer.android.com/reference/android/view/View#onTrackballEvent(android.view.MotionEvent)`.
The `https://developer.android.com/reference/android/view/MotionEvent#getSource()` of the motion event specifies
the class of input that was received. Implementations of this method
must examine the bits in the source before processing the event.
The following code example shows how this is done.


Generic motion events with source class `https://developer.android.com/reference/android/view/InputDevice#SOURCE_CLASS_POINTER`
are delivered to the view under the pointer. All other generic motion events are
delivered to the focused view.

```
 public boolean onGenericMotionEvent(MotionEvent event) {
    if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) {
        if (event.getAction() == MotionEvent.ACTION_MOVE) {
            // process the joystick movement...
            return true;
        }
    }
    if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) {
        switch (event.getAction()) {
            case MotionEvent.ACTION_HOVER_MOVE:
                // process the hover movement...
                return true;
            case MotionEvent.ACTION_SCROLL:
                // process the scroll wheel movement...
                return true;
        }
    }
    return super.onGenericMotionEvent(event);
}
```

<br />

<br />

| Parameters ||
|---|---|
| `event` | `MotionEvent`: The generic motion event being processed. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the event was handled, false otherwise. <br /> |

### onGlobalFocusChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onGlobalFocusChanged (View oldFocus, 
                View newFocus)
```


**This method is deprecated.**   

WebView should not have implemented
ViewTreeObserver.OnGlobalFocusChangeListener. This method does nothing now.

Callback method to be invoked when the focus changes in the view tree. When
the view tree transitions from touch mode to non-touch mode, oldFocus is null.
When the view tree transitions from non-touch mode to touch mode, newFocus is
null. When focus changes in non-touch mode (without transition from or to
touch mode) either oldFocus or newFocus can be null.

<br />

| Parameters ||
|---|---|
| `oldFocus` | `View`: The previously focused view, if any. <br /> |
| `newFocus` | `View`: The newly focused View, if any. <br /> |

### onHoverEvent

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onHoverEvent (MotionEvent event)
```

Implement this method to handle hover events.


This method is called whenever a pointer is hovering into, over, or out of the
bounds of a view and the view is not currently being touched.
Hover events are represented as pointer events with action
`https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_ENTER`, `https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_MOVE`,
or `https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_EXIT`.

- The view receives a hover event with action `https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_ENTER` when the pointer enters the bounds of the view.
- The view receives a hover event with action `https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_MOVE` when the pointer has already entered the bounds of the view and has moved.
- The view receives a hover event with action `https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_EXIT` when the pointer has exited the bounds of the view or when the pointer is about to go down due to a button click, tap, or similar user action that causes the view to be touched.


The view should implement this method to return true to indicate that it is
handling the hover event, such as by changing its drawable state.


The default implementation calls `https://developer.android.com/reference/android/view/View#setHovered(boolean)` to update the hovered state
of the view when a hover enter or hover exit event is received, if the view
is enabled and is clickable. The default implementation also sends hover
accessibility events.

<br />

<br />

| Parameters ||
|---|---|
| `event` | `MotionEvent`: The motion event that describes the hover. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the view handled the hover event. <br /> |

### onKeyDown

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onKeyDown (int keyCode, 
                KeyEvent event)
```

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyDown(int,%20android.view.KeyEvent)`: perform press of the view
when `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER` or `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_ENTER`
is released, if the view is enabled and clickable.


Key presses in software keyboards will generally NOT trigger this
listener, although some may elect to do so in some situations. Do not
rely on this to catch software key presses.

<br />

| Parameters ||
|---|---|
| `keyCode` | `int`: a key code that represents the button pressed, from `https://developer.android.com/reference/android/view/KeyEvent` <br /> |
| `event` | `KeyEvent`: the KeyEvent object that defines the button action <br /> |

| Returns ||
|---|---|
| `boolean` | If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false. <br /> |

### onKeyMultiple

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onKeyMultiple (int keyCode, 
                int repeatCount, 
                KeyEvent event)
```

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)`: always returns false (doesn't handle
the event).

Key presses in software keyboards will generally NOT trigger this listener,
although some may elect to do so in some situations. Do not rely on this to
catch software key presses.

<br />

| Parameters ||
|---|---|
| `keyCode` | `int`: A key code that represents the button pressed, from `https://developer.android.com/reference/android/view/KeyEvent`. <br /> |
| `repeatCount` | `int`: The number of times the action was made. <br /> |
| `event` | `KeyEvent`: The KeyEvent object that defines the button action. <br /> |

| Returns ||
|---|---|
| `boolean` | If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false. <br /> |

### onKeyUp

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onKeyUp (int keyCode, 
                KeyEvent event)
```

Default implementation of `https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyUp(int,%20android.view.KeyEvent)`: perform clicking of the view
when `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER`, `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_ENTER`
or `https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_SPACE` is released.

Key presses in software keyboards will generally NOT trigger this listener,
although some may elect to do so in some situations. Do not rely on this to
catch software key presses.

<br />

| Parameters ||
|---|---|
| `keyCode` | `int`: A key code that represents the button pressed, from `https://developer.android.com/reference/android/view/KeyEvent`. <br /> |
| `event` | `KeyEvent`: The KeyEvent object that defines the button action. <br /> |

| Returns ||
|---|---|
| `boolean` | If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false. <br /> |

### onPause

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onPause ()
```

Does a best-effort attempt to pause any processing that can be paused
safely, such as animations and geolocation. Note that this call
does not pause JavaScript. To pause JavaScript globally, use
`https://developer.android.com/reference/android/webkit/WebView#pauseTimers()`.

To resume WebView, call `https://developer.android.com/reference/android/webkit/WebView#onResume()`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### onProvideAutofillVirtualStructure

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onProvideAutofillVirtualStructure (ViewStructure structure, 
                int flags)
```

Populates a `https://developer.android.com/reference/android/view/ViewStructure` containing virtual children to fullfil an autofill
request.

This method should be used when the view manages a virtual structure under this view. For
example, a view that draws input fields using `https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)`.

When implementing this method, subclasses must follow the rules below:

- Add virtual children by calling the `https://developer.android.com/reference/android/view/ViewStructure#newChild(int)` or `https://developer.android.com/reference/android/view/ViewStructure#asyncNewChild(int)` methods, where the `id` is an unique id identifying the children in the virtual structure.
- The children hierarchy can have multiple levels if necessary, but ideally it should exclude intermediate levels that are irrelevant for autofill; that would improve the autofill performance.
- Also implement `https://developer.android.com/reference/android/view/View#autofill(android.util.SparseArray<android.view.autofill.AutofillValue>)` to autofill the virtual children.
- Set the autofill properties of the child structure as defined by `https://developer.android.com/reference/android/view/View#onProvideAutofillStructure(android.view.ViewStructure,%20int)`, using `https://developer.android.com/reference/android/view/ViewStructure#setAutofillId(android.view.autofill.AutofillId,%20int)` to set its autofill id.
- Call `https://developer.android.com/reference/android/view/autofill/AutofillManager#notifyViewEntered(android.view.View,%20int,%20android.graphics.Rect)` and/or `https://developer.android.com/reference/android/view/autofill/AutofillManager#notifyViewExited(android.view.View,%20int)` when the focused virtual child changed.
- Override `https://developer.android.com/reference/android/view/View#isVisibleToUserForAutofill(int)` to allow the platform to query whether a given virtual view is visible to the user in order to support triggering save when all views of interest go away.
- Call `https://developer.android.com/reference/android/view/autofill/AutofillManager#notifyValueChanged(android.view.View,%20int,%20android.view.autofill.AutofillValue)` when the value of a virtual child changed.
- Call `https://developer.android.com/reference/android/view/autofill/AutofillManager#notifyViewVisibilityChanged(android.view.View,%20int,%20boolean)` when the visibility of a virtual child changed.
- Call `https://developer.android.com/reference/android/view/autofill/AutofillManager#notifyViewClicked(android.view.View,%20int)` when a virtual child is clicked.
- Call `https://developer.android.com/reference/android/view/autofill/AutofillManager#commit()` when the autofill context of the view structure changed and the current context should be committed (for example, when the user tapped a `SUBMIT` button in an HTML page).
- Call `https://developer.android.com/reference/android/view/autofill/AutofillManager#cancel()` when the autofill context of the view structure changed and the current context should be canceled (for example, when the user tapped a `CANCEL` button in an HTML page).
- Provide ways for users to manually request autofill by calling `https://developer.android.com/reference/android/view/autofill/AutofillManager#requestAutofill(android.view.View,%20int,%20android.graphics.Rect)`.
- The `left` and `top` values set in `https://developer.android.com/reference/android/view/ViewStructure#setDimens(int,%20int,%20int,%20int,%20int,%20int)` must be relative to the next `https://developer.android.com/reference/android/view/View#isImportantForAutofill()` predecessor view included in the structure.

Views with virtual children support the Autofill Framework mainly by:

- Providing the metadata defining what the virtual children mean and how they can be autofilled.
- Implementing the methods that autofill the virtual children.

This method is responsible for the former; `https://developer.android.com/reference/android/view/View#autofill(android.util.SparseArray<android.view.autofill.AutofillValue>)` is responsible
for the latter.

The `https://developer.android.com/reference/android/view/ViewStructure` traditionally represents a `https://developer.android.com/reference/android/view/View`, while for web pages
it represent HTML nodes. Hence, it's necessary to "map" the HTML properties in a way that is
understood by the `https://developer.android.com/reference/android/service/autofill/AutofillService` implementations:

1. Only the HTML nodes inside a `FORM` are generated.
2. The source of the HTML is set using `https://developer.android.com/reference/android/view/ViewStructure#setWebDomain(java.lang.String)` in the node representing the WebView.
3. If a web page has multiple `FORM`s, only the data for the current form is represented---if the user taps a field from another form, then the current autofill context is canceled (by calling `https://developer.android.com/reference/android/view/autofill/AutofillManager#cancel()` and a new context is created for that `FORM`.
4. Similarly, if the page has `IFRAME` nodes, they are not initially represented in the view structure until the user taps a field from a `FORM` inside the `IFRAME`, in which case it would be treated the same way as multiple forms described above, except that the `https://developer.android.com/reference/android/view/ViewStructure#setWebDomain(java.lang.String)` of the `FORM` contains the `src` attribute from the `IFRAME` node.
5. The W3C autofill field (`autocomplete` tag attribute) maps to `https://developer.android.com/reference/android/view/ViewStructure#setAutofillHints(java.lang.String[])`.
6. If the view is editable, the `https://developer.android.com/reference/android/view/ViewStructure#setAutofillType(int)` and `https://developer.android.com/reference/android/view/ViewStructure#setAutofillValue(android.view.autofill.AutofillValue)` must be set.
7. The `placeholder` attribute maps to `https://developer.android.com/reference/android/view/ViewStructure#setHint(java.lang.CharSequence)`.
8. Other HTML attributes can be represented through `https://developer.android.com/reference/android/view/ViewStructure#setHtmlInfo(android.view.ViewStructure.HtmlInfo)`.

If the WebView implementation can determine that the value of a field was set statically
(for example, not through Javascript), it should also call
`structure.setDataIsSensitive(false)`.

For example, an HTML form with 2 fields for username and password:

```
   <label>Username:</label>
   <input type="text" name="username" id="user" value="Type your username" autocomplete="username" placeholder="Email or username">
   <label>Password:</label>
   <input type="password" name="password" id="pass" autocomplete="current-password" placeholder="Password">
```

Would map to:

```
    int index = structure.addChildCount(2);
    ViewStructure username = structure.newChild(index);
    username.setAutofillId(structure.getAutofillId(), 1); // id 1 - first child
    username.setAutofillHints("username");
    username.setHtmlInfo(username.newHtmlInfoBuilder("input")
        .addAttribute("type", "text")
        .addAttribute("name", "username")
        .addAttribute("label", "Username:")
        .build());
    username.setHint("Email or username");
    username.setAutofillType(View.AUTOFILL_TYPE_TEXT);
    username.setAutofillValue(AutofillValue.forText("Type your username"));
    // Value of the field is not sensitive because it was created statically and not changed.
    username.setDataIsSensitive(false);

    ViewStructure password = structure.newChild(index + 1);
    username.setAutofillId(structure, 2); // id 2 - second child
    password.setAutofillHints("current-password");
    password.setHtmlInfo(password.newHtmlInfoBuilder("input")
        .addAttribute("type", "password")
        .addAttribute("name", "password")
        .addAttribute("label", "Password:")
        .build());
    password.setHint("Password");
    password.setAutofillType(View.AUTOFILL_TYPE_TEXT);
```

<br />

<br />

| Parameters ||
|---|---|
| `structure` | `ViewStructure`: fill in with virtual children data for autofill purposes. <br /> |
| `flags` | `int`: optional flags. <br /> |

### onProvideContentCaptureStructure

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onProvideContentCaptureStructure (ViewStructure structure, 
                int flags)
```

Populates a `https://developer.android.com/reference/android/view/ViewStructure` for content capture.

This method is called after a view that is eligible for content capture
(for example, if it `https://developer.android.com/reference/android/view/View#isImportantForContentCapture()`, an intelligence service is
enabled for the user, and the activity rendering the view is enabled for content capture)
is laid out and is visible. The populated structure is then passed to the service through
`https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession#notifyViewAppeared(android.view.ViewStructure)`.

The default implementation of this method sets the most relevant properties based on
related `https://developer.android.com/reference/android/view/View` methods, and views in the standard Android widgets library also
override it to set their relevant properties. Therefore, if overriding this method, it
is recommended to call `super.onProvideContentCaptureStructure()`.

**Note:** views that manage a virtual structure under this view must populate just
the node representing this view and return right away, then asynchronously report (not
necessarily in the UI thread) when the children nodes appear, disappear or have their text
changed by calling
`https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession#notifyViewAppeared(android.view.ViewStructure)`,
`https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession#notifyViewDisappeared(android.view.autofill.AutofillId)`, and
`https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession#notifyViewTextChanged(android.view.autofill.AutofillId,%20java.lang.CharSequence)`
respectively. The structure for a child must be created using
`https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession#newVirtualViewStructure(android.view.autofill.AutofillId,%20long)`, and the
`autofillId` for a child can be obtained either through
`childStructure.getAutofillId()` or
`https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession#newAutofillId(android.view.autofill.AutofillId,%20long)`.

When the virtual view hierarchy represents a web page, you should also:

- Call `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureManager#getContentCaptureConditions()` to infer content capture events should be generate for that URL.
- Create a new `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession` child for every HTML element that renders a new URL (like an `IFRAME`) and use that session to notify events from that subtree.

**Note:** the following methods of the `structure` will be ignored:

- `https://developer.android.com/reference/android/view/ViewStructure#setChildCount(int)`
- `https://developer.android.com/reference/android/view/ViewStructure#addChildCount(int)`
- `https://developer.android.com/reference/android/view/ViewStructure#getChildCount()`
- `https://developer.android.com/reference/android/view/ViewStructure#newChild(int)`
- `https://developer.android.com/reference/android/view/ViewStructure#asyncNewChild(int)`
- `https://developer.android.com/reference/android/view/ViewStructure#asyncCommit()`
- `https://developer.android.com/reference/android/view/ViewStructure#setWebDomain(java.lang.String)`
- `https://developer.android.com/reference/android/view/ViewStructure#newHtmlInfoBuilder(java.lang.String)`
- `https://developer.android.com/reference/android/view/ViewStructure#setHtmlInfo(android.view.ViewStructure.HtmlInfo)`
- `https://developer.android.com/reference/android/view/ViewStructure#setDataIsSensitive(boolean)`
- `https://developer.android.com/reference/android/view/ViewStructure#setAlpha(float)`
- `https://developer.android.com/reference/android/view/ViewStructure#setElevation(float)`
- `https://developer.android.com/reference/android/view/ViewStructure#setTransformation(android.graphics.Matrix)`

<br />

<br />

| Parameters ||
|---|---|
| `structure` | `ViewStructure`: This value cannot be `null`. <br /> |
| `flags` | `int` <br /> |

### onProvideVirtualStructure

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onProvideVirtualStructure (ViewStructure structure)
```

Called when assist structure is being retrieved from a view as part of
`https://developer.android.com/reference/android/app/Activity#onProvideAssistData(android.os.Bundle)` to
generate additional virtual structure under this view. The default implementation
uses `https://developer.android.com/reference/android/view/View#getAccessibilityNodeProvider()` to try to generate this from the
view's virtual accessibility nodes, if any. You can override this for a more
optimal implementation providing this data.

<br />

| Parameters ||
|---|---|
| `structure` | `ViewStructure` <br /> |

### onResolvePointerIcon

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PointerIcon onResolvePointerIcon (MotionEvent event, 
                int pointerIndex)
```

Resolve the pointer icon that should be used for specified pointer in the motion event.

The default implementation will resolve the pointer icon to one set using
`https://developer.android.com/reference/android/view/View#setPointerIcon(android.view.PointerIcon)` for mouse devices. Subclasses may override this to
customize the icon for the given pointer.

For example, to always show the PointerIcon.TYPE_HANDWRITING icon for a stylus pointer,
the event can be resolved in the following way:

    @Override
    public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) {
        final int toolType = event.getToolType(pointerIndex);
        if (!event.isFromSource(InputDevice.SOURCE_MOUSE)
                && event.isFromSource(InputDevice.SOURCE_STYLUS)
                && (toolType == MotionEvent.TOOL_TYPE_STYLUS
                        || toolType == MotionEvent.TOOL_TYPE_ERASER)) {
            // Show this pointer icon only if this pointer is a stylus.
            return PointerIcon.getSystemIcon(mContext, PointerIcon.TYPE_HANDWRITING);
        }
        // Use the default logic for determining the pointer icon for other non-stylus pointers,
        // like for the mouse cursor.
        return super.onResolvePointerIcon(event, pointerIndex);
    }

<br />

<br />

| Parameters ||
|---|---|
| `event` | `MotionEvent`: This value cannot be `null`. <br /> |
| `pointerIndex` | `int`: The index of the pointer in `event` for which to retrieve the `https://developer.android.com/reference/android/view/PointerIcon`. This will be between 0 and `https://developer.android.com/reference/android/view/MotionEvent#getPointerCount()`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/PointerIcon` | This value may be `null`. <br /> |

### onResume

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onResume ()
```

Resumes a WebView after a previous call to `https://developer.android.com/reference/android/webkit/WebView#onPause()`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### onStartTemporaryDetach

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onStartTemporaryDetach ()
```

This is called when a container is going to temporarily detach a child, with
`https://developer.android.com/reference/android/view/ViewGroup#detachViewFromParent(android.view.View)`.
It will either be followed by `https://developer.android.com/reference/android/view/View#onFinishTemporaryDetach()` or
`https://developer.android.com/reference/android/view/View#onDetachedFromWindow()` when the container is done.

<br />

### onTouchEvent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onTouchEvent (MotionEvent event)
```

Implement this method to handle pointer events.


This method is called to handle motion events where pointers are down on
the view. For example, this could include touchscreen touches, stylus
touches, or click-and-drag events from a mouse. However, it is not called
for motion events that do not involve pointers being down, such as hover
events or mouse scroll wheel movements.


If this method is used to detect click actions, it is recommended that
the actions be performed by implementing and calling
`https://developer.android.com/reference/android/view/View#performClick()`. This will ensure consistent system behavior,
including:

- obeying click sound preferences
- dispatching OnClickListener calls
- handling `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_CLICK` when accessibility features are enabled

<br />

<br />

| Parameters ||
|---|---|
| `event` | `MotionEvent`: The motion event. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the event was handled, false otherwise. <br /> |

### onTrackballEvent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean onTrackballEvent (MotionEvent event)
```

Implement this method to handle trackball motion events.


The *relative* movement of the trackball since the last event
can be retrieve with `https://developer.android.com/reference/android/view/MotionEvent#getX()` and
`https://developer.android.com/reference/android/view/MotionEvent#getY()`. These are normalized so
that a movement of 1 corresponds to the user pressing one DPAD key (so
they will often be fractional values, representing the more fine-grained
movement information available from a trackball).

<br />

<br />

| Parameters ||
|---|---|
| `event` | `MotionEvent`: The motion event. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the event was handled, false otherwise. <br /> |

### onVirtualViewTranslationResponses

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onVirtualViewTranslationResponses (LongSparseArray<ViewTranslationResponse> response)
```

Called when the content from `https://developer.android.com/reference/android/view/View#onCreateVirtualViewTranslationRequests(long[],%20int[],%20java.util.function.Consumer<android.view.translation.ViewTranslationRequest>)` had been
translated by the TranslationService.

The default implementation does nothing.

<br />

<br />

| Parameters ||
|---|---|
| `response` | `LongSparseArray`: This value cannot be `null`. <br /> |

### onWindowFocusChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onWindowFocusChanged (boolean hasWindowFocus)
```

Called when the window containing this view gains or loses focus. Note
that this is separate from view focus: to receive key events, both
your view and its window must have focus. If a window is displayed
on top of yours that takes input focus, then your own window will lose
focus but the view focus will remain unchanged.

<br />

| Parameters ||
|---|---|
| `hasWindowFocus` | `boolean`: True if the window containing this view now has focus, false otherwise. <br /> |

### overlayHorizontalScrollbar

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean overlayHorizontalScrollbar ()
```


**This method was deprecated
in API level 23.**   

This method is now obsolete.

Gets whether horizontal scrollbar has overlay style.

<br />

| Returns ||
|---|---|
| `boolean` | `true` <br /> |

### overlayVerticalScrollbar

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean overlayVerticalScrollbar ()
```


**This method was deprecated
in API level 23.**   

This method is now obsolete.

Gets whether vertical scrollbar has overlay style.

<br />

| Returns ||
|---|---|
| `boolean` | `false` <br /> |

### pageDown

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean pageDown (boolean bottom)
```

Scrolls the contents of this WebView down by half the page size.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `bottom` | `boolean`: `true` to jump to bottom of page <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if the page was scrolled <br /> |

### pageUp

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean pageUp (boolean top)
```

Scrolls the contents of this WebView up by half the view size.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `top` | `boolean`: `true` to jump to the top of the page <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if the page was scrolled <br /> |

### pauseTimers

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void pauseTimers ()
```

Pauses all layout, parsing, and JavaScript timers for all WebViews. This
is a global requests, not restricted to just this WebView. This can be
useful if the application has been paused.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### performLongClick

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean performLongClick ()
```

Calls this view's OnLongClickListener, if it is defined. Invokes the
context menu if the OnLongClickListener did not consume the event.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if one of the above receivers consumed the event, `false` otherwise <br /> |

### postUrl

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void postUrl (String url, 
                byte[] postData)
```

Loads the URL with postData using "POST" method into this WebView. If url
is not a network URL, it will be loaded with `https://developer.android.com/reference/android/webkit/WebView#loadUrl(java.lang.String)`
instead, ignoring the postData param.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `url` | `String`: the URL of the resource to load. This value cannot be `null`. <br /> |
| `postData` | `byte`: the data will be passed to "POST" request, which must be be "application/x-www-form-urlencoded" encoded. This value cannot be `null`. <br /> |

### postVisualStateCallback

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void postVisualStateCallback (long requestId, 
                WebView.VisualStateCallback callback)
```

Posts a `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback`, which will be called when
the current state of the WebView is ready to be drawn.

Because updates to the DOM are processed asynchronously, updates to the DOM may not
immediately be reflected visually by subsequent `https://developer.android.com/reference/android/webkit/WebView#onDraw(android.graphics.Canvas)` invocations. The
`https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback` provides a mechanism to notify the caller when the contents of
the DOM at the current time are ready to be drawn the next time the `https://developer.android.com/reference/android/webkit/WebView`
draws.

The next draw after the callback completes is guaranteed to reflect all the updates to the
DOM up to the point at which the `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback` was posted, but it may also
contain updates applied after the callback was posted.

The state of the DOM covered by this API includes the following:

- primitive HTML elements (div, img, span, etc..)
- images
- CSS animations
- WebGL
- canvas

It does not include the state of:

<!-- -->

- the video tag

To guarantee that the `https://developer.android.com/reference/android/webkit/WebView` will successfully render the first frame
after the `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback#onComplete(long)` method has been called a set of conditions
must be met:

- If the `https://developer.android.com/reference/android/webkit/WebView`'s visibility is set to `https://developer.android.com/reference/android/view/View#VISIBLE` then the `https://developer.android.com/reference/android/webkit/WebView` must be attached to the view hierarchy.
- If the `https://developer.android.com/reference/android/webkit/WebView`'s visibility is set to `https://developer.android.com/reference/android/view/View#INVISIBLE` then the `https://developer.android.com/reference/android/webkit/WebView` must be attached to the view hierarchy and must be made `https://developer.android.com/reference/android/view/View#VISIBLE` from the `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback#onComplete(long)` method.
- If the `https://developer.android.com/reference/android/webkit/WebView`'s visibility is set to `https://developer.android.com/reference/android/view/View#GONE` then the `https://developer.android.com/reference/android/webkit/WebView` must be attached to the view hierarchy and its `https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams`'s width and height need to be set to fixed values and must be made `https://developer.android.com/reference/android/view/View#VISIBLE` from the `https://developer.android.com/reference/android/webkit/WebView.VisualStateCallback#onComplete(long)` method.

When using this API it is also recommended to enable pre-rasterization if the `https://developer.android.com/reference/android/webkit/WebView` is off screen to avoid flickering. See `https://developer.android.com/reference/android/webkit/WebSettings#setOffscreenPreRaster(boolean)` for
more details and do consider its caveats.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `requestId` | `long`: An id that will be returned in the callback to allow callers to match requests with callbacks. <br /> |
| `callback` | `WebView.VisualStateCallback`: The callback to be invoked. This value cannot be `null`. <br /> |

### postWebMessage

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void postWebMessage (WebMessage message, 
                Uri targetOrigin)
```

Post a message to main frame. The embedded application can restrict the
messages to a certain target origin. See
[HTML5 spec](https://html.spec.whatwg.org/multipage/comms.html#posting-messages) for how target origin can be used.


A target origin can be set as a wildcard ("\*"). However this is not recommended.
See the page above for security issues.


Content loaded via `https://developer.android.com/reference/android/webkit/WebView#loadData(java.lang.String,%20java.lang.String,%20java.lang.String)` will not have a
valid origin, and thus cannot be sent messages securely. If you need to send
messages using this function, you should use
`https://developer.android.com/reference/android/webkit/WebView#loadDataWithBaseURL(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)` with a valid
HTTP or HTTPS `baseUrl` to define a valid origin that can be used for
messaging.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `message` | `WebMessage`: the WebMessage. This value cannot be `null`. <br /> |
| `targetOrigin` | `Uri`: the target origin. This value cannot be `null`. <br /> |

### reload

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void reload ()
```

Reloads the current URL.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### removeJavascriptInterface

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void removeJavascriptInterface (String name)
```

Removes a previously injected Java object from this WebView. Note that
the removal will not be reflected in JavaScript until the page is next
(re)loaded. See `https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String)`.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `name` | `String`: the name used to expose the object in JavaScript. This value cannot be `null`. <br /> |

### requestChildRectangleOnScreen

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean requestChildRectangleOnScreen (View child, 
                Rect rect, 
                boolean immediate)
```

Called when a child of this group wants a particular rectangle to be
positioned onto the screen. `https://developer.android.com/reference/android/view/ViewGroup`s overriding this can trust
that:

- `child` will be a direct child of this group
- `rectangle` will be in the child's content coordinates

`https://developer.android.com/reference/android/view/ViewGroup`s overriding this should uphold the contract:

- nothing will change if the rectangle is already visible
- the view port will be scrolled only just enough to make the rectangle visible

<br />

<br />

| Parameters ||
|---|---|
| `child` | `View`: The direct child making the request. This value cannot be `null`. <br /> |
| `rect` | `Rect`: The rectangle in the child's coordinates the child wishes to be on the screen. <br /> |
| `immediate` | `boolean`: True to forbid animated or delayed scrolling, false otherwise <br /> |

| Returns ||
|---|---|
| `boolean` | Whether the group scrolled to handle the operation <br /> |

### requestFocus

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean requestFocus (int direction, 
                Rect previouslyFocusedRect)
```

Call this to try to give focus to a specific view or to one of its descendants
and give it hints about the direction and a specific rectangle that the focus
is coming from. The rectangle can help give larger views a finer grained hint
about where focus is coming from, and therefore, where to show selection, or
forward focus change internally.

A view will not actually take focus if it is not focusable (`https://developer.android.com/reference/android/view/View#isFocusable()` returns
false), or if it is focusable and it is not focusable in touch mode
(`https://developer.android.com/reference/android/view/View#isFocusableInTouchMode()`) while the device is in touch mode.

A View will not take focus if it is not visible.

A View will not take focus if one of its parents has
`https://developer.android.com/reference/android/view/ViewGroup#getDescendantFocusability()` equal to
`https://developer.android.com/reference/android/view/ViewGroup#FOCUS_BLOCK_DESCENDANTS`.

See also `https://developer.android.com/reference/android/view/View#focusSearch(int)`, which is what you call to say that you
have focus, and you want your parent to look for the next one.

You may wish to override this method if your custom `https://developer.android.com/reference/android/view/View` has an internal
`https://developer.android.com/reference/android/view/View` that it wishes to forward the request to.

Looks for a view to give focus to respecting the setting specified by
`https://developer.android.com/reference/android/view/ViewGroup#getDescendantFocusability()`.

Uses `https://developer.android.com/reference/android/view/ViewGroup#onRequestFocusInDescendants(int,%20android.graphics.Rect)` to
find focus within the children of this group when appropriate.

<br />

| Parameters ||
|---|---|
| `direction` | `int`: One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT <br /> |
| `previouslyFocusedRect` | `Rect`: The rectangle (in this View's coordinate system) to give a finer grained hint about where focus is coming from. May be null if there is no hint. <br /> |

| Returns ||
|---|---|
| `boolean` | Whether this view or one of its descendants actually took focus. <br /> |

### requestFocusNodeHref

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void requestFocusNodeHref (Message hrefMsg)
```

Requests the anchor or image element URL at the last tapped point.
If hrefMsg is `null`, this method returns immediately and does not
dispatch hrefMsg to its target. If the tapped point hits an image,
an anchor, or an image in an anchor, the message associates
strings in named keys in its data. The value paired with the key
may be an empty string.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `hrefMsg` | `Message`: the message to be dispatched with the result of the request. The message data contains three keys. "url" returns the anchor's href attribute. "title" returns the anchor's text. "src" returns the image's src attribute. This value may be `null`. <br /> |

### requestImageRef

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void requestImageRef (Message msg)
```

Requests the URL of the image last touched by the user. msg will be sent
to its target with a String representing the URL as its object.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `msg` | `Message`: the message to be dispatched with the result of the request as the data member with "url" as key. The result can be `null`. <br /> |

### restoreState

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebBackForwardList restoreState (Bundle inState)
```

Restores the state of this WebView from the given Bundle. This method is
intended for use in `https://developer.android.com/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle)`
and should be called to restore the state of this WebView. If
it is called after this WebView has had a chance to build state (load
pages, create a back/forward list, etc.) there may be undesirable
side-effects. Please note that this method no longer restores the
display data for this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `inState` | `Bundle`: the incoming Bundle of state. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebBackForwardList` | the restored back/forward list or `null` if restoreState failed <br /> |

### resumeTimers

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void resumeTimers ()
```

Resumes all layout, parsing, and JavaScript timers for all WebViews.
This will resume dispatching all timers.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### savePassword

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void savePassword (String host, 
                String username, 
                String password)
```


**This method was deprecated
in API level 18.**   

Saving passwords in WebView will not be supported in future versions.

Sets a username and password pair for the specified host. This data is
used by the WebView to autocomplete username and password fields in web
forms. Note that this is unrelated to the credentials used for HTTP
authentication.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `host` | `String`: the host that required the credentials <br /> |
| `username` | `String`: the username for the given host <br /> |
| `password` | `String`: the password for the given host <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebViewDatabase#clearUsernamePassword()`
- `https://developer.android.com/reference/android/webkit/WebViewDatabase#hasUsernamePassword()`

### saveState

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WebBackForwardList saveState (Bundle outState)
```

Saves the state of this WebView used in
`https://developer.android.com/reference/android/app/Activity#onSaveInstanceState(android.os.Bundle)`. Please note that this
method no longer stores the display data for this WebView. The previous
behavior could potentially leak files if `https://developer.android.com/reference/android/webkit/WebView#restoreState(android.os.Bundle)` was never
called.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `outState` | `Bundle`: the Bundle to store this WebView's state. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/webkit/WebBackForwardList` | the same copy of the back/forward list used to save the state, `null` if the method fails. <br /> |

### saveWebArchive

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void saveWebArchive (String filename)
```

Saves the current view as a web archive.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `filename` | `String`: the filename where the archive should be placed. This value cannot be `null`. <br /> |

### saveWebArchive

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void saveWebArchive (String basename, 
                boolean autoname, 
                ValueCallback<String> callback)
```

Saves the current view as a web archive.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `basename` | `String`: the filename where the archive should be placed. This value cannot be `null`. <br /> |
| `autoname` | `boolean`: if `false`, takes basename to be a file. If `true`, basename is assumed to be a directory in which a filename will be chosen according to the URL of the current page. <br /> |
| `callback` | `ValueCallback`: called after the web archive has been saved. The parameter for onReceiveValue will either be the filename under which the file was saved, or `null` if saving the file failed. <br /> |

### setBackgroundColor

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setBackgroundColor (int color)
```

Sets the background color for this view.

<br />

| Parameters ||
|---|---|
| `color` | `int`: the color of the background <br /> |

### setCertificate

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setCertificate (SslCertificate certificate)
```


**This method was deprecated
in API level 17.**   

Calling this function has no useful effect, and will be
ignored in future releases.

Sets the SSL certificate for the main top-level page.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `certificate` | `SslCertificate` <br /> |

### setDataDirectorySuffix

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void setDataDirectorySuffix (String suffix)
```

Define the directory used to store WebView data for the current process.
The provided suffix will be used when constructing data and cache
directory paths. If this API is not called, no suffix will be used.
Each directory can be used by only one process in the application. If more
than one process in an app wishes to use WebView, only one process can use
the default directory, and other processes must call this API to define
a unique suffix.


This means that different processes in the same application cannot directly
share WebView-related data, since the data directories must be distinct.
Applications that use this API may have to explicitly pass data between
processes. For example, login cookies may have to be copied from one
process's cookie jar to the other using `https://developer.android.com/reference/android/webkit/CookieManager` if both
processes' WebViews are intended to be logged in.


Most applications should simply ensure that all components of the app
that rely on WebView are in the same process, to avoid needing multiple
data directories. The `https://developer.android.com/reference/android/webkit/WebView#disableWebView()` method can be used to ensure
that the other processes do not use WebView by accident in this case.


This API must be called before any instances of WebView are created in
this process and before any other methods in the android.webkit package
are called by this process.

<br />

| Parameters ||
|---|---|
| `suffix` | `String`: The directory name suffix to be used for the current process. Must not contain a path separator. This value cannot be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the suffix contains a path separator. |
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if WebView has already been initialized in the current process. |

### setDownloadListener

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setDownloadListener (DownloadListener listener)
```

Registers the interface to be used when content can not be handled by
the rendering engine, and should be downloaded instead. This will replace
the current handler.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `listener` | `DownloadListener`: an implementation of DownloadListener. This value may be `null`. <br /> |

### setFindListener

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setFindListener (WebView.FindListener listener)
```

Registers the listener to be notified as find-on-page operations
progress. This will replace the current listener.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `listener` | `WebView.FindListener`: an implementation of `https://developer.android.com/reference/android/webkit/WebView.FindListener` This value may be `null`. <br /> |

### setHorizontalScrollbarOverlay

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setHorizontalScrollbarOverlay (boolean overlay)
```


**This method was deprecated
in API level 23.**   

This method has no effect.

Specifies whether the horizontal scrollbar has overlay style.

<br />

| Parameters ||
|---|---|
| `overlay` | `boolean`: `true` if horizontal scrollbar should have overlay style <br /> |

### setHttpAuthUsernamePassword

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setHttpAuthUsernamePassword (String host, 
                String realm, 
                String username, 
                String password)
```


**This method was deprecated
in API level 26.**   

Use `https://developer.android.com/reference/android/webkit/WebViewDatabase#setHttpAuthUsernamePassword(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)` instead

Stores HTTP authentication credentials for a given host and realm to the `https://developer.android.com/reference/android/webkit/WebViewDatabase`
instance.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `host` | `String`: the host to which the credentials apply <br /> |
| `realm` | `String`: the realm to which the credentials apply <br /> |
| `username` | `String`: the username <br /> |
| `password` | `String`: the password <br /> |

### setInitialScale

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setInitialScale (int scaleInPercent)
```

Sets the initial scale for this WebView. 0 means default.
The behavior for the default scale depends on the state of
`https://developer.android.com/reference/android/webkit/WebSettings#getUseWideViewPort()` and
`https://developer.android.com/reference/android/webkit/WebSettings#getLoadWithOverviewMode()`.
If the content fits into the WebView control by width, then
the zoom is set to 100%. For wide content, the behavior
depends on the state of `https://developer.android.com/reference/android/webkit/WebSettings#getLoadWithOverviewMode()`.
If its value is `true`, the content will be zoomed out to be fit
by width into the WebView control, otherwise not.

If initial scale is greater than 0, WebView starts with this value
as initial scale.
Please note that unlike the scale properties in the viewport meta tag,
this method doesn't take the screen density into account.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `scaleInPercent` | `int`: the initial scale in percent <br /> |

### setLayerType

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLayerType (int layerType, 
                Paint paint)
```

<br />

Specifies the type of layer backing this view. The layer can be
`https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE`, `https://developer.android.com/reference/android/view/View#LAYER_TYPE_SOFTWARE` or
`https://developer.android.com/reference/android/view/View#LAYER_TYPE_HARDWARE`.

A layer is associated with an optional `https://developer.android.com/reference/android/graphics/Paint`
instance that controls how the layer is composed on screen. The following
properties of the paint are taken into account when composing the layer:

- `https://developer.android.com/reference/android/graphics/Paint#getAlpha()`
- `https://developer.android.com/reference/android/graphics/Paint#getXfermode()`
- `https://developer.android.com/reference/android/graphics/Paint#getColorFilter()`

If this view has an alpha value set to \< 1.0 by calling
`https://developer.android.com/reference/android/view/View#setAlpha(float)`, the alpha value of the layer's paint is superseded
by this view's alpha value.

Refer to the documentation of `https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE`,
`https://developer.android.com/reference/android/view/View#LAYER_TYPE_SOFTWARE` and `https://developer.android.com/reference/android/view/View#LAYER_TYPE_HARDWARE`
for more information on when and how to use layers.

<br />

<br />

| Parameters ||
|---|---|
| `layerType` | `int`: The type of layer to use with this view, must be one of `https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE`, `https://developer.android.com/reference/android/view/View#LAYER_TYPE_SOFTWARE` or `https://developer.android.com/reference/android/view/View#LAYER_TYPE_HARDWARE` Value is one of the following: - `https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE` - `https://developer.android.com/reference/android/view/View#LAYER_TYPE_SOFTWARE` - `https://developer.android.com/reference/android/view/View#LAYER_TYPE_HARDWARE` |
| `paint` | `Paint`: The paint used to compose the layer. This argument is optional and can be null. It is ignored when the layer type is `https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE` <br /> |

### setLayoutParams

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLayoutParams (ViewGroup.LayoutParams params)
```

Set the layout parameters associated with this view. These supply
parameters to the *parent* of this view specifying how it should be
arranged. There are many subclasses of ViewGroup.LayoutParams, and these
correspond to the different subclasses of ViewGroup that are responsible
for arranging their children.

<br />

| Parameters ||
|---|---|
| `params` | `ViewGroup.LayoutParams`: The layout parameters for this view, cannot be null <br /> |

### setMapTrackballToArrowKeys

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setMapTrackballToArrowKeys (boolean setMap)
```


**This method was deprecated
in API level 17.**   

Only the default case, `true`, will be supported in a future version.

This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `setMap` | `boolean` <br /> |

### setNetworkAvailable

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setNetworkAvailable (boolean networkUp)
```

Informs WebView of the network state. This is used to set
the JavaScript property window.navigator.isOnline and
generates the online/offline event as specified in HTML5, sec. 5.7.7.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `networkUp` | `boolean`: a boolean indicating if network is available <br /> |

### setOverScrollMode

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setOverScrollMode (int mode)
```

Set the over-scroll mode for this view. Valid over-scroll modes are
`https://developer.android.com/reference/android/view/View#OVER_SCROLL_ALWAYS`, `https://developer.android.com/reference/android/view/View#OVER_SCROLL_IF_CONTENT_SCROLLS`
(allow over-scrolling only if the view content is larger than the container),
or `https://developer.android.com/reference/android/view/View#OVER_SCROLL_NEVER`.

Setting the over-scroll mode of a view will have an effect only if the
view is capable of scrolling.

This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `mode` | `int`: The new over-scroll mode for this view. <br /> |

### setPictureListener

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPictureListener (WebView.PictureListener listener)
```


**This method was deprecated
in API level 15.**   

This method is now obsolete.

Sets the Picture listener. This is an interface used to receive
notifications of a new Picture.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `listener` | `WebView.PictureListener`: an implementation of WebView.PictureListener <br /> |

### setRendererPriorityPolicy

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setRendererPriorityPolicy (int rendererRequestedPriority, 
                boolean waivedWhenNotVisible)
```

Set the renderer priority policy for this `https://developer.android.com/reference/android/webkit/WebView`. The
priority policy will be used to determine whether an out of
process renderer should be considered to be a target for OOM
killing.

Because a renderer can be associated with more than one
WebView, the final priority it is computed as the maximum of
any attached WebViews. When a WebView is destroyed it will
cease to be considerered when calculating the renderer
priority. Once no WebViews remain associated with the renderer,
the priority of the renderer will be reduced to
`https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED`.

The default policy is to set the priority to
`https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_IMPORTANT` regardless of visibility,
and this should not be changed unless the caller also handles
renderer crashes with
`https://developer.android.com/reference/android/webkit/WebViewClient#onRenderProcessGone(android.webkit.WebView,%20android.webkit.RenderProcessGoneDetail)`. Any other setting
will result in WebView renderers being killed by the system
more aggressively than the application.

<br />

| Parameters ||
|---|---|
| `rendererRequestedPriority` | `int`: the minimum priority at which this WebView desires the renderer process to be bound. Value is one of the following: - `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED` - `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_BOUND` - `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_IMPORTANT` |
| `waivedWhenNotVisible` | `boolean`: if `true`, this flag specifies that when this WebView is not visible, it will be treated as if it had requested a priority of `https://developer.android.com/reference/android/webkit/WebView#RENDERER_PRIORITY_WAIVED`. <br /> |

**See also:**

- `https://developer.android.com/`
- `https://developer.android.com/reference/android/webkit/RenderProcessGoneDetail#rendererPriorityAtExit()`

### setSafeBrowsingWhitelist

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void setSafeBrowsingWhitelist (List<String> hosts, 
                ValueCallback<Boolean> callback)
```

Sets the list of hosts (domain names/IP addresses) that are exempt from SafeBrowsing checks.
The list is global for all the WebViews.


Each rule should take one of these:

| Rule | Example | Matches Subdomain |
|---|---|---|
| HOSTNAME | example.com | Yes |
| .HOSTNAME | .example.com | No |
| IPV4_LITERAL | 192.168.1.1 | No |
| IPV6_LITERAL_WITH_BRACKETS | \[10:20:30:40:50:60:70:80\] | No |


All other rules, including wildcards, are invalid.


The correct syntax for hosts is defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3.2.2).

<br />

| Parameters ||
|---|---|
| `hosts` | `List`: the list of hosts. This value cannot be `null`. <br /> |
| `callback` | `ValueCallback`: will be called with `true` if hosts are successfully added to the allowlist. It will be called with `false` if any hosts are malformed. The callback will be run on the UI thread. This value may be `null`. <br /> |

### setScrollBarStyle

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setScrollBarStyle (int style)
```

<br />

Specify the style of the scrollbars. The scrollbars can be overlaid or
inset. When inset, they add to the padding of the view. And the scrollbars
can be drawn inside the padding area or on the edge of the view. For example,
if a view has a background drawable and you want to draw the scrollbars
inside the padding specified by the drawable, you can use
SCROLLBARS_INSIDE_OVERLAY or SCROLLBARS_INSIDE_INSET. If you want them to
appear at the edge of the view, ignoring the padding, then you can use
SCROLLBARS_OUTSIDE_OVERLAY or SCROLLBARS_OUTSIDE_INSET.

<br />

<br />

| Parameters ||
|---|---|
| `style` | `int`: the style of the scrollbars. Should be one of SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_INSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY or SCROLLBARS_OUTSIDE_INSET. Value is one of the following: - `https://developer.android.com/reference/android/view/View#SCROLLBARS_INSIDE_OVERLAY` - `https://developer.android.com/reference/android/view/View#SCROLLBARS_INSIDE_INSET` - `https://developer.android.com/reference/android/view/View#SCROLLBARS_OUTSIDE_OVERLAY` - `https://developer.android.com/reference/android/view/View#SCROLLBARS_OUTSIDE_INSET` |

### setTextClassifier

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setTextClassifier (TextClassifier textClassifier)
```

Sets the `https://developer.android.com/reference/android/view/textclassifier/TextClassifier` for this WebView.

<br />

| Parameters ||
|---|---|
| `textClassifier` | `TextClassifier`: This value may be `null`. <br /> |

### setVerticalScrollbarOverlay

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setVerticalScrollbarOverlay (boolean overlay)
```


**This method was deprecated
in API level 23.**   

This method has no effect.

Specifies whether the vertical scrollbar has overlay style.

<br />

| Parameters ||
|---|---|
| `overlay` | `boolean`: `true` if vertical scrollbar should have overlay style <br /> |

### setWebChromeClient

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setWebChromeClient (WebChromeClient client)
```

Sets the chrome handler. This is an implementation of WebChromeClient for
use in handling JavaScript dialogs, favicons, titles, and the progress.
This will replace the current handler.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `client` | `WebChromeClient`: an implementation of WebChromeClient. This value may be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#getWebChromeClient()`

### setWebContentsDebuggingEnabled

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void setWebContentsDebuggingEnabled (boolean enabled)
```

Enables debugging of web contents (HTML / CSS / JavaScript)
loaded into any WebViews of this application. This flag can be enabled
in order to facilitate debugging of web layouts and JavaScript
code running inside WebViews. Please refer to WebView documentation
for the debugging guide.


In WebView 113.0.5656.0 and later, this is enabled automatically if the
app is declared as
[`android:debuggable="true"`](https://developer.android.com/guide/topics/manifest/application-element#debug) in its manifest; otherwise, the
default is `false`.


Enabling web contents debugging allows the state of any WebView in the
app to be inspected and modified by the user via adb. This is a security
liability and should not be enabled in production builds of apps unless
this is an explicitly intended use of the app. More info on
[secure debug settings](https://developer.android.com/topic/security/risks/android-debuggable).

<br />

| Parameters ||
|---|---|
| `enabled` | `boolean`: whether to enable web contents debugging <br /> |

### setWebViewClient

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setWebViewClient (WebViewClient client)
```

Sets the WebViewClient that will receive various notifications and
requests. This will replace the current handler.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `client` | `WebViewClient`: an implementation of WebViewClient. This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/webkit/WebView#getWebViewClient()`

### setWebViewRenderProcessClient

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setWebViewRenderProcessClient (Executor executor, 
                WebViewRenderProcessClient webViewRenderProcessClient)
```

Sets the renderer client object associated with this WebView.

The renderer client encapsulates callbacks relevant to WebView renderer
state. See `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` for details.

Although many WebView instances may share a single underlying
renderer, and renderers may live either in the application
process, or in a sandboxed process that is isolated from the
application process, instances of `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient`
are set per-WebView. Callbacks represent renderer events from
the perspective of this WebView, and may or may not be correlated
with renderer events affecting other WebViews.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `executor` | `Executor`: the Executor on which `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` callbacks will execute. This value cannot be `null`. Callback and listener events are dispatched through this `https://developer.android.com/reference/java/util/concurrent/Executor`, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use `https://developer.android.com/reference/android/content/Context#getMainExecutor()`. Otherwise, provide an `https://developer.android.com/reference/java/util/concurrent/Executor` that dispatches to an appropriate thread. <br /> |
| `webViewRenderProcessClient` | `WebViewRenderProcessClient`: the `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` object. This value cannot be `null`. <br /> |

### setWebViewRenderProcessClient

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setWebViewRenderProcessClient (WebViewRenderProcessClient webViewRenderProcessClient)
```

Sets the renderer client object associated with this WebView.

See `https://developer.android.com/reference/android/webkit/WebView#setWebViewRenderProcessClient(java.util.concurrent.Executor,%20android.webkit.WebViewRenderProcessClient)` for details.

`https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` callbacks will run on the thread that this WebView was
initialized on.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `webViewRenderProcessClient` | `WebViewRenderProcessClient`: the `https://developer.android.com/reference/android/webkit/WebViewRenderProcessClient` object. This value may be `null`. <br /> |

### shouldDelayChildPressedState

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean shouldDelayChildPressedState ()
```

Return true if the pressed state should be delayed for children or descendants of this
ViewGroup. Generally, this should be done for containers that can scroll, such as a List.
This prevents the pressed state from appearing when the user is actually trying to scroll
the content.

The default implementation returns true for compatibility reasons. Subclasses that do
not scroll should generally override this method and return false.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### showFindDialog

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean showFindDialog (String text, 
                boolean showIme)
```


**This method was deprecated
in API level 18.**   

This method does not work reliably on all Android versions;
implementing a custom find dialog using WebView.findAllAsync()
provides a more robust solution.

Starts an ActionMode for finding text in this WebView. Only works if this
WebView is attached to the view system.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `text` | `String`: if non-null, will be the initial text to search for. Otherwise, the last String searched for in this WebView will be used to start. <br /> |
| `showIme` | `boolean`: if `true`, show the IME, assuming the user will begin typing. If `false` and text is non-null, perform a find all. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if the find dialog is shown, `false` otherwise <br /> |

### startSafeBrowsing

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static void startSafeBrowsing (Context context, 
                ValueCallback<Boolean> callback)
```


**This method was deprecated
in API level 37.**   

In WebView version 122.0.6174.0 and later, this initialization is done
automatically, so there is no need to call this API. If called, this API will invoke
the `callback` immediately with `true`, given that Safe Browsing
is enabled and supported on the device.

Starts Safe Browsing initialization.


URL loads are not guaranteed to be protected by Safe Browsing until after `callback` is
invoked with `true`. Safe Browsing is not fully supported on all devices. For those
devices `callback` will receive `false`.


This should not be called if Safe Browsing has been disabled by manifest tag or `https://developer.android.com/reference/android/webkit/WebSettings#setSafeBrowsingEnabled(boolean)`. This prepares resources used for Safe Browsing.


This should be called with the Application Context (and will always use the Application
context to do its work regardless).

<br />

| Parameters ||
|---|---|
| `context` | `Context`: Application Context. This value cannot be `null`. <br /> |
| `callback` | `ValueCallback`: will be called on the UI thread with `true` if initialization is successful, `false` otherwise. This value may be `null`. <br /> |

### stopLoading

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void stopLoading ()
```

Stops the current load.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

### zoomBy

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void zoomBy (float zoomFactor)
```

Performs a zoom operation in this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `zoomFactor` | `float`: the zoom factor to apply. The zoom factor will be clamped to the WebView's zoom limits. This value must be in the range 0.01 to 100.0 inclusive. <br /> |

### zoomIn

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean zoomIn ()
```

Performs zoom in in this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if zoom in succeeds, `false` if no zoom changes <br /> |

### zoomOut

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean zoomOut ()
```

Performs zoom out in this WebView.


This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if zoom out succeeds, `false` if no zoom changes <br /> |

## Protected methods

### computeHorizontalScrollOffset

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected int computeHorizontalScrollOffset ()
```

<br />

Compute the horizontal offset of the horizontal scrollbar's thumb
within the horizontal range. This value is used to compute the position
of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the
units used by `https://developer.android.com/reference/android/view/View#computeHorizontalScrollRange()` and
`https://developer.android.com/reference/android/view/View#computeHorizontalScrollExtent()`.

The default offset is the scroll offset of this view.

<br />

<br />

| Returns ||
|---|---|
| `int` | the horizontal offset of the scrollbar's thumb <br /> |

### computeHorizontalScrollRange

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected int computeHorizontalScrollRange ()
```

<br />

Compute the horizontal range that the horizontal scrollbar
represents.

The range is expressed in arbitrary units that must be the same as the
units used by `https://developer.android.com/reference/android/view/View#computeHorizontalScrollExtent()` and
`https://developer.android.com/reference/android/view/View#computeHorizontalScrollOffset()`.

The default range is the drawing width of this view.

<br />

<br />

| Returns ||
|---|---|
| `int` | the total horizontal range represented by the horizontal scrollbar <br /> |

### computeVerticalScrollExtent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected int computeVerticalScrollExtent ()
```

<br />

Compute the vertical extent of the vertical scrollbar's thumb
within the vertical range. This value is used to compute the length
of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the
units used by `https://developer.android.com/reference/android/view/View#computeVerticalScrollRange()` and
`https://developer.android.com/reference/android/view/View#computeVerticalScrollOffset()`.

The default extent is the drawing height of this view.

<br />

<br />

| Returns ||
|---|---|
| `int` | the vertical extent of the scrollbar's thumb <br /> |

### computeVerticalScrollOffset

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected int computeVerticalScrollOffset ()
```

<br />

Compute the vertical offset of the vertical scrollbar's thumb
within the horizontal range. This value is used to compute the position
of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the
units used by `https://developer.android.com/reference/android/view/View#computeVerticalScrollRange()` and
`https://developer.android.com/reference/android/view/View#computeVerticalScrollExtent()`.

The default offset is the scroll offset of this view.

<br />

<br />

| Returns ||
|---|---|
| `int` | the vertical offset of the scrollbar's thumb <br /> |

### computeVerticalScrollRange

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected int computeVerticalScrollRange ()
```

<br />

Compute the vertical range that the vertical scrollbar represents.

The range is expressed in arbitrary units that must be the same as the
units used by `https://developer.android.com/reference/android/view/View#computeVerticalScrollExtent()` and
`https://developer.android.com/reference/android/view/View#computeVerticalScrollOffset()`.

<br />

<br />

| Returns ||
|---|---|
| `int` | the total vertical range represented by the vertical scrollbar The default range is the drawing height of this view. <br /> |

### dispatchDraw

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void dispatchDraw (Canvas canvas)
```

Called by draw to draw the child views. This may be overridden
by derived classes to gain control just before its children are drawn
(but after its own view has been drawn).

<br />

| Parameters ||
|---|---|
| `canvas` | `Canvas`: This value cannot be `null`. <br /> |

### onAttachedToWindow

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onAttachedToWindow ()
```

This is called when the view is attached to a window. At this point it
has a Surface and will start drawing. Note that this function is
guaranteed to be called before `https://developer.android.com/reference/android/view/View#onDraw(android.graphics.Canvas)`,
however it may be called any time before the first onDraw -- including
before or after `https://developer.android.com/reference/android/view/View#onMeasure(int,%20int)`.


If you override this method you *must* call through to the
superclass implementation.

<br />

### onConfigurationChanged

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onConfigurationChanged (Configuration newConfig)
```

Called when the current configuration of the resources being used
by the application have changed. You can use this to decide when
to reload resources that can changed based on orientation and other
configuration characteristics. You only need to use this if you are
not relying on the normal `https://developer.android.com/reference/android/app/Activity` mechanism of
recreating the activity instance upon a configuration change.

<br />

| Parameters ||
|---|---|
| `newConfig` | `Configuration`: The new resource configuration. <br /> |

### onDraw

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onDraw (Canvas canvas)
```

Implement this to do your drawing.

<br />

| Parameters ||
|---|---|
| `canvas` | `Canvas`: the canvas on which the background will be drawn. This value cannot be `null`. <br /> |

### onFocusChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onFocusChanged (boolean focused, 
                int direction, 
                Rect previouslyFocusedRect)
```

Called by the view system when the focus state of this view changes.
When the focus change event is caused by directional navigation, direction
and previouslyFocusedRect provide insight into where the focus is coming from.
When overriding, be sure to call up through to the super class so that
the standard focus handling will occur.


If you override this method you *must* call through to the
superclass implementation.

<br />

| Parameters ||
|---|---|
| `focused` | `boolean`: True if the View has focus; false otherwise. <br /> |
| `direction` | `int`: The direction focus has moved when requestFocus() is called to give this view focus. Values are `https://developer.android.com/reference/android/view/View#FOCUS_UP`, `https://developer.android.com/reference/android/view/View#FOCUS_DOWN`, `https://developer.android.com/reference/android/view/View#FOCUS_LEFT`, `https://developer.android.com/reference/android/view/View#FOCUS_RIGHT`, `https://developer.android.com/reference/android/view/View#FOCUS_FORWARD`, or `https://developer.android.com/reference/android/view/View#FOCUS_BACKWARD`. It may not always apply, in which case use the default. Value is one of the following: - `https://developer.android.com/reference/android/view/View#FOCUS_BACKWARD` - `https://developer.android.com/reference/android/view/View#FOCUS_FORWARD` - `https://developer.android.com/reference/android/view/View#FOCUS_LEFT` - `https://developer.android.com/reference/android/view/View#FOCUS_UP` - `https://developer.android.com/reference/android/view/View#FOCUS_RIGHT` - `https://developer.android.com/reference/android/view/View#FOCUS_DOWN` |
| `previouslyFocusedRect` | `Rect`: The rectangle, in this view's coordinate system, of the previously focused view. If applicable, this will be passed in as finer grained information about where the focus is coming from (in addition to direction). Will be `null` otherwise. <br /> |

### onMeasure

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onMeasure (int widthMeasureSpec, 
                int heightMeasureSpec)
```

<br />


Measure the view and its content to determine the measured width and the
measured height. This method is invoked by `https://developer.android.com/reference/android/view/View#measure(int,%20int)` and
should be overridden by subclasses to provide accurate and efficient
measurement of their contents.


**CONTRACT:** When overriding this method, you
*must* call `https://developer.android.com/reference/android/view/View#setMeasuredDimension(int,%20int)` to store the
measured width and height of this view. Failure to do so will trigger an
`IllegalStateException`, thrown by
`https://developer.android.com/reference/android/view/View#measure(int,%20int)`. Calling the superclass'
`https://developer.android.com/reference/android/view/View#onMeasure(int,%20int)` is a valid use.


The base class implementation of measure defaults to the background size,
unless a larger size is allowed by the MeasureSpec. Subclasses should
override `https://developer.android.com/reference/android/view/View#onMeasure(int,%20int)` to provide better measurements of
their content.


If this method is overridden, it is the subclass's responsibility to make
sure the measured height and width are at least the view's minimum height
and width (`https://developer.android.com/reference/android/view/View#getSuggestedMinimumHeight()` and
`https://developer.android.com/reference/android/view/View#getSuggestedMinimumWidth()`).

<br />

<br />

| Parameters ||
|---|---|
| `widthMeasureSpec` | `int`: horizontal space requirements as imposed by the parent. The requirements are encoded with `https://developer.android.com/reference/android/view/View.MeasureSpec`. <br /> |
| `heightMeasureSpec` | `int`: vertical space requirements as imposed by the parent. The requirements are encoded with `https://developer.android.com/reference/android/view/View.MeasureSpec`. <br /> |

### onOverScrolled

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onOverScrolled (int scrollX, 
                int scrollY, 
                boolean clampedX, 
                boolean clampedY)
```

Called by `https://developer.android.com/reference/android/view/View#overScrollBy(int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20boolean)` to
respond to the results of an over-scroll operation.

<br />

| Parameters ||
|---|---|
| `scrollX` | `int`: New X scroll value in pixels <br /> |
| `scrollY` | `int`: New Y scroll value in pixels <br /> |
| `clampedX` | `boolean`: True if scrollX was clamped to an over-scroll boundary <br /> |
| `clampedY` | `boolean`: True if scrollY was clamped to an over-scroll boundary <br /> |

### onScrollChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onScrollChanged (int l, 
                int t, 
                int oldl, 
                int oldt)
```

This is called in response to an internal scroll in this view (i.e., the
view scrolled its own contents). This is typically as a result of
`https://developer.android.com/reference/android/view/View#scrollBy(int,%20int)` or `https://developer.android.com/reference/android/view/View#scrollTo(int,%20int)` having been
called.

<br />

| Parameters ||
|---|---|
| `l` | `int`: Current horizontal scroll origin. <br /> |
| `t` | `int`: Current vertical scroll origin. <br /> |
| `oldl` | `int`: Previous horizontal scroll origin. <br /> |
| `oldt` | `int`: Previous vertical scroll origin. <br /> |

### onSizeChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onSizeChanged (int w, 
                int h, 
                int ow, 
                int oh)
```

This is called during layout when the size of this view has changed. If
you were just added to the view hierarchy, you're called with the old
values of 0.

<br />

| Parameters ||
|---|---|
| `w` | `int`: Current width of this view. <br /> |
| `h` | `int`: Current height of this view. <br /> |
| `ow` | `int`: Old width of this view. <br /> |
| `oh` | `int`: Old height of this view. <br /> |

### onVisibilityChanged

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onVisibilityChanged (View changedView, 
                int visibility)
```

Called when the visibility of the view or an ancestor of the view has
changed.

This method must be called on the thread that originally created
this UI element. This is typically the
[main thread](https://developer.android.com/reference/android/os/Looper#getMainLooper()) of your app.

<br />

| Parameters ||
|---|---|
| `changedView` | `View`: The view whose visibility changed. May be `this` or an ancestor view. This value cannot be `null`. <br /> |
| `visibility` | `int`: The new visibility, one of `https://developer.android.com/reference/android/view/View#VISIBLE`, `https://developer.android.com/reference/android/view/View#INVISIBLE` or `https://developer.android.com/reference/android/view/View#GONE`. Value is one of the following: - `https://developer.android.com/reference/android/view/View#VISIBLE` - `https://developer.android.com/reference/android/view/View#INVISIBLE` - `https://developer.android.com/reference/android/view/View#GONE` |

### onWindowVisibilityChanged

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onWindowVisibilityChanged (int visibility)
```

Called when the window containing has change its visibility
(between `https://developer.android.com/reference/android/view/View#GONE`, `https://developer.android.com/reference/android/view/View#INVISIBLE`, and `https://developer.android.com/reference/android/view/View#VISIBLE`). Note
that this tells you whether or not your window is being made visible
to the window manager; this does *not* tell you whether or not
your window is obscured by other windows on the screen, even if it
is itself visible.

<br />

| Parameters ||
|---|---|
| `visibility` | `int`: The new visibility of the window. Value is one of the following: - `https://developer.android.com/reference/android/view/View#VISIBLE` - `https://developer.android.com/reference/android/view/View#INVISIBLE` - `https://developer.android.com/reference/android/view/View#GONE` |