# ViewCompat

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)   
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary: [Constants](https://developer.android.com/reference/android/support/v4/view/ViewCompat#constants) \| [Protected Ctors](https://developer.android.com/reference/android/support/v4/view/ViewCompat#proctors) \| [Methods](https://developer.android.com/reference/android/support/v4/view/ViewCompat#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/support/v4/view/ViewCompat#inhmethods) \| [\[Expand All\]](https://developer.android.com/reference/android/support/v4/view/ViewCompat#)  

# ViewCompat

| This package is part of the Android [support library](https://developer.android.com/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](https://developer.android.com/jetpack/androidx) which is part of [Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](https://developer.android.com/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class
| mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).


`
public


class
ViewCompat
`


`

extends Object


`

`


`

|---|------------------------------------|
| java.lang.Object                      ||
| ↳ | android.support.v4.view.ViewCompat |

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#)Known Direct Subclasses [ViewCompat](https://developer.android.com/reference/android/support/v13/view/ViewCompat) |-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------| | [ViewCompat](https://developer.android.com/reference/android/support/v13/view/ViewCompat) | *This class was deprecated in API level 26.1.0. Use [ViewCompat](https://developer.android.com/reference/android/support/v4/view/ViewCompat) instead.* | |

<br />

*** ** * ** ***

Helper for accessing features in [View](https://developer.android.com/reference/android/view/View.html).

## Summary

|                                                                                                                                                                                              ### Constants                                                                                                                                                                                              ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [ACCESSIBILITY_LIVE_REGION_ASSERTIVE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_ASSERTIVE) Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view.                                                                                                      |
| `int` | [ACCESSIBILITY_LIVE_REGION_NONE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE) Live region mode specifying that accessibility services should not automatically announce changes to this view.                                                                                                                                      |
| `int` | [ACCESSIBILITY_LIVE_REGION_POLITE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE) Live region mode specifying that accessibility services should announce changes to this view.                                                                                                                                                    |
| `int` | [IMPORTANT_FOR_ACCESSIBILITY_AUTO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO) Automatically determine whether a view is important for accessibility.                                                                                                                                                                           |
| `int` | [IMPORTANT_FOR_ACCESSIBILITY_NO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO) The view is not important for accessibility.                                                                                                                                                                                                         |
| `int` | [IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS) The view is not important for accessibility, nor are any of its descendant views.                                                                                                                                  |
| `int` | [IMPORTANT_FOR_ACCESSIBILITY_YES](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES) The view is important for accessibility.                                                                                                                                                                                                           |
| `int` | [LAYER_TYPE_HARDWARE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYER_TYPE_HARDWARE) *This constant was deprecated in API level 26.1.0. Use [LAYER_TYPE_HARDWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE) directly.*                                                                                                |
| `int` | [LAYER_TYPE_NONE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYER_TYPE_NONE) *This constant was deprecated in API level 26.1.0. Use [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE) directly.*                                                                                                                |
| `int` | [LAYER_TYPE_SOFTWARE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYER_TYPE_SOFTWARE) *This constant was deprecated in API level 26.1.0. Use [LAYER_TYPE_SOFTWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE) directly.*                                                                                                |
| `int` | [LAYOUT_DIRECTION_INHERIT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_INHERIT) Horizontal layout direction of this view is inherited from its parent.                                                                                                                                                                                           |
| `int` | [LAYOUT_DIRECTION_LOCALE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LOCALE) Horizontal layout direction of this view is from deduced from the default language script for the locale.                                                                                                                                                          |
| `int` | [LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR) Horizontal layout direction of this view is from Left to Right.                                                                                                                                                                                                          |
| `int` | [LAYOUT_DIRECTION_RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL) Horizontal layout direction of this view is from Right to Left.                                                                                                                                                                                                          |
| `int` | [MEASURED_HEIGHT_STATE_SHIFT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_HEIGHT_STATE_SHIFT) *This constant was deprecated in API level 26.1.0. Use [MEASURED_HEIGHT_STATE_SHIFT](https://developer.android.com/reference/android/view/View.html#MEASURED_HEIGHT_STATE_SHIFT) directly.*                                                                |
| `int` | [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_SIZE_MASK) *This constant was deprecated in API level 26.1.0. Use [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/view/View.html#MEASURED_SIZE_MASK) directly.*                                                                                                    |
| `int` | [MEASURED_STATE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_MASK) *This constant was deprecated in API level 26.1.0. Use [MEASURED_STATE_MASK](https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_MASK) directly.*                                                                                                |
| `int` | [MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_TOO_SMALL) *This constant was deprecated in API level 26.1.0. Use [MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_TOO_SMALL) directly.*                                                                            |
| `int` | [OVER_SCROLL_ALWAYS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_ALWAYS) *This constant was deprecated in API level 25.1.0. Use [OVER_SCROLL_ALWAYS](https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_ALWAYS) directly. This constant will be removed in a future release.*                                                 |
| `int` | [OVER_SCROLL_IF_CONTENT_SCROLLS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_IF_CONTENT_SCROLLS) *This constant was deprecated in API level 25.1.0. Use [OVER_SCROLL_IF_CONTENT_SCROLLS](https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_IF_CONTENT_SCROLLS) directly. This constant will be removed in a future release.* |
| `int` | [OVER_SCROLL_NEVER](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_NEVER) *This constant was deprecated in API level 25.1.0. Use [OVER_SCROLL_NEVER](https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_NEVER) directly. This constant will be removed in a future release.*                                                     |
| `int` | [SCROLL_AXIS_HORIZONTAL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_HORIZONTAL) Indicates scrolling along the horizontal axis.                                                                                                                                                                                                                       |
| `int` | [SCROLL_AXIS_NONE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_NONE) Indicates no axis of view scrolling.                                                                                                                                                                                                                                             |
| `int` | [SCROLL_AXIS_VERTICAL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_VERTICAL) Indicates scrolling along the vertical axis.                                                                                                                                                                                                                             |
| `int` | [SCROLL_INDICATOR_BOTTOM](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_BOTTOM) Scroll indicator direction for the bottom edge of the view.                                                                                                                                                                                                        |
| `int` | [SCROLL_INDICATOR_END](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_END) Scroll indicator direction for the ending edge of the view.                                                                                                                                                                                                              |
| `int` | [SCROLL_INDICATOR_LEFT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_LEFT) Scroll indicator direction for the left edge of the view.                                                                                                                                                                                                              |
| `int` | [SCROLL_INDICATOR_RIGHT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_RIGHT) Scroll indicator direction for the right edge of the view.                                                                                                                                                                                                           |
| `int` | [SCROLL_INDICATOR_START](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_START) Scroll indicator direction for the starting edge of the view.                                                                                                                                                                                                        |
| `int` | [SCROLL_INDICATOR_TOP](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_TOP) Scroll indicator direction for the top edge of the view.                                                                                                                                                                                                                 |
| `int` | [TYPE_NON_TOUCH](https://developer.android.com/reference/android/support/v4/view/ViewCompat#TYPE_NON_TOUCH) Indicates that the input type for the gesture is caused by something which is not a user touching a screen.                                                                                                                                                                          |
| `int` | [TYPE_TOUCH](https://developer.android.com/reference/android/support/v4/view/ViewCompat#TYPE_TOUCH) Indicates that the input type for the gesture is from a user touching the screen.                                                                                                                                                                                                            |

|                                            ### Protected constructors                                            ||
|---------------------------------------------------------------------------------------------------------------|---|
| ` `[ViewCompat](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ViewCompat())`() ` |

|                                                                                                                                                                                                                                                                                                                                                                                                                                             ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                             ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static void`                                                                                                                                             | ` `[addKeyboardNavigationClusters](https://developer.android.com/reference/android/support/v4/view/ViewCompat#addKeyboardNavigationClusters(android.view.View, java.util.Collection<android.view.View>, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, Collection<`[View](https://developer.android.com/reference/android/view/View.html)`> views, int direction) ` Adds any keyboard navigation cluster roots that are descendants of `view` ( including `view` if it is a cluster root itself) to `views`.                                                                                                                                                                                            |
| ` static `[ViewPropertyAnimatorCompat](https://developer.android.com/reference/android/support/v4/view/ViewPropertyAnimatorCompat)                         | ` `[animate](https://developer.android.com/reference/android/support/v4/view/ViewCompat#animate(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` This method returns a ViewPropertyAnimator object, which can be used to animate specific properties on this View.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static boolean`                                                                                                                                          | ` `[canScrollHorizontally](https://developer.android.com/reference/android/support/v4/view/ViewCompat#canScrollHorizontally(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int direction) ` *This method was deprecated in API level 26.1.0. Use [canScrollHorizontally(int)](https://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)) directly.*                                                                                                                                                                                                                                                                                                  |
| ` static boolean`                                                                                                                                          | ` `[canScrollVertically](https://developer.android.com/reference/android/support/v4/view/ViewCompat#canScrollVertically(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int direction) ` *This method was deprecated in API level 26.1.0. Use [canScrollVertically(int)](https://developer.android.com/reference/android/view/View.html#canScrollVertically(int)) directly.*                                                                                                                                                                                                                                                                                                          |
| ` static void`                                                                                                                                             | ` `[cancelDragAndDrop](https://developer.android.com/reference/android/support/v4/view/ViewCompat#cancelDragAndDrop(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` Cancel the drag and drop operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` static int`                                                                                                                                              | ` `[combineMeasuredStates](https://developer.android.com/reference/android/support/v4/view/ViewCompat#combineMeasuredStates(int, int))`(int curState, int newState) ` *This method was deprecated in API level 26.1.0. Use [combineMeasuredStates(int, int)](https://developer.android.com/reference/android/view/View.html#combineMeasuredStates(int, int)) directly.*                                                                                                                                                                                                                                                                                                                                                                        |
| ` static `[WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat)                                         | ` `[dispatchApplyWindowInsets](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchApplyWindowInsets(android.view.View, android.support.v4.view.WindowInsetsCompat))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat)` insets) ` Request to apply the given window insets to this view or another view in its subtree.                                                                                                                                                                                                                                                 |
| ` static void`                                                                                                                                             | ` `[dispatchFinishTemporaryDetach](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchFinishTemporaryDetach(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Notify a view that its temporary detach has ended; the view is now reattached.                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static boolean`                                                                                                                                          | ` `[dispatchNestedFling](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedFling(android.view.View, float, float, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float velocityX, float velocityY, boolean consumed) ` Dispatch a fling to a nested scrolling parent.                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static boolean`                                                                                                                                          | ` `[dispatchNestedPreFling](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreFling(android.view.View, float, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float velocityX, float velocityY) ` Dispatch a fling to a nested scrolling parent before it is processed by this view.                                                                                                                                                                                                                                                                                                                                                                         |
| ` static boolean`                                                                                                                                          | ` `[dispatchNestedPreScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[], int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int dx, int dy, int[] consumed, int[] offsetInWindow, int type) ` Dispatch one step of a nested scroll in progress before this view consumes any portion of it.                                                                                                                                                                                                                                                                                                               |
| ` static boolean`                                                                                                                                          | ` `[dispatchNestedPreScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[]))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, 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.                                                                                                                                                                                                                                                                                                                              |
| ` static boolean`                                                                                                                                          | ` `[dispatchNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedScroll(android.view.View, int, int, int, int, int[], int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow, int type) ` Dispatch one step of a nested scroll in progress.                                                                                                                                                                                                                                                                                                                          |
| ` static boolean`                                                                                                                                          | ` `[dispatchNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedScroll(android.view.View, int, int, int, int, int[]))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow) ` Dispatch one step of a nested scroll in progress.                                                                                                                                                                                                                                                                                                                                         |
| ` static void`                                                                                                                                             | ` `[dispatchStartTemporaryDetach](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchStartTemporaryDetach(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Notify a view that it is being temporarily detached.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` static int`                                                                                                                                              | ` `[generateViewId](https://developer.android.com/reference/android/support/v4/view/ViewCompat#generateViewId())`() ` Generate a value suitable for use in [setId(int)](https://developer.android.com/reference/android/view/View.html#setId(int)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static int`                                                                                                                                              | ` `[getAccessibilityLiveRegion](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getAccessibilityLiveRegion(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the live region mode for the specified View.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` static `[AccessibilityNodeProviderCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeProviderCompat) | ` `[getAccessibilityNodeProvider](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getAccessibilityNodeProvider(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the provider for managing a virtual view hierarchy rooted at this View and reported to [AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html)s that explore the window content.                                                                                                                                                                                                                                           |
| ` static float`                                                                                                                                            | ` `[getAlpha](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getAlpha(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getAlpha()](https://developer.android.com/reference/android/view/View.html#getAlpha()) directly.*                                                                                                                                                                                                                                                                                                                                                                                |
| ` static `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)                                                | ` `[getBackgroundTintList](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getBackgroundTintList(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Return the tint applied to the background drawable, if specified.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)                                                 | ` `[getBackgroundTintMode](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getBackgroundTintMode(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Return the blending mode used to apply the tint to the background drawable, if specified.                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                                                       | ` `[getClipBounds](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getClipBounds(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns a copy of the current [setClipBounds(View, Rect)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setClipBounds(android.view.View, android.graphics.Rect)).                                                                                                                                                                                                                                                                                                                               |
| ` static `[Display](https://developer.android.com/reference/android/view/Display.html)                                                                     | ` `[getDisplay](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getDisplay(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the logical display to which the view's window has been attached.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static float`                                                                                                                                            | ` `[getElevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` The base elevation of this view relative to its parent, in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static boolean`                                                                                                                                          | ` `[getFitsSystemWindows](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getFitsSystemWindows(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` Returns true if this view should adapt to fit system window insets.                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static int`                                                                                                                                              | ` `[getImportantForAccessibility](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getImportantForAccessibility(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the mode for determining 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.                                                                                                                                                                                                                                                                                                |
| ` static int`                                                                                                                                              | ` `[getImportantForAutofill](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getImportantForAutofill(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` Gets the mode for determining whether this view is important for autofill.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` static int`                                                                                                                                              | ` `[getLabelFor](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getLabelFor(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the id of a view for which a given view serves as a label for accessibility purposes.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` static int`                                                                                                                                              | ` `[getLayerType](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getLayerType(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getLayerType()](https://developer.android.com/reference/android/view/View.html#getLayerType()) directly.*                                                                                                                                                                                                                                                                                                                                                                |
| ` static int`                                                                                                                                              | ` `[getLayoutDirection](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getLayoutDirection(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the resolved layout direction for this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static `[Matrix](https://developer.android.com/reference/android/graphics/Matrix.html)                                                                   | ` `[getMatrix](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMatrix(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getMatrix()](https://developer.android.com/reference/android/view/View.html#getMatrix()) directly.*                                                                                                                                                                                                                                                                                                                                                                            |
| ` static int`                                                                                                                                              | ` `[getMeasuredHeightAndState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredHeightAndState(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getMeasuredHeightAndState()](https://developer.android.com/reference/android/view/View.html#getMeasuredHeightAndState()) directly.*                                                                                                                                                                                                                                                                                                            |
| ` static int`                                                                                                                                              | ` `[getMeasuredState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredState(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getMeasuredState()](https://developer.android.com/reference/android/view/View.html#getMeasuredState()) directly.*                                                                                                                                                                                                                                                                                                                                                |
| ` static int`                                                                                                                                              | ` `[getMeasuredWidthAndState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredWidthAndState(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getMeasuredWidth()](https://developer.android.com/reference/android/view/View.html#getMeasuredWidth()) directly.*                                                                                                                                                                                                                                                                                                                                |
| ` static int`                                                                                                                                              | ` `[getMinimumHeight](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMinimumHeight(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the minimum height of the view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static int`                                                                                                                                              | ` `[getMinimumWidth](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMinimumWidth(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the minimum width of the view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` static int`                                                                                                                                              | ` `[getNextClusterForwardId](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getNextClusterForwardId(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the ID of the next keyboard navigation cluster root.                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static int`                                                                                                                                              | ` `[getOverScrollMode](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getOverScrollMode(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` *This method was deprecated in API level 25.1.0. Call [getOverScrollMode()](https://developer.android.com/reference/android/view/View.html#getOverScrollMode()) directly. This method will be removed in a future release.*                                                                                                                                                                                                                                                                                             |
| ` static int`                                                                                                                                              | ` `[getPaddingEnd](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPaddingEnd(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the end padding of the specified view depending on its resolved layout direction.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static int`                                                                                                                                              | ` `[getPaddingStart](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPaddingStart(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the start padding of the specified view depending on its resolved layout direction.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` static `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html)                                                               | ` `[getParentForAccessibility](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getParentForAccessibility(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gets the parent for accessibility purposes.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` static float`                                                                                                                                            | ` `[getPivotX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPivotX(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getPivotX()](https://developer.android.com/reference/android/view/View.html#getPivotX()) directly.*                                                                                                                                                                                                                                                                                                                                                                            |
| ` static float`                                                                                                                                            | ` `[getPivotY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPivotY(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getPivotY()](https://developer.android.com/reference/android/view/View.html#getPivotY()) directly.*                                                                                                                                                                                                                                                                                                                                                                            |
| ` static float`                                                                                                                                            | ` `[getRotation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getRotation(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getRotation()](https://developer.android.com/reference/android/view/View.html#getRotation()) directly.*                                                                                                                                                                                                                                                                                                                                                                    |
| ` static float`                                                                                                                                            | ` `[getRotationX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getRotationX(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getRotationX()](https://developer.android.com/reference/android/view/View.html#getRotationX()) directly.*                                                                                                                                                                                                                                                                                                                                                                |
| ` static float`                                                                                                                                            | ` `[getRotationY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getRotationY(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getRotationY()](https://developer.android.com/reference/android/view/View.html#getRotationY()) directly.*                                                                                                                                                                                                                                                                                                                                                                |
| ` static float`                                                                                                                                            | ` `[getScaleX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScaleX(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getScaleX()](https://developer.android.com/reference/android/view/View.html#getScaleX()) directly.*                                                                                                                                                                                                                                                                                                                                                                            |
| ` static float`                                                                                                                                            | ` `[getScaleY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScaleY(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getScaleY()](https://developer.android.com/reference/android/view/View.html#getScaleY()) directly.*                                                                                                                                                                                                                                                                                                                                                                            |
| ` static int`                                                                                                                                              | ` `[getScrollIndicators](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns a bitmask representing the enabled scroll indicators.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static String`                                                                                                                                           | ` `[getTransitionName](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getTransitionName(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the name of the View to be used to identify Views in Transitions.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static float`                                                                                                                                            | ` `[getTranslationX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getTranslationX(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getTranslationX()](https://developer.android.com/reference/android/view/View.html#getTranslationX()) directly.*                                                                                                                                                                                                                                                                                                                                                    |
| ` static float`                                                                                                                                            | ` `[getTranslationY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getTranslationY(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getTranslationY()](https://developer.android.com/reference/android/view/View.html#getTranslationY()) directly.*                                                                                                                                                                                                                                                                                                                                                    |
| ` static float`                                                                                                                                            | ` `[getTranslationZ](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getTranslationZ(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` The depth location of this view relative to its [elevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View)).                                                                                                                                                                                                                                                                                                                                                 |
| ` static int`                                                                                                                                              | ` `[getWindowSystemUiVisibility](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getWindowSystemUiVisibility(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns the current system UI visibility that is currently set for the entire window.                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static float`                                                                                                                                            | ` `[getX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getX(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getX()](https://developer.android.com/reference/android/view/View.html#getX()) directly.*                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static float`                                                                                                                                            | ` `[getY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getY(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 26.1.0. Use [getY()](https://developer.android.com/reference/android/view/View.html#getY()) directly.*                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static float`                                                                                                                                            | ` `[getZ](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getZ(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` The visual z position of this view, in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` static boolean`                                                                                                                                          | ` `[hasAccessibilityDelegate](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasAccessibilityDelegate(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` Checks whether provided View has an accessibility delegate attached to it.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static boolean`                                                                                                                                          | ` `[hasExplicitFocusable](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasExplicitFocusable(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns true if this view is focusable or if it contains a reachable View for which [hasExplicitFocusable()](https://developer.android.com/reference/android/view/View.html#hasExplicitFocusable()) returns `true`.                                                                                                                                                                                                                                                                                            |
| ` static boolean`                                                                                                                                          | ` `[hasNestedScrollingParent](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasNestedScrollingParent(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int type) ` Returns true if this view has a nested scrolling parent.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static boolean`                                                                                                                                          | ` `[hasNestedScrollingParent](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasNestedScrollingParent(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns true if this view has a nested scrolling parent.                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static boolean`                                                                                                                                          | ` `[hasOnClickListeners](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasOnClickListeners(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns whether the provided view has an attached [View.OnClickListener](https://developer.android.com/reference/android/view/View.OnClickListener.html).                                                                                                                                                                                                                                                                                                                                                        |
| ` static boolean`                                                                                                                                          | ` `[hasOverlappingRendering](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasOverlappingRendering(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns whether this View has content which overlaps.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static boolean`                                                                                                                                          | ` `[hasTransientState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasTransientState(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` 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.                                                                                                                                                                                                                                                                                                |
| ` static boolean`                                                                                                                                          | ` `[isAttachedToWindow](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isAttachedToWindow(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns true if the provided view is currently attached to a window.                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static boolean`                                                                                                                                          | ` `[isFocusedByDefault](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isFocusedByDefault(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns whether `view` should receive focus when the focus is restored for the view hierarchy containing it.                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` static boolean`                                                                                                                                          | ` `[isImportantForAccessibility](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isImportantForAccessibility(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Computes whether this view should be exposed for accessibility.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` static boolean`                                                                                                                                          | ` `[isImportantForAutofill](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isImportantForAutofill(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` Hints the Android System whether the [AssistStructure.ViewNode](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode.html) associated with this view is considered important for autofill purposes.                                                                                                                                                                                                                                                                            |
| ` static boolean`                                                                                                                                          | ` `[isInLayout](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isInLayout(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns whether the view hierarchy is currently undergoing a layout pass.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` static boolean`                                                                                                                                          | ` `[isKeyboardNavigationCluster](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isKeyboardNavigationCluster(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns whether `view` is a root of a keyboard navigation cluster.                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static boolean`                                                                                                                                          | ` `[isLaidOut](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isLaidOut(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns true if `view` has been through at least one layout since it was last attached to or detached from a window.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` static boolean`                                                                                                                                          | ` `[isLayoutDirectionResolved](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isLayoutDirectionResolved(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns whether layout direction has been resolved.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` static boolean`                                                                                                                                          | ` `[isNestedScrollingEnabled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isNestedScrollingEnabled(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Returns true if nested scrolling is enabled for this view.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static boolean`                                                                                                                                          | ` `[isOpaque](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isOpaque(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` *This method was deprecated in API level 25.1.0. Use [isOpaque()](https://developer.android.com/reference/android/view/View.html#isOpaque()) directly. This method will be removed in a future release.*                                                                                                                                                                                                                                                                                                                               |
| ` static boolean`                                                                                                                                          | ` `[isPaddingRelative](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isPaddingRelative(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Return if the padding as been set through relative values `View.setPaddingRelative(int, int, int, int)` or thru                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[jumpDrawablesToCurrentState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#jumpDrawablesToCurrentState(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` v) ` *This method was deprecated in API level 26.1.0. Use [jumpDrawablesToCurrentState()](https://developer.android.com/reference/android/view/View.html#jumpDrawablesToCurrentState()) directly.*                                                                                                                                                                                                                                                                                                       |
| ` static `[View](https://developer.android.com/reference/android/view/View.html)                                                                           | ` `[keyboardNavigationClusterSearch](https://developer.android.com/reference/android/support/v4/view/ViewCompat#keyboardNavigationClusterSearch(android.view.View, android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[View](https://developer.android.com/reference/android/view/View.html)` currentCluster, int direction) ` Find the nearest keyboard navigation cluster in the specified direction.                                                                                                                                                                                                                                                                                 |
| ` static void`                                                                                                                                             | ` `[offsetLeftAndRight](https://developer.android.com/reference/android/support/v4/view/ViewCompat#offsetLeftAndRight(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int offset) ` Offset this view's horizontal location by the specified amount of pixels.                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` static void`                                                                                                                                             | ` `[offsetTopAndBottom](https://developer.android.com/reference/android/support/v4/view/ViewCompat#offsetTopAndBottom(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int offset) ` Offset this view's vertical location by the specified number of pixels.                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` static `[WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat)                                         | ` `[onApplyWindowInsets](https://developer.android.com/reference/android/support/v4/view/ViewCompat#onApplyWindowInsets(android.view.View, android.support.v4.view.WindowInsetsCompat))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat)` insets) ` Called when the view should apply [WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat) according to its internal policy.                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[onInitializeAccessibilityEvent](https://developer.android.com/reference/android/support/v4/view/ViewCompat#onInitializeAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` *This method was deprecated in API level 26.1.0. Call [onInitializeAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)) directly. This method will be removed in a future release.* |
| ` static void`                                                                                                                                             | ` `[onInitializeAccessibilityNodeInfo](https://developer.android.com/reference/android/support/v4/view/ViewCompat#onInitializeAccessibilityNodeInfo(android.view.View, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat)` info) ` Initializes an [AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat) with information about this view.                                                                           |
| ` static void`                                                                                                                                             | ` `[onPopulateAccessibilityEvent](https://developer.android.com/reference/android/support/v4/view/ViewCompat#onPopulateAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` *This method was deprecated in API level 26.1.0. Call [onPopulateAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/reference/android/view/View.html#onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)) directly. This method will be removed in a future release.*         |
| ` static boolean`                                                                                                                                          | ` `[performAccessibilityAction](https://developer.android.com/reference/android/support/v4/view/ViewCompat#performAccessibilityAction(android.view.View, int, android.os.Bundle))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int action, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arguments) ` Performs the specified accessibility action on the view.                                                                                                                                                                                                                                                                                                                 |
| ` static void`                                                                                                                                             | ` `[postInvalidateOnAnimation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#postInvalidateOnAnimation(android.view.View, int, int, int, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, 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.                                                                                                                                                                                                                                                                                                          |
| ` static void`                                                                                                                                             | ` `[postInvalidateOnAnimation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#postInvalidateOnAnimation(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` <br /> Cause an invalidate to happen on the next animation time step, typically the next display frame.                                                                                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[postOnAnimation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#postOnAnimation(android.view.View, java.lang.Runnable))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, Runnable action) ` <br /> Causes the Runnable to execute on the next animation time step.                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[postOnAnimationDelayed](https://developer.android.com/reference/android/support/v4/view/ViewCompat#postOnAnimationDelayed(android.view.View, java.lang.Runnable, long))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, Runnable action, long delayMillis) ` <br /> Causes the Runnable to execute on the next animation time step, after the specified amount of time elapses.                                                                                                                                                                                                                                                                                                                            |
| ` static void`                                                                                                                                             | ` `[requestApplyInsets](https://developer.android.com/reference/android/support/v4/view/ViewCompat#requestApplyInsets(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Ask that a new dispatch of `View.onApplyWindowInsets(WindowInsets)` be performed.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` static <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                                                           | ` `[requireViewById](https://developer.android.com/reference/android/support/v4/view/ViewCompat#requireViewById(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int id) ` Finds the first descendant view with the given ID, the view itself if the ID matches [getId()](https://developer.android.com/reference/android/view/View.html#getId()), or throws an IllegalArgumentException if the ID is invalid or there is no matching view in the hierarchy.                                                                                                                                                                                                                           |
| ` static int`                                                                                                                                              | ` `[resolveSizeAndState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#resolveSizeAndState(int, int, int))`(int size, int measureSpec, int childMeasuredState) ` *This method was deprecated in API level 26.1.0. Use [resolveSizeAndState(int, int, int)](https://developer.android.com/reference/android/view/View.html#resolveSizeAndState(int, int, int)) directly.*                                                                                                                                                                                                                                                                                                                                          |
| ` static boolean`                                                                                                                                          | ` `[restoreDefaultFocus](https://developer.android.com/reference/android/support/v4/view/ViewCompat#restoreDefaultFocus(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Gives focus to the default-focus view in the view hierarchy rooted at `view`.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static void`                                                                                                                                             | ` `[setAccessibilityDelegate](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityDelegate(android.view.View, android.support.v4.view.AccessibilityDelegateCompat))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat)` delegate) ` Sets a delegate for implementing accessibility support via composition (as opposed to inheritance).                                                                                                                                                                                                           |
| ` static void`                                                                                                                                             | ` `[setAccessibilityLiveRegion](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityLiveRegion(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int mode) ` Sets the live region mode for the specified view.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` static void`                                                                                                                                             | ` `[setActivated](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setActivated(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, boolean activated) ` *This method was deprecated in API level 26.1.0. Use [setActivated(boolean)](https://developer.android.com/reference/android/view/View.html#setActivated(boolean)) directly.*                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[setAlpha](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAlpha(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setAlpha(float)](https://developer.android.com/reference/android/view/View.html#setAlpha(float)) directly.*                                                                                                                                                                                                                                                                                                                                                  |
| ` static void`                                                                                                                                             | ` `[setAutofillHints](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAutofillHints(android.view.View, java.lang.String...))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, String... autofillHints) ` Sets the hints that help an [AutofillService](https://developer.android.com/reference/android/service/autofill/AutofillService.html) determine how to autofill the view with the user's data.                                                                                                                                                                                                                                                                               |
| ` static void`                                                                                                                                             | ` `[setBackground](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setBackground(android.view.View, android.graphics.drawable.Drawable))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` background) ` Set the background of the `view` to a given Drawable, or remove the background.                                                                                                                                                                                                                                                                                                |
| ` static void`                                                                                                                                             | ` `[setBackgroundTintList](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setBackgroundTintList(android.view.View, android.content.res.ColorStateList))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)` tintList) ` Applies a tint to the background drawable.                                                                                                                                                                                                                                                                                                                 |
| ` static void`                                                                                                                                             | ` `[setBackgroundTintMode](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setBackgroundTintMode(android.view.View, android.graphics.PorterDuff.Mode))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` mode) ` Specifies the blending mode used to apply the tint specified by [setBackgroundTintList(android.view.View, android.content.res.ColorStateList)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setBackgroundTintList(android.view.View, android.content.res.ColorStateList)) to the background drawable.                               |
| ` static void`                                                                                                                                             | ` `[setChildrenDrawingOrderEnabled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setChildrenDrawingOrderEnabled(android.view.ViewGroup, boolean))`(`[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` viewGroup, boolean enabled) ` *This method was deprecated in API level 27.1.0. Use [setChildrenDrawingOrderEnabled(boolean)](https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingOrderEnabled(boolean)) directly.*                                                                                                                                                                                                                       |
| ` static void`                                                                                                                                             | ` `[setClipBounds](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setClipBounds(android.view.View, android.graphics.Rect))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` clipBounds) ` Sets a rectangular area on this view to which the view will be clipped when it is drawn.                                                                                                                                                                                                                                                                                                                     |
| ` static void`                                                                                                                                             | ` `[setElevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setElevation(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float elevation) ` Sets the base elevation of this view, in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` static void`                                                                                                                                             | ` `[setFitsSystemWindows](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setFitsSystemWindows(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, boolean fitSystemWindows) ` *This method was deprecated in API level 26.1.0. Use [setFitsSystemWindows(boolean)](https://developer.android.com/reference/android/view/View.html#setFitsSystemWindows(boolean)) directly.*                                                                                                                                                                                                                                                                               |
| ` static void`                                                                                                                                             | ` `[setFocusedByDefault](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setFocusedByDefault(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, boolean isFocusedByDefault) ` Sets whether `view` should receive focus when the focus is restored for the view hierarchy containing it.                                                                                                                                                                                                                                                                                                                                                                   |
| ` static void`                                                                                                                                             | ` `[setHasTransientState](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setHasTransientState(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, boolean hasTransientState) ` Set whether this view is currently tracking transient state that the framework should attempt to preserve when possible.                                                                                                                                                                                                                                                                                                                                                   |
| ` static void`                                                                                                                                             | ` `[setImportantForAccessibility](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setImportantForAccessibility(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, 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.                                                                                                                                                                                                                                                                                         |
| ` static void`                                                                                                                                             | ` `[setImportantForAutofill](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setImportantForAutofill(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, int mode) ` Sets the mode for determining whether this view is considered important for autofill.                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static void`                                                                                                                                             | ` `[setKeyboardNavigationCluster](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setKeyboardNavigationCluster(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, boolean isCluster) ` Set whether `view` is a root of a keyboard navigation cluster.                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` static void`                                                                                                                                             | ` `[setLabelFor](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLabelFor(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int labeledId) ` Sets the id of a view for which a given view serves as a label for accessibility purposes.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` static void`                                                                                                                                             | ` `[setLayerPaint](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerPaint(android.view.View, android.graphics.Paint))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[Paint](https://developer.android.com/reference/android/graphics/Paint.html)` paint) ` Updates the [Paint](https://developer.android.com/reference/android/graphics/Paint.html) object used with the current layer (used only if the current layer type is not set to [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE)).                                                                                                                             |
| ` static void`                                                                                                                                             | ` `[setLayerType](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerType(android.view.View, int, android.graphics.Paint))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int layerType, `[Paint](https://developer.android.com/reference/android/graphics/Paint.html)` paint) ` *This method was deprecated in API level 26.1.0. Use [setLayerType(int, Paint)](https://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint)) directly.*                                                                                                                                                                                         |
| ` static void`                                                                                                                                             | ` `[setLayoutDirection](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayoutDirection(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int layoutDirection) ` Set the layout direction for this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` static void`                                                                                                                                             | ` `[setNestedScrollingEnabled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setNestedScrollingEnabled(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, boolean enabled) ` Enable or disable nested scrolling for this view.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` static void`                                                                                                                                             | ` `[setNextClusterForwardId](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setNextClusterForwardId(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int nextClusterForwardId) ` Sets the ID of the next keyboard navigation cluster root view.                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static void`                                                                                                                                             | ` `[setOnApplyWindowInsetsListener](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setOnApplyWindowInsetsListener(android.view.View, android.support.v4.view.OnApplyWindowInsetsListener))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[OnApplyWindowInsetsListener](https://developer.android.com/reference/android/support/v4/view/OnApplyWindowInsetsListener)` listener) ` Set an [OnApplyWindowInsetsListener](https://developer.android.com/reference/android/support/v4/view/OnApplyWindowInsetsListener) to take over the policy for applying window insets to this view.                                                                                                |
| ` static void`                                                                                                                                             | ` `[setOverScrollMode](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setOverScrollMode(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, int overScrollMode) ` *This method was deprecated in API level 25.1.0. Call [setOverScrollMode(int)](https://developer.android.com/reference/android/view/View.html#setOverScrollMode(int)) directly. This method will be removed in a future release.*                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[setPaddingRelative](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setPaddingRelative(android.view.View, int, int, int, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int start, int top, int end, int bottom) ` Sets the relative padding.                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static void`                                                                                                                                             | ` `[setPivotX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setPivotX(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setPivotX(float)](https://developer.android.com/reference/android/view/View.html#setPivotX(float)) directly.*                                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[setPivotY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setPivotY(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setPivotX(float)](https://developer.android.com/reference/android/view/View.html#setPivotX(float)) directly.*                                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[setPointerIcon](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setPointerIcon(android.view.View, android.support.v4.view.PointerIconCompat))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[PointerIconCompat](https://developer.android.com/reference/android/support/v4/view/PointerIconCompat)` pointerIcon) ` Set the pointer icon for the current view.                                                                                                                                                                                                                                                                                                                |
| ` static void`                                                                                                                                             | ` `[setRotation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotation(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setRotation(float)](https://developer.android.com/reference/android/view/View.html#setRotation(float)) directly.*                                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[setRotationX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotationX(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setRotationX(float)](https://developer.android.com/reference/android/view/View.html#setRotationX(float)) directly.*                                                                                                                                                                                                                                                                                                                                  |
| ` static void`                                                                                                                                             | ` `[setRotationY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotationY(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setRotationY(float)](https://developer.android.com/reference/android/view/View.html#setRotationY(float)) directly.*                                                                                                                                                                                                                                                                                                                                  |
| ` static void`                                                                                                                                             | ` `[setSaveFromParentEnabled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setSaveFromParentEnabled(android.view.View, boolean))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, boolean enabled) ` *This method was deprecated in API level 26.1.0. Use [setSaveFromParentEnabled(boolean)](https://developer.android.com/reference/android/view/View.html#setSaveFromParentEnabled(boolean)) directly.*                                                                                                                                                                                                                                                                           |
| ` static void`                                                                                                                                             | ` `[setScaleX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScaleX(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setScaleX(float)](https://developer.android.com/reference/android/view/View.html#setScaleX(float)) directly.*                                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[setScaleY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScaleY(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setScaleY(float)](https://developer.android.com/reference/android/view/View.html#setScaleY(float)) directly.*                                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                                                             | ` `[setScrollIndicators](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int indicators, int mask) ` Sets the state of the scroll indicators specified by the mask.                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static void`                                                                                                                                             | ` `[setScrollIndicators](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int indicators) ` Sets the state of all scroll indicators.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static void`                                                                                                                                             | ` `[setTooltipText](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTooltipText(android.view.View, java.lang.CharSequence))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, CharSequence tooltipText) ` Sets the tooltip for the view.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` static void`                                                                                                                                             | ` `[setTransitionName](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTransitionName(android.view.View, java.lang.String))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, String transitionName) ` Sets the name of the View to be used to identify Views in Transitions.                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[setTranslationX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationX(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setTranslationX(float)](https://developer.android.com/reference/android/view/View.html#setTranslationX(float)) directly.*                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[setTranslationY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationY(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setTranslationY(float)](https://developer.android.com/reference/android/view/View.html#setTranslationY(float)) directly.*                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[setTranslationZ](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationZ(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float translationZ) ` Sets the depth location of this view relative to its [elevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View)).                                                                                                                                                                                                                                                                                                                 |
| ` static void`                                                                                                                                             | ` `[setX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setX(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setX(float)](https://developer.android.com/reference/android/view/View.html#setX(float)) directly.*                                                                                                                                                                                                                                                                                                                                                                  |
| ` static void`                                                                                                                                             | ` `[setY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setY(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float value) ` *This method was deprecated in API level 26.1.0. Use [setY(float)](https://developer.android.com/reference/android/view/View.html#setY(float)) directly.*                                                                                                                                                                                                                                                                                                                                                                  |
| ` static void`                                                                                                                                             | ` `[setZ](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setZ(android.view.View, float))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, float z) ` Sets the visual z position of this view, in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static boolean`                                                                                                                                          | ` `[startDragAndDrop](https://developer.android.com/reference/android/support/v4/view/ViewCompat#startDragAndDrop(android.view.View, android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[ClipData](https://developer.android.com/reference/android/content/ClipData.html)` data, `[View.DragShadowBuilder](https://developer.android.com/reference/android/view/View.DragShadowBuilder.html)` shadowBuilder, Object localState, int flags) ` Start the drag and drop operation.                                                                                                                                              |
| ` static boolean`                                                                                                                                          | ` `[startNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#startNestedScroll(android.view.View, int, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int axes, int type) ` Begin a nestable scroll operation along the given axes.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` static boolean`                                                                                                                                          | ` `[startNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#startNestedScroll(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int axes) ` Begin a nestable scroll operation along the given axes.                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static void`                                                                                                                                             | ` `[stopNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#stopNestedScroll(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, int type) ` Stop a nested scroll in progress.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` static void`                                                                                                                                             | ` `[stopNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#stopNestedScroll(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` view) ` Stop a nested scroll in progress.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` static void`                                                                                                                                             | ` `[updateDragShadow](https://developer.android.com/reference/android/support/v4/view/ViewCompat#updateDragShadow(android.view.View, android.view.View.DragShadowBuilder))`(`[View](https://developer.android.com/reference/android/view/View.html)` v, `[View.DragShadowBuilder](https://developer.android.com/reference/android/view/View.DragShadowBuilder.html)` shadowBuilder) ` Update the drag shadow while drag and drop is in progress.                                                                                                                                                                                                                                                                                               |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#)From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### ACCESSIBILITY_LIVE_REGION_ASSERTIVE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ACCESSIBILITY_LIVE_REGION_ASSERTIVE
```

Live region mode specifying that accessibility services should interrupt
ongoing speech to immediately announce changes to this view.


Use with [setAccessibilityLiveRegion(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityLiveRegion(android.view.View, int)).

<br />

Constant Value:

2
(0x00000002)


### ACCESSIBILITY_LIVE_REGION_NONE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ACCESSIBILITY_LIVE_REGION_NONE
```

Live region mode specifying that accessibility services should not
automatically announce changes to this view. This is the default live
region mode for most views.


Use with [setAccessibilityLiveRegion(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityLiveRegion(android.view.View, int)).

<br />

Constant Value:

0
(0x00000000)


### ACCESSIBILITY_LIVE_REGION_POLITE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ACCESSIBILITY_LIVE_REGION_POLITE
```

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


Use with [setAccessibilityLiveRegion(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityLiveRegion(android.view.View, int)).

<br />

Constant Value:

1
(0x00000001)


### IMPORTANT_FOR_ACCESSIBILITY_AUTO

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int IMPORTANT_FOR_ACCESSIBILITY_AUTO
```

Automatically determine whether a view is important for accessibility.

<br />

Constant Value:

0
(0x00000000)


### IMPORTANT_FOR_ACCESSIBILITY_NO

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int IMPORTANT_FOR_ACCESSIBILITY_NO
```

The view is not important for accessibility.

<br />

Constant Value:

2
(0x00000002)


### IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
```

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

<br />

Constant Value:

4
(0x00000004)


### IMPORTANT_FOR_ACCESSIBILITY_YES

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int IMPORTANT_FOR_ACCESSIBILITY_YES
```

The view is important for accessibility.

<br />

Constant Value:

1
(0x00000001)


### LAYER_TYPE_HARDWARE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYER_TYPE_HARDWARE
```


**This constant was deprecated
in API level 26.1.0.**   

Use [LAYER_TYPE_HARDWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE) directly.

<br />

Indicates that the view has a hardware layer. A hardware layer is backed
by a hardware specific texture (generally Frame Buffer Objects or FBO on
OpenGL hardware) and causes the view to be rendered using Android's hardware
rendering pipeline, but only if hardware acceleration is turned on for the
view hierarchy. When hardware acceleration is turned off, hardware layers
behave exactly as [software layers](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE).

A hardware layer is useful to apply a specific color filter and/or
blending mode and/or translucency to a view and all its children.

A hardware layer can be used to cache a complex view tree into a
texture and reduce the complexity of drawing operations. For instance,
when animating a complex view tree with a translation, a hardware layer can
be used to render the view tree only once.

A hardware layer can also be used to increase the rendering quality when
rotation transformations are applied on a view. It can also be used to
prevent potential clipping issues when applying 3D transforms on a view.

<br />

<br />

Constant Value:

2
(0x00000002)


### LAYER_TYPE_NONE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYER_TYPE_NONE
```


**This constant was deprecated
in API level 26.1.0.**   

Use [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE) directly.

Indicates that the view does not have a layer.

<br />

Constant Value:

0
(0x00000000)


### LAYER_TYPE_SOFTWARE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYER_TYPE_SOFTWARE
```


**This constant was deprecated
in API level 26.1.0.**   

Use [LAYER_TYPE_SOFTWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE) directly.

<br />

Indicates that the view has a software layer. A software layer is backed
by a bitmap and causes the view to be rendered using Android's software
rendering pipeline, even if hardware acceleration is enabled.

Software layers have various usages:

When the application is not using hardware acceleration, a software layer
is useful to apply a specific color filter and/or blending mode and/or
translucency to a view and all its children.

When the application is using hardware acceleration, a software layer
is useful to render drawing primitives not supported by the hardware
accelerated pipeline. It can also be used to cache a complex view tree
into a texture and reduce the complexity of drawing operations. For instance,
when animating a complex view tree with a translation, a software layer can
be used to render the view tree only once.

Software layers should be avoided when the affected view tree updates
often. Every update will require to re-render the software layer, which can
potentially be slow (particularly when hardware acceleration is turned on
since the layer will have to be uploaded into a hardware texture after every
update.)

<br />

<br />

Constant Value:

1
(0x00000001)


### LAYOUT_DIRECTION_INHERIT

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYOUT_DIRECTION_INHERIT
```

Horizontal layout direction of this view is inherited from its parent.
Use with [setLayoutDirection(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayoutDirection(android.view.View, int)).

<br />

Constant Value:

2
(0x00000002)


### LAYOUT_DIRECTION_LOCALE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYOUT_DIRECTION_LOCALE
```

Horizontal layout direction of this view is from deduced from the default language
script for the locale. Use with [setLayoutDirection(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayoutDirection(android.view.View, int)).

<br />

Constant Value:

3
(0x00000003)


### LAYOUT_DIRECTION_LTR

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYOUT_DIRECTION_LTR
```

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

<br />

Constant Value:

0
(0x00000000)


### LAYOUT_DIRECTION_RTL

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int LAYOUT_DIRECTION_RTL
```

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

<br />

Constant Value:

1
(0x00000001)


### MEASURED_HEIGHT_STATE_SHIFT

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int MEASURED_HEIGHT_STATE_SHIFT
```


**This constant was deprecated
in API level 26.1.0.**   

Use [MEASURED_HEIGHT_STATE_SHIFT](https://developer.android.com/reference/android/view/View.html#MEASURED_HEIGHT_STATE_SHIFT) directly.

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

<br />

Constant Value:

16
(0x00000010)


### MEASURED_SIZE_MASK

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int MEASURED_SIZE_MASK
```


**This constant was deprecated
in API level 26.1.0.**   

Use [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/view/View.html#MEASURED_SIZE_MASK) directly.

Bits of [getMeasuredWidthAndState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredWidthAndState(android.view.View)) and
[getMeasuredWidthAndState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredWidthAndState(android.view.View)) that provide the actual measured size.

<br />

Constant Value:

16777215
(0x00ffffff)


### MEASURED_STATE_MASK

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int MEASURED_STATE_MASK
```


**This constant was deprecated
in API level 26.1.0.**   

Use [MEASURED_STATE_MASK](https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_MASK) directly.

Bits of [getMeasuredWidthAndState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredWidthAndState(android.view.View)) and
[getMeasuredWidthAndState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredWidthAndState(android.view.View)) that provide the additional state bits.

<br />

Constant Value:

-16777216
(0xff000000)


### MEASURED_STATE_TOO_SMALL

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int MEASURED_STATE_TOO_SMALL
```


**This constant was deprecated
in API level 26.1.0.**   

Use [MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_TOO_SMALL) directly.

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

<br />

Constant Value:

16777216
(0x01000000)


### OVER_SCROLL_ALWAYS

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int OVER_SCROLL_ALWAYS
```


**This constant was deprecated
in API level 25.1.0.**   

Use [OVER_SCROLL_ALWAYS](https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_ALWAYS) directly. This constant will be removed in
a future release.

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

<br />

Constant Value:

0
(0x00000000)


### OVER_SCROLL_IF_CONTENT_SCROLLS

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int OVER_SCROLL_IF_CONTENT_SCROLLS
```


**This constant was deprecated
in API level 25.1.0.**   

Use [OVER_SCROLL_IF_CONTENT_SCROLLS](https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_IF_CONTENT_SCROLLS) directly. This constant will be
removed in a future release.

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.

<br />

Constant Value:

1
(0x00000001)


### OVER_SCROLL_NEVER

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int OVER_SCROLL_NEVER
```


**This constant was deprecated
in API level 25.1.0.**   

Use [OVER_SCROLL_NEVER](https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_NEVER) directly. This constant will be removed in
a future release.

Never allow a user to over-scroll this view.

<br />

Constant Value:

2
(0x00000002)


### SCROLL_AXIS_HORIZONTAL

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_AXIS_HORIZONTAL
```

Indicates scrolling along the horizontal axis.

<br />

Constant Value:

1
(0x00000001)


### SCROLL_AXIS_NONE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_AXIS_NONE
```

Indicates no axis of view scrolling.

<br />

Constant Value:

0
(0x00000000)


### SCROLL_AXIS_VERTICAL

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_AXIS_VERTICAL
```

Indicates scrolling along the vertical axis.

<br />

Constant Value:

2
(0x00000002)


### SCROLL_INDICATOR_BOTTOM

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_INDICATOR_BOTTOM
```

Scroll indicator direction for the bottom edge of the view.

<br />

**See also:**

- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))

Constant Value:

2
(0x00000002)


### SCROLL_INDICATOR_END

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_INDICATOR_END
```

Scroll indicator direction for the ending edge of the view.

<br />

**See also:**

- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))

Constant Value:

32
(0x00000020)


### SCROLL_INDICATOR_LEFT

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_INDICATOR_LEFT
```

Scroll indicator direction for the left edge of the view.

<br />

**See also:**

- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))

Constant Value:

4
(0x00000004)


### SCROLL_INDICATOR_RIGHT

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_INDICATOR_RIGHT
```

Scroll indicator direction for the right edge of the view.

<br />

**See also:**

- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))

Constant Value:

8
(0x00000008)


### SCROLL_INDICATOR_START

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_INDICATOR_START
```

Scroll indicator direction for the starting edge of the view.

<br />

**See also:**

- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))

Constant Value:

16
(0x00000010)


### SCROLL_INDICATOR_TOP

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int SCROLL_INDICATOR_TOP
```

Scroll indicator direction for the top edge of the view.

<br />

**See also:**

- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))

Constant Value:

1
(0x00000001)


### TYPE_NON_TOUCH

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int TYPE_NON_TOUCH
```

Indicates that the input type for the gesture is caused by something which is not a user
touching a screen. This is usually from a fling which is settling.

<br />

Constant Value:

1
(0x00000001)


### TYPE_TOUCH

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int TYPE_TOUCH
```

Indicates that the input type for the gesture is from a user touching the screen.

<br />

Constant Value:

0
(0x00000000)


## Protected constructors

### ViewCompat

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ViewCompat ()
```

<br />

<br />

## Public methods

### addKeyboardNavigationClusters

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void addKeyboardNavigationClusters (View view, 
                Collection<View> views, 
                int direction)
```

Adds any keyboard navigation cluster roots that are descendants of `view` (
including `view` if it is a cluster root itself) to `views`. Does nothing
on API \< 26.

<br />

|                                           Parameters                                            ||
|-------------|------------------------------------------------------------------------------------|
| `view`      | `View` <br />                                                                      |
| `views`     | `Collection`: collection of keyboard navigation cluster roots found so far. <br /> |
| `direction` | `int`: direction to look. <br />                                                   |

### animate

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ViewPropertyAnimatorCompat animate (View view)
```

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

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                                                                  Returns                                                                                                  ||
|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [ViewPropertyAnimatorCompat](https://developer.android.com/reference/android/support/v4/view/ViewPropertyAnimatorCompat) | ViewPropertyAnimator The ViewPropertyAnimator associated with this View. <br /> |

### canScrollHorizontally

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean canScrollHorizontally (View view, 
                int direction)
```


**This method was deprecated
in API level 26.1.0.**   

Use [canScrollHorizontally(int)](https://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)) directly.

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

<br />

|                                           Parameters                                            ||
|-------------|------------------------------------------------------------------------------------|
| `view`      | `View`: The View against which to invoke the method. <br />                        |
| `direction` | `int`: Negative to check scrolling left, positive to check scrolling right. <br /> |

|                                             Returns                                              ||
|-----------|---------------------------------------------------------------------------------------|
| `boolean` | true if this view can be scrolled in the specified direction, false otherwise. <br /> |

### canScrollVertically

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean canScrollVertically (View view, 
                int direction)
```


**This method was deprecated
in API level 26.1.0.**   

Use [canScrollVertically(int)](https://developer.android.com/reference/android/view/View.html#canScrollVertically(int)) directly.

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

<br />

|                                          Parameters                                          ||
|-------------|---------------------------------------------------------------------------------|
| `view`      | `View`: The View against which to invoke the method. <br />                     |
| `direction` | `int`: Negative to check scrolling up, positive to check scrolling down. <br /> |

|                                             Returns                                              ||
|-----------|---------------------------------------------------------------------------------------|
| `boolean` | true if this view can be scrolled in the specified direction, false otherwise. <br /> |

### cancelDragAndDrop

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void cancelDragAndDrop (View v)
```

Cancel the drag and drop operation.

<br />

|     Parameters     ||
|-----|---------------|
| `v` | `View` <br /> |

### combineMeasuredStates

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int combineMeasuredStates (int curState, 
                int newState)
```


**This method was deprecated
in API level 26.1.0.**   

Use [combineMeasuredStates(int, int)](https://developer.android.com/reference/android/view/View.html#combineMeasuredStates(int, int)) directly.

Merge two states as returned by [getMeasuredState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredState(android.view.View)).

<br />

|                                                   Parameters                                                   ||
|------------|----------------------------------------------------------------------------------------------------|
| `curState` | `int`: The current state as returned from a view or the result of combining multiple views. <br /> |
| `newState` | `int`: The new view state to combine. <br />                                                       |

|                                      Returns                                      ||
|-------|----------------------------------------------------------------------------|
| `int` | Returns a new integer reflecting the combination of the two states. <br /> |

### dispatchApplyWindowInsets

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
WindowInsetsCompat dispatchApplyWindowInsets (View view, 
                WindowInsetsCompat insets)
```

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

This method should be called by clients wishing to apply insets corresponding to areas
obscured by window decorations or overlays. This can include the status and navigation bars,
action bars, input methods and more. New inset categories may be added in the future.
The method returns the insets provided minus any that were applied by this view or its
children.

<br />

<br />

|                       Parameters                       ||
|----------|----------------------------------------------|
| `view`   | `View` <br />                                |
| `insets` | `WindowInsetsCompat`: Insets to apply <br /> |

|                                                                                 Returns                                                                                  ||
|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
| [WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat) | The provided insets minus the insets that were consumed <br /> |

### dispatchFinishTemporaryDetach

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void dispatchFinishTemporaryDetach (View view)
```

Notify a view that its temporary detach has ended; the view is now reattached.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

### dispatchNestedFling

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean dispatchNestedFling (View view, 
                float velocityX, 
                float velocityY, 
                boolean consumed)
```

Dispatch a fling to a nested scrolling parent.

This method should be used to indicate that a nested scrolling child has detected
suitable conditions for a fling. Generally this means that a touch scroll has ended with a
[velocity](https://developer.android.com/reference/android/view/VelocityTracker.html) in the direction of scrolling that meets or exceeds
the [minimum fling velocity](https://developer.android.com/reference/android/view/ViewConfiguration.html#getScaledMinimumFlingVelocity())
along a scrollable axis.

If a nested scrolling child view would normally fling but it is at the edge of
its own content, it can use this method to delegate the fling to its nested scrolling
parent instead. The parent may optionally consume the fling or observe a child fling.

<br />

<br />

|                                      Parameters                                      ||
|-------------|-------------------------------------------------------------------------|
| `view`      | `View` <br />                                                           |
| `velocityX` | `float`: Horizontal fling velocity in pixels per second <br />          |
| `velocityY` | `float`: Vertical fling velocity in pixels per second <br />            |
| `consumed`  | `boolean`: true if the child consumed the fling, false otherwise <br /> |

|                                             Returns                                              ||
|-----------|---------------------------------------------------------------------------------------|
| `boolean` | true if the nested scrolling parent consumed or otherwise reacted to the fling <br /> |

### dispatchNestedPreFling

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean dispatchNestedPreFling (View view, 
                float velocityX, 
                float velocityY)
```

Dispatch a fling to a nested scrolling parent before it is processed by this view.

Nested pre-fling events are to nested fling events what touch intercept is to touch
and what nested pre-scroll is to nested scroll. `dispatchNestedPreFling`
offsets an opportunity for the parent view in a nested fling to fully consume the fling
before the child view consumes it. If this method returns `true`, a nested
parent view consumed the fling and this view should not scroll as a result.

For a better user experience, only one view in a nested scrolling chain should consume
the fling at a time. If a parent view consumed the fling this method will return false.
Custom view implementations should account for this in two ways:

- If a custom view is paged and needs to settle to a fixed page-point, do not call `dispatchNestedPreFling`; consume the fling and settle to a valid position regardless.
- If a nested parent does consume the fling, this view should not scroll at all, even to settle back to a valid idle position.

Views should also not offer fling velocities to nested parent views along an axis
where scrolling is not currently supported; a [ScrollView](https://developer.android.com/reference/android/widget/ScrollView.html)
should not offer a horizontal fling velocity to its parents since scrolling along that
axis is not permitted and carrying velocity along that motion does not make sense.

<br />

<br />

|                                 Parameters                                  ||
|-------------|----------------------------------------------------------------|
| `view`      | `View` <br />                                                  |
| `velocityX` | `float`: Horizontal fling velocity in pixels per second <br /> |
| `velocityY` | `float`: Vertical fling velocity in pixels per second <br />   |

|                                Returns                                 ||
|-----------|-------------------------------------------------------------|
| `boolean` | true if a nested scrolling parent consumed the fling <br /> |

### dispatchNestedPreScroll

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean dispatchNestedPreScroll (View view, 
                int dx, 
                int dy, 
                int[] consumed, 
                int[] offsetInWindow, 
                int type)
```

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.

Nested pre-scroll events are to nested scroll events what touch intercept is to touch.
`dispatchNestedPreScroll` offers an opportunity for the parent view in a nested
scrolling operation to consume some or all of the scroll operation before the child view
consumes it.

<br />

<br />

|                                                                                                                               Parameters                                                                                                                               ||
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view`           | `View` <br />                                                                                                                                                                                                                                        |
| `dx`             | `int`: Horizontal scroll distance in pixels <br />                                                                                                                                                                                                   |
| `dy`             | `int`: Vertical scroll distance in pixels <br />                                                                                                                                                                                                     |
| `consumed`       | `int`: Output. If not null, consumed\[0\] will contain the consumed component of dx and consumed\[1\] the consumed dy. <br />                                                                                                                        |
| `offsetInWindow` | `int`: Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. <br /> |
| `type`           | `int`: the type of input which cause this scroll event <br />                                                                                                                                                                                        |

|                                    Returns                                    ||
|-----------|--------------------------------------------------------------------|
| `boolean` | true if the parent consumed some or all of the scroll delta <br /> |

**See also:**

- [dispatchNestedScroll(View, int, int, int, int, int[])](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedScroll(android.view.View, int, int, int, int, int[]))  

### dispatchNestedPreScroll

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean dispatchNestedPreScroll (View view, 
                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.

This version of the method just calls
[dispatchNestedPreScroll(View, int, int, int[], int[], int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[], int)) using the touch input
type.

<br />

<br />

|                                                                                                                               Parameters                                                                                                                               ||
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view`           | `View` <br />                                                                                                                                                                                                                                        |
| `dx`             | `int`: Horizontal scroll distance in pixels <br />                                                                                                                                                                                                   |
| `dy`             | `int`: Vertical scroll distance in pixels <br />                                                                                                                                                                                                     |
| `consumed`       | `int`: Output. If not null, consumed\[0\] will contain the consumed component of dx and consumed\[1\] the consumed dy. <br />                                                                                                                        |
| `offsetInWindow` | `int`: Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. <br /> |

|                                    Returns                                    ||
|-----------|--------------------------------------------------------------------|
| `boolean` | true if the parent consumed some or all of the scroll delta <br /> |

### dispatchNestedScroll

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean dispatchNestedScroll (View view, 
                int dxConsumed, 
                int dyConsumed, 
                int dxUnconsumed, 
                int dyUnconsumed, 
                int[] offsetInWindow, 
                int type)
```

Dispatch one step of a nested scroll in progress.

Implementations of views that support nested scrolling should call this to report
info about a scroll in progress to the current nested scrolling parent. If a nested scroll
is not currently in progress or nested scrolling is not
[enabled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isNestedScrollingEnabled(android.view.View)) for this view this method does nothing.

Compatible View implementations should also call
[dispatchNestedPreScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[])) before
consuming a component of the scroll event themselves.

<br />

<br />

|                                                                                                                               Parameters                                                                                                                               ||
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view`           | `View` <br />                                                                                                                                                                                                                                        |
| `dxConsumed`     | `int`: Horizontal distance in pixels consumed by this view during this scroll step <br />                                                                                                                                                            |
| `dyConsumed`     | `int`: Vertical distance in pixels consumed by this view during this scroll step <br />                                                                                                                                                              |
| `dxUnconsumed`   | `int`: Horizontal scroll distance in pixels not consumed by this view <br />                                                                                                                                                                         |
| `dyUnconsumed`   | `int`: Horizontal scroll distance in pixels not consumed by this view <br />                                                                                                                                                                         |
| `offsetInWindow` | `int`: Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. <br /> |
| `type`           | `int`: the type of input which cause this scroll event <br />                                                                                                                                                                                        |

|                                         Returns                                          ||
|-----------|-------------------------------------------------------------------------------|
| `boolean` | true if the event was dispatched, false if it could not be dispatched. <br /> |

**See also:**

- [dispatchNestedPreScroll(View, int, int, int[], int[])](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[]))  

### dispatchNestedScroll

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean dispatchNestedScroll (View view, 
                int dxConsumed, 
                int dyConsumed, 
                int dxUnconsumed, 
                int dyUnconsumed, 
                int[] offsetInWindow)
```

Dispatch one step of a nested scroll in progress.

This version of the method just calls
[dispatchNestedScroll(View, int, int, int, int, int[], int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedScroll(android.view.View, int, int, int, int, int[], int)) using the touch input
type.

<br />

<br />

|                                                                                                                               Parameters                                                                                                                               ||
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view`           | `View` <br />                                                                                                                                                                                                                                        |
| `dxConsumed`     | `int`: Horizontal distance in pixels consumed by this view during this scroll step <br />                                                                                                                                                            |
| `dyConsumed`     | `int`: Vertical distance in pixels consumed by this view during this scroll step <br />                                                                                                                                                              |
| `dxUnconsumed`   | `int`: Horizontal scroll distance in pixels not consumed by this view <br />                                                                                                                                                                         |
| `dyUnconsumed`   | `int`: Horizontal scroll distance in pixels not consumed by this view <br />                                                                                                                                                                         |
| `offsetInWindow` | `int`: Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. <br /> |

|                                         Returns                                          ||
|-----------|-------------------------------------------------------------------------------|
| `boolean` | true if the event was dispatched, false if it could not be dispatched. <br /> |

### dispatchStartTemporaryDetach

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void dispatchStartTemporaryDetach (View view)
```

Notify a view that it is being temporarily detached.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

### generateViewId

added in [version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int generateViewId ()
```

Generate a value suitable for use in [setId(int)](https://developer.android.com/reference/android/view/View.html#setId(int)).
This value will not collide with ID values generated at build time by aapt for R.id.

<br />

|              Returns               ||
|-------|-----------------------------|
| `int` | a generated ID value <br /> |

### getAccessibilityLiveRegion

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getAccessibilityLiveRegion (View view)
```

Gets the live region mode for the specified View.

<br />

|                                Parameters                                 ||
|--------|-------------------------------------------------------------------|
| `view` | `View`: The view from which to obtain the live region mode <br /> |

|                     Returns                      ||
|-------|-------------------------------------------|
| `int` | The live region mode for the view. <br /> |

**See also:**

- [setAccessibilityLiveRegion(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityLiveRegion(android.view.View, int))  

### getAccessibilityNodeProvider

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AccessibilityNodeProviderCompat getAccessibilityNodeProvider (View view)
```

Gets the provider for managing a virtual view hierarchy rooted at this View
and reported to [AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html)s
that explore the window content.


If this method returns an instance, this instance is responsible for managing
[AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat)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 [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat) has been specified via calling
[setAccessibilityDelegate(View, AccessibilityDelegateCompat)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityDelegate(android.view.View, android.support.v4.view.AccessibilityDelegateCompat)) its
[getAccessibilityNodeProvider(View)](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat#getAccessibilityNodeProvider(android.view.View))
is responsible for handling this call.

<br />

<br />

|                       Parameters                       ||
|--------|------------------------------------------------|
| `view` | `View`: The view whose property to get. <br /> |

|                                                                                Returns                                                                                 ||
|--------------------------------------------------------------------------------------------------------------------------------------------------|----------------------|
| [AccessibilityNodeProviderCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeProviderCompat) | The provider. <br /> |

**See also:**

- [AccessibilityNodeProviderCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeProviderCompat)  

### getAlpha

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getAlpha (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getAlpha()](https://developer.android.com/reference/android/view/View.html#getAlpha()) directly.

The opacity of the view. This is a value from 0 to 1, where 0 means the view is
completely transparent and 1 means the view is completely opaque.

By default this is 1.0f.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                 Returns                  ||
|---------|---------------------------------|
| `float` | The opacity of the view. <br /> |

### getBackgroundTintList

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ColorStateList getBackgroundTintList (View view)
```

Return the tint applied to the background drawable, if specified.


Only returns meaningful info when running on API v21 or newer, or if `view`
implements the `TintableBackgroundView` interface.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                  Returns                                                  ||
|---------------------------------------------------------------------------------------------------|--------|
| [ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html) | <br /> |

### getBackgroundTintMode

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PorterDuff.Mode getBackgroundTintMode (View view)
```

Return the blending mode used to apply the tint to the background
drawable, if specified.


Only returns meaningful info when running on API v21 or newer, or if `view`
implements the `TintableBackgroundView` interface.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                 Returns                                                  ||
|--------------------------------------------------------------------------------------------------|--------|
| [PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html) | <br /> |

### getClipBounds

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Rect getClipBounds (View view)
```

Returns a copy of the current [setClipBounds(View, Rect)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setClipBounds(android.view.View, android.graphics.Rect)).

Prior to API 18 this will return null.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                                           Returns                                                                            ||
|----------------------------------------------------------------------------|----------------------------------------------------------------------------------|
| [Rect](https://developer.android.com/reference/android/graphics/Rect.html) | A copy of the current clip bounds if clip bounds are set, otherwise null. <br /> |

### getDisplay

added in [version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Display getDisplay (View view)
```

Gets the logical display to which the view's window has been attached.


Compatibility:

- API \< 17: Returns the default display when the view is attached. Otherwise, null.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                                               Returns                                                                                ||
|------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| [Display](https://developer.android.com/reference/android/view/Display.html) | The logical display, or null if the view is not currently attached to a window. <br /> |

### getElevation

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getElevation (View view)
```

The base elevation of this view relative to its parent, in pixels.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                             Returns                             ||
|---------|--------------------------------------------------------|
| `float` | The base depth position of the view, in pixels. <br /> |

### getFitsSystemWindows

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean getFitsSystemWindows (View v)
```

Returns true if this view should adapt to fit system window insets. This method will always
return false before API 16 (Jellybean).

<br />

|     Parameters     ||
|-----|---------------|
| `v` | `View` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### getImportantForAccessibility

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getImportantForAccessibility (View view)
```

Gets the mode for determining 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.

<br />

|                       Parameters                       ||
|--------|------------------------------------------------|
| `view` | `View`: The view whose property to get. <br /> |

|                                        Returns                                        ||
|-------|--------------------------------------------------------------------------------|
| `int` | The mode for determining whether a View is important for accessibility. <br /> |

**See also:**

- [IMPORTANT_FOR_ACCESSIBILITY_YES](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES)
- [IMPORTANT_FOR_ACCESSIBILITY_NO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO)
- [IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS)
- [IMPORTANT_FOR_ACCESSIBILITY_AUTO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO)  

### getImportantForAutofill

added in [version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getImportantForAutofill (View v)
```

Gets the mode for determining whether this view is important for autofill.

See [setImportantForAutofill(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setImportantForAutofill(android.view.View, int)) and [isImportantForAutofill(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isImportantForAutofill(android.view.View))
for more info about this mode.

This method is only supported on API \>= 26.
On API 25 and below, it will always return [IMPORTANT_FOR_AUTOFILL_AUTO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO).

<br />

<br />

|     Parameters     ||
|-----|---------------|
| `v` | `View` <br /> |

|                                                                                                                                                                 Returns                                                                                                                                                                  ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [IMPORTANT_FOR_AUTOFILL_AUTO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO) by default, or value passed to [setImportantForAutofill(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setImportantForAutofill(android.view.View, int)). <br /> |

### getLabelFor

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getLabelFor (View view)
```

Gets the id of a view for which a given view serves as a label for
accessibility purposes.

<br />

|                                  Parameters                                  ||
|--------|----------------------------------------------------------------------|
| `view` | `View`: The view on which to invoke the corresponding method. <br /> |

|              Returns               ||
|-------|-----------------------------|
| `int` | The labeled view id. <br /> |

### getLayerType

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getLayerType (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getLayerType()](https://developer.android.com/reference/android/view/View.html#getLayerType()) directly.

Indicates what type of layer is currently associated with this view. By default
a view does not have a layer, and the layer type is [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE).
Refer to the documentation of
[setLayerType(android.view.View, int, android.graphics.Paint)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerType(android.view.View, int, android.graphics.Paint))
for more information on the different types of layers.

<br />

|                          Parameters                          ||
|--------|------------------------------------------------------|
| `view` | `View`: The view to fetch the layer type from <br /> |

|                                                                                                                                                                 Returns                                                                                                                                                                 ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE), [LAYER_TYPE_SOFTWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE) or [LAYER_TYPE_HARDWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE) <br /> |

**See also:**

- [setLayerType(android.view.View, int, android.graphics.Paint)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerType(android.view.View, int, android.graphics.Paint))
- [LAYER_TYPE_NONE](https://developer.android.com/https://developer.android.com/reference/android/view/View#LAYER_TYPE_NONE)
- [LAYER_TYPE_SOFTWARE](https://developer.android.com/https://developer.android.com/reference/android/view/View#LAYER_TYPE_SOFTWARE)
- [LAYER_TYPE_HARDWARE](https://developer.android.com/https://developer.android.com/reference/android/view/View#LAYER_TYPE_HARDWARE)  

### getLayoutDirection

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getLayoutDirection (View view)
```

Returns the resolved layout direction for this view.

<br />

|                       Parameters                        ||
|--------|-------------------------------------------------|
| `view` | `View`: View to get layout direction for <br /> |

|                                                                                                                                                                                                                                                                           Returns                                                                                                                                                                                                                                                                           ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [LAYOUT_DIRECTION_RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL) if the layout direction is RTL or returns [LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR) if the layout direction is not RTL. For compatibility, this will return [LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR) if API version is lower than Jellybean MR1 (API 17) <br /> |

### getMatrix

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Matrix getMatrix (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getMatrix()](https://developer.android.com/reference/android/view/View.html#getMatrix()) directly.

The transform matrix of this view, which is calculated based on the current
rotation, scale, and pivot properties.

<br />

<br />

|                          Parameters                           ||
|--------|-------------------------------------------------------|
| `view` | `View`: The view whose Matrix will be returned <br /> |

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------|--------------------------------------------------|
| [Matrix](https://developer.android.com/reference/android/graphics/Matrix.html) | The current transform matrix for the view <br /> |

**See also:**

- [getRotation(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getRotation(android.view.View))
- [getScaleX(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScaleX(android.view.View))
- [getScaleY(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScaleY(android.view.View))
- [getPivotX(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPivotX(android.view.View))
- [getPivotY(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPivotY(android.view.View))  

### getMeasuredHeightAndState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMeasuredHeightAndState (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getMeasuredHeightAndState()](https://developer.android.com/reference/android/view/View.html#getMeasuredHeightAndState()) directly.

Return the full height measurement information for this view as computed
by the most recent call to [measure(int, int)](https://developer.android.com/reference/android/view/View.html#measure(int, int)).
This result is a bit mask as defined by [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_SIZE_MASK) and
[MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_TOO_SMALL).
This should be used during measurement and layout calculations only. Use
[getHeight()](https://developer.android.com/reference/android/view/View.html#getHeight()) to see how wide a view is after layout.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                           Returns                            ||
|-------|-------------------------------------------------------|
| `int` | The measured width of this view as a bit mask. <br /> |

### getMeasuredState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMeasuredState (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getMeasuredState()](https://developer.android.com/reference/android/view/View.html#getMeasuredState()) directly.

Return only the state bits of [getMeasuredWidthAndState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredWidthAndState(android.view.View))
and [getMeasuredHeightAndState(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getMeasuredHeightAndState(android.view.View)), combined into one integer.
The width component is in the regular bits [MEASURED_STATE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_MASK)
and the height component is at the shifted bits
[MEASURED_HEIGHT_STATE_SHIFT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_HEIGHT_STATE_SHIFT)\>\>[MEASURED_STATE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_MASK).

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getMeasuredWidthAndState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMeasuredWidthAndState (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getMeasuredWidth()](https://developer.android.com/reference/android/view/View.html#getMeasuredWidth()) directly.

Return the full width measurement information for this view as computed
by the most recent call to [measure(int, int)](https://developer.android.com/reference/android/view/View.html#measure(int, int)).
This result is a bit mask as defined by [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_SIZE_MASK) and
[MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_TOO_SMALL).
This should be used during measurement and layout calculations only. Use
[getWidth()](https://developer.android.com/reference/android/view/View.html#getWidth()) to see how wide a view is after layout.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                           Returns                            ||
|-------|-------------------------------------------------------|
| `int` | The measured width of this view as a bit mask. <br /> |

### getMinimumHeight

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMinimumHeight (View view)
```

Returns the minimum height of the view.

Prior to API 16, this method may return 0 on some platforms.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                          Returns                          ||
|-------|----------------------------------------------------|
| `int` | the minimum height the view will try to be. <br /> |

### getMinimumWidth

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMinimumWidth (View view)
```

Returns the minimum width of the view.

Prior to API 16, this method may return 0 on some platforms.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                         Returns                          ||
|-------|---------------------------------------------------|
| `int` | the minimum width the view will try to be. <br /> |

### getNextClusterForwardId

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getNextClusterForwardId (View view)
```

Gets the ID of the next keyboard navigation cluster root.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                                                              Returns                                                                                               ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | the next keyboard navigation cluster ID, or [NO_ID](https://developer.android.com/reference/android/view/View.html#NO_ID) if the framework should decide automatically or API \< 26. <br /> |

### getOverScrollMode

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getOverScrollMode (View v)
```


**This method was deprecated
in API level 25.1.0.**   

Call [getOverScrollMode()](https://developer.android.com/reference/android/view/View.html#getOverScrollMode()) directly. This method will be
removed in a future release.

Returns the over-scroll mode for this view. The result will be
one of [OVER_SCROLL_ALWAYS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_ALWAYS) (default), [OVER_SCROLL_IF_CONTENT_SCROLLS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_IF_CONTENT_SCROLLS)
(allow over-scrolling only if the view content is larger than the container),
or [OVER_SCROLL_NEVER](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_NEVER).

<br />

|                            Parameters                            ||
|-----|-------------------------------------------------------------|
| `v` | `View`: The View against which to invoke the method. <br /> |

|                   Returns                   ||
|-------|--------------------------------------|
| `int` | This view's over-scroll mode. <br /> |

### getPaddingEnd

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getPaddingEnd (View view)
```

Returns the end padding of the specified view depending on its resolved layout direction.
If there are inset and enabled scrollbars, this value may include the space
required to display the scrollbars as well.

<br />

|                     Parameters                     ||
|--------|--------------------------------------------|
| `view` | `View`: The view to get padding for <br /> |

|                 Returns                 ||
|-------|----------------------------------|
| `int` | the end padding in pixels <br /> |

### getPaddingStart

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getPaddingStart (View view)
```

Returns the start padding of the specified view depending on its resolved layout direction.
If there are inset and enabled scrollbars, this value may include the space
required to display the scrollbars as well.

<br />

|                     Parameters                     ||
|--------|--------------------------------------------|
| `view` | `View`: The view to get padding for <br /> |

|                  Returns                  ||
|-------|------------------------------------|
| `int` | the start padding in pixels <br /> |

### getParentForAccessibility

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ViewParent getParentForAccessibility (View view)
```

Gets the parent for accessibility purposes. Note that the parent for
accessibility is not necessary the immediate parent. It is the first
predecessor that is important for accessibility.

<br />

|                     Parameters                     ||
|--------|--------------------------------------------|
| `view` | `View`: View to retrieve parent for <br /> |

|                                                                  Returns                                                                  ||
|------------------------------------------------------------------------------------|-------------------------------------------------------|
| [ViewParent](https://developer.android.com/reference/android/view/ViewParent.html) | The parent for use in accessibility inspection <br /> |

### getPivotX

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getPivotX (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getPivotX()](https://developer.android.com/reference/android/view/View.html#getPivotX()) directly.

The x location of the point around which the view is
[rotated](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotation(android.view.View, float)) and [scaled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScaleX(android.view.View, float)).

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getPivotY

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getPivotY (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getPivotY()](https://developer.android.com/reference/android/view/View.html#getPivotY()) directly.

The y location of the point around which the view is [rotated](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotation(android.view.View, float)) and [scaled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScaleY(android.view.View, float)).

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                      Returns                       ||
|---------|-------------------------------------------|
| `float` | The y location of the pivot point. <br /> |

### getRotation

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getRotation (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getRotation()](https://developer.android.com/reference/android/view/View.html#getRotation()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getRotationX

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getRotationX (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getRotationX()](https://developer.android.com/reference/android/view/View.html#getRotationX()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getRotationY

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getRotationY (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getRotationY()](https://developer.android.com/reference/android/view/View.html#getRotationY()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getScaleX

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getScaleX (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getScaleX()](https://developer.android.com/reference/android/view/View.html#getScaleX()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getScaleY

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getScaleY (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getScaleY()](https://developer.android.com/reference/android/view/View.html#getScaleY()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getScrollIndicators

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getScrollIndicators (View view)
```

Returns a bitmask representing the enabled scroll indicators.


For example, if the top and left scroll indicators are enabled and all
other indicators are disabled, the return value will be
`ViewCompat.SCROLL_INDICATOR_TOP | ViewCompat.SCROLL_INDICATOR_LEFT`.


To check whether the bottom scroll indicator is enabled, use the value
of `(ViewCompat.getScrollIndicators(view) & ViewCompat.SCROLL_INDICATOR_BOTTOM) != 0`.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                              Returns                               ||
|-------|-------------------------------------------------------------|
| `int` | a bitmask representing the enabled scroll indicators <br /> |

### getTransitionName

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getTransitionName (View view)
```

Returns the name of the View to be used to identify Views in Transitions.
Names should be unique in the View hierarchy.

This returns null if the View has not been given a name.

<br />

<br />

|                             Parameters                              ||
|--------|-------------------------------------------------------------|
| `view` | `View`: The View against which to invoke the method. <br /> |

|                                                          Returns                                                          ||
|----------|-----------------------------------------------------------------------------------------------------------------|
| `String` | The name used of the View to be used to identify Views in Transitions or null if no name has been given. <br /> |

### getTranslationX

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getTranslationX (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getTranslationX()](https://developer.android.com/reference/android/view/View.html#getTranslationX()) directly.

The horizontal location of this view relative to its [left](https://developer.android.com/reference/android/view/View.html#getLeft()) position.
This position is post-layout, in addition to wherever the object's
layout placed it.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                            Returns                                             ||
|---------|---------------------------------------------------------------------------------------|
| `float` | The horizontal position of this view relative to its left position, in pixels. <br /> |

### getTranslationY

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getTranslationY (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getTranslationY()](https://developer.android.com/reference/android/view/View.html#getTranslationY()) directly.

The vertical location of this view relative to its [top](https://developer.android.com/reference/android/view/View.html#getTop()) position.
This position is post-layout, in addition to wherever the object's
layout placed it.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                           Returns                                           ||
|---------|------------------------------------------------------------------------------------|
| `float` | The vertical position of this view relative to its top position, in pixels. <br /> |

### getTranslationZ

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getTranslationZ (View view)
```

The depth location of this view relative to its [elevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View)).

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                              Returns                              ||
|---------|----------------------------------------------------------|
| `float` | The depth of this view relative to its elevation. <br /> |

### getWindowSystemUiVisibility

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getWindowSystemUiVisibility (View view)
```

Returns the current system UI visibility that is currently set for the entire window.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getX

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getX (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getX()](https://developer.android.com/reference/android/view/View.html#getX()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getY

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getY (View view)
```


**This method was deprecated
in API level 26.1.0.**   

Use [getY()](https://developer.android.com/reference/android/view/View.html#getY()) directly.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getZ

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getZ (View view)
```

The visual z position of this view, in pixels. This is equivalent to the
[translationZ](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationZ(android.view.View, float)) property plus the current
[elevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View)) property.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                            Returns                             ||
|---------|-------------------------------------------------------|
| `float` | The visual z position of this view, in pixels. <br /> |

### hasAccessibilityDelegate

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasAccessibilityDelegate (View v)
```

Checks whether provided View has an accessibility delegate attached to it.

<br />

|                   Parameters                   ||
|-----|-------------------------------------------|
| `v` | `View`: The View instance to check <br /> |

|                             Returns                              ||
|-----------|-------------------------------------------------------|
| `boolean` | True if the View has an accessibility delegate <br /> |

### hasExplicitFocusable

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasExplicitFocusable (View view)
```

Returns true if this view is focusable or if it contains a reachable View
for which [hasExplicitFocusable()](https://developer.android.com/reference/android/view/View.html#hasExplicitFocusable()) returns `true`.
A "reachable hasExplicitFocusable()" is a view whose parents do not block descendants focus.
Only [VISIBLE](https://developer.android.com/reference/android/view/View.html#VISIBLE) views for which [getFocusable()](https://developer.android.com/reference/android/view/View.html#getFocusable()) would return
[FOCUSABLE](https://developer.android.com/reference/android/view/View.html#FOCUSABLE) are considered focusable.

This method preserves the pre-[O](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O) behavior of
[hasFocusable()](https://developer.android.com/reference/android/view/View.html#hasFocusable()) in that only views explicitly set focusable will cause
this method to return true. A view set to [FOCUSABLE_AUTO](https://developer.android.com/reference/android/view/View.html#FOCUSABLE_AUTO) that resolves
to focusable will not.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                                    Returns                                                    ||
|-----------|----------------------------------------------------------------------------------------------------|
| `boolean` | `true` if the view is focusable or if the view contains a focusable view, `false` otherwise <br /> |

### hasNestedScrollingParent

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasNestedScrollingParent (View view, 
                int type)
```

Returns true if this view has a nested scrolling parent.

The presence of a nested scrolling parent indicates that this view has initiated
a nested scroll and it was accepted by an ancestor view further up the view hierarchy.

<br />

<br />

|                              Parameters                               ||
|--------|---------------------------------------------------------------|
| `view` | `View` <br />                                                 |
| `type` | `int`: the type of input which cause this scroll event <br /> |

|                              Returns                              ||
|-----------|--------------------------------------------------------|
| `boolean` | whether this view has a nested scrolling parent <br /> |

### hasNestedScrollingParent

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasNestedScrollingParent (View view)
```

Returns true if this view has a nested scrolling parent.

This version of the method just calls [hasNestedScrollingParent(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#hasNestedScrollingParent(android.view.View, int))
using the touch input type.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                              Returns                              ||
|-----------|--------------------------------------------------------|
| `boolean` | whether this view has a nested scrolling parent <br /> |

### hasOnClickListeners

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasOnClickListeners (View view)
```

Returns whether the provided view has an attached [View.OnClickListener](https://developer.android.com/reference/android/view/View.OnClickListener.html).

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                Returns                                 ||
|-----------|-------------------------------------------------------------|
| `boolean` | true if there is a listener, false if there is none. <br /> |

### hasOverlappingRendering

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasOverlappingRendering (View view)
```

Returns whether this View has content which overlaps.

This function, intended to be overridden by specific View types, is an optimization when
alpha is set on a view. If rendering overlaps in a view with alpha \< 1, that view is drawn to
an offscreen buffer and then composited into place, which can be expensive. If the view has
no overlapping rendering, the view can draw each primitive with the appropriate alpha value
directly. An example of overlapping rendering is a TextView with a background image, such as
a Button. An example of non-overlapping rendering is a TextView with no background, or an
ImageView with only the foreground image. The default implementation returns true; subclasses
should override if they have cases which can be optimized.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                      Returns                                       ||
|-----------|-------------------------------------------------------------------------|
| `boolean` | true if the content in this view might overlap, false otherwise. <br /> |

### hasTransientState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasTransientState (View view)
```

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.

<br />

|                        Parameters                        ||
|--------|--------------------------------------------------|
| `view` | `View`: View to check for transient state <br /> |

|                        Returns                         ||
|-----------|---------------------------------------------|
| `boolean` | true if the view has transient state <br /> |

### isAttachedToWindow

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isAttachedToWindow (View view)
```

Returns true if the provided view is currently attached to a window.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### isFocusedByDefault

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isFocusedByDefault (View view)
```

Returns whether `view` should receive focus when the focus is restored for the view
hierarchy containing it. Returns `false` on API \< 26.


Focus gets restored for a view hierarchy when the root of the hierarchy gets added to a
window or serves as a target of cluster navigation.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                     Returns                                      ||
|-----------|-----------------------------------------------------------------------|
| `boolean` | `true` if `view` is the default-focus view, `false` otherwise. <br /> |

### isImportantForAccessibility

added in [version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isImportantForAccessibility (View view)
```

Computes whether this view should be exposed for accessibility. In
general, views that are interactive or provide information are exposed
while views that serve only as containers are hidden.


If an ancestor of this view has importance
[IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS), this method
returns `false`.


Otherwise, the value is computed according to the view's
[getImportantForAccessibility(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getImportantForAccessibility(android.view.View)) value:

1. [IMPORTANT_FOR_ACCESSIBILITY_NO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO) or [IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS), return `false
   `
2. [IMPORTANT_FOR_ACCESSIBILITY_YES](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES), return `true`
3. [IMPORTANT_FOR_ACCESSIBILITY_AUTO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO), return `true` if view satisfies any of the following:
   - Is actionable, e.g. [isClickable()](https://developer.android.com/reference/android/view/View.html#isClickable()), [isLongClickable()](https://developer.android.com/reference/android/view/View.html#isLongClickable()), or [isFocusable()](https://developer.android.com/reference/android/view/View.html#isFocusable())
   - Has an [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat)
   - Has an interaction listener, e.g. [View.OnTouchListener](https://developer.android.com/reference/android/view/View.OnTouchListener.html), [View.OnKeyListener](https://developer.android.com/reference/android/view/View.OnKeyListener.html), etc.
   - Is an accessibility live region, e.g. [getAccessibilityLiveRegion(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getAccessibilityLiveRegion(android.view.View)) is not [ACCESSIBILITY_LIVE_REGION_NONE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE).


*Note:* Prior to API 21, this method will always return `true`.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                             Returns                              ||
|-----------|-------------------------------------------------------|
| `boolean` | Whether the view is exposed for accessibility. <br /> |

**See also:**

- [setImportantForAccessibility(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setImportantForAccessibility(android.view.View, int))
- [getImportantForAccessibility(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getImportantForAccessibility(android.view.View))  

### isImportantForAutofill

added in [version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isImportantForAutofill (View v)
```

Hints the Android System whether the [AssistStructure.ViewNode](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode.html)
associated with this view is considered important for autofill purposes.

Generally speaking, a view is important for autofill if:

1. The view can be autofilled by an [AutofillService](https://developer.android.com/reference/android/service/autofill/AutofillService.html).
2. The view contents can help an [AutofillService](https://developer.android.com/reference/android/service/autofill/AutofillService.html) determine how other views can be autofilled.
   1. For example, view containers should typically return `false` for performance reasons (since the important info is provided by their children), but if its properties have relevant information (for example, a resource id called `credentials`, it should return `true`. On the other hand, views representing labels or editable fields should typically return `true`, but in some cases they could return `false` (for example, if they're part of a "Captcha" mechanism).
   2. The value returned by this method depends on the value returned by [getImportantForAutofill(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getImportantForAutofill(android.view.View)):
   1. if it returns [IMPORTANT_FOR_AUTOFILL_YES](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES) or [IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS), then it returns `true`
   2. if it returns [IMPORTANT_FOR_AUTOFILL_NO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO) or [IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS), then it returns `false`
   3. if it returns [IMPORTANT_FOR_AUTOFILL_AUTO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO), then it uses some simple heuristics that can return `true` in some cases (like a container with a resource id), but `false` in most.
   4. otherwise, it returns `false`.
   3. When a view is considered important for autofill:
   - The view might automatically trigger an autofill request when focused on.
   - The contents of the view are included in the [ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html) used in an autofill request.
   4. On the other hand, when a view is considered not important for autofill:
   - The view never automatically triggers autofill requests, but it can trigger a manual request through [requestAutofill(View)](https://developer.android.com/reference/android/view/autofill/AutofillManager.html#requestAutofill(android.view.View)).
   - The contents of the view are not included in the [ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html) used in an autofill request, unless the request has the [AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS](https://developer.android.com/reference/android/view/View.html#AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS) flag.
   5. This method is only supported on API \>= 26. On API 25 and below, it will always return `true`.

   |     Parameters     ||
   |-----|---------------|
   | `v` | `View` <br /> |

   |                                 Returns                                  ||
   |-----------|---------------------------------------------------------------|
   | `boolean` | whether the view is considered important for autofill. <br /> |

   **See also:**
   - [setImportantForAutofill(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setImportantForAutofill(android.view.View, int))
   - [IMPORTANT_FOR_AUTOFILL_AUTO](https://developer.android.com/https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_AUTO)
   - [IMPORTANT_FOR_AUTOFILL_YES](https://developer.android.com/https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_YES)
   - [IMPORTANT_FOR_AUTOFILL_NO](https://developer.android.com/https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_NO)
   - [IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS](https://developer.android.com/https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS)
   - [IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS](https://developer.android.com/https://developer.android.com/reference/android/view/View#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS)
- [requestAutofill(View)](https://developer.android.com/https://developer.android.com/reference/android/view/autofill/AutofillManager#requestAutofill(android.view.View))  

### isInLayout

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isInLayout (View view)
```

Returns whether the view hierarchy is currently undergoing a layout pass. This
information is useful to avoid situations such as calling [requestLayout()](https://developer.android.com/reference/android/view/View.html#requestLayout())
during a layout pass.


Compatibility:

- API \< 18: Always returns `false`

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                      Returns                                       ||
|-----------|-------------------------------------------------------------------------|
| `boolean` | whether the view hierarchy is currently undergoing a layout pass <br /> |

### isKeyboardNavigationCluster

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isKeyboardNavigationCluster (View view)
```

Returns whether `view` is a root of a keyboard navigation cluster. Always returns
`false` on API \< 26.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                       Returns                                       ||
|-----------|--------------------------------------------------------------------------|
| `boolean` | `true` if this view is a root of a cluster, or `false` otherwise. <br /> |

### isLaidOut

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isLaidOut (View view)
```

Returns true if `view` has been through at least one layout since it
was last attached to or detached from a window.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### isLayoutDirectionResolved

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isLayoutDirectionResolved (View view)
```

Returns whether layout direction has been resolved.


Compatibility:

- API \< 19: Always returns `false`

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                            Returns                            ||
|-----------|----------------------------------------------------|
| `boolean` | true if layout direction has been resolved. <br /> |

### isNestedScrollingEnabled

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isNestedScrollingEnabled (View view)
```

Returns true if nested scrolling is enabled for this view.

If nested scrolling is enabled and this View class implementation supports it,
this view will act as a nested scrolling child view when applicable, forwarding data
about the scroll operation in progress to a compatible and cooperating nested scrolling
parent.

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                        Returns                        ||
|-----------|--------------------------------------------|
| `boolean` | true if nested scrolling is enabled <br /> |

**See also:**

- [setNestedScrollingEnabled(View, boolean)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setNestedScrollingEnabled(android.view.View, boolean))  

### isOpaque

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isOpaque (View view)
```


**This method was deprecated
in API level 25.1.0.**   

Use [isOpaque()](https://developer.android.com/reference/android/view/View.html#isOpaque()) directly. This method will be
removed in a future release.

Indicates whether this View is opaque. An opaque View guarantees that it will
draw all the pixels overlapping its bounds using a fully opaque color.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                        Returns                                         ||
|-----------|-----------------------------------------------------------------------------|
| `boolean` | True if this View is guaranteed to be fully opaque, false otherwise. <br /> |

### isPaddingRelative

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isPaddingRelative (View view)
```

Return if the padding as been set through relative values
`View.setPaddingRelative(int, int, int, int)` or thru

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                 Returns                                  ||
|-----------|---------------------------------------------------------------|
| `boolean` | true if the padding is relative or false if it is not. <br /> |

### jumpDrawablesToCurrentState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void jumpDrawablesToCurrentState (View v)
```


**This method was deprecated
in API level 26.1.0.**   

Use [jumpDrawablesToCurrentState()](https://developer.android.com/reference/android/view/View.html#jumpDrawablesToCurrentState()) directly.

On API 11 devices and above, call `Drawable.jumpToCurrentState()`
on all Drawable objects associated with this view.


On API 21 and above, also calls `StateListAnimator#jumpToCurrentState()`
if there is a StateListAnimator attached to this view.

<br />

|     Parameters     ||
|-----|---------------|
| `v` | `View` <br /> |

### keyboardNavigationClusterSearch

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
View keyboardNavigationClusterSearch (View view, 
                View currentCluster, 
                int direction)
```

Find the nearest keyboard navigation cluster in the specified direction.
This does not actually give focus to that cluster.

<br />

|                                                      Parameters                                                       ||
|------------------|-----------------------------------------------------------------------------------------------------|
| `view`           | `View` <br />                                                                                       |
| `currentCluster` | `View`: The starting point of the search. `null` means the current cluster is not found yet. <br /> |
| `direction`      | `int`: Direction to look. <br />                                                                    |

|                                                                                               Returns                                                                                               ||
|------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| [View](https://developer.android.com/reference/android/view/View.html) | the nearest keyboard navigation cluster in the specified direction, or `null` if one can't be found or if API \< 26. <br /> |

### offsetLeftAndRight

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void offsetLeftAndRight (View view, 
                int offset)
```

Offset this view's horizontal location by the specified amount of pixels.

<br />

|                             Parameters                             ||
|----------|----------------------------------------------------------|
| `view`   | `View` <br />                                            |
| `offset` | `int`: the number of pixels to offset the view by <br /> |

### offsetTopAndBottom

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void offsetTopAndBottom (View view, 
                int offset)
```

Offset this view's vertical location by the specified number of pixels.

<br />

|                             Parameters                             ||
|----------|----------------------------------------------------------|
| `view`   | `View` <br />                                            |
| `offset` | `int`: the number of pixels to offset the view by <br /> |

### onApplyWindowInsets

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
WindowInsetsCompat onApplyWindowInsets (View view, 
                WindowInsetsCompat insets)
```

Called when the view should apply [WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat) according to its internal policy.

Clients may supply an [OnApplyWindowInsetsListener](https://developer.android.com/reference/android/support/v4/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.

<br />

<br />

|                              Parameters                               ||
|----------|-------------------------------------------------------------|
| `view`   | `View`: The View against which to invoke the method. <br /> |
| `insets` | `WindowInsetsCompat`: Insets to apply <br />                |

|                                                                                Returns                                                                                ||
|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|
| [WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat) | The supplied insets with any applied insets consumed <br /> |

### onInitializeAccessibilityEvent

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onInitializeAccessibilityEvent (View v, 
                AccessibilityEvent event)
```


**This method was deprecated
in API level 26.1.0.**   

Call [onInitializeAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)) directly.
This method will be removed in a future release.

Initializes an [AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html) with information about
this View which is the event source. In other words, the source of
an accessibility event is the view whose state change triggered firing
the event.


Example: Setting the password property of an event in addition
to properties set by the super implementation:  

```
 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
     super.onInitializeAccessibilityEvent(event);
     event.setPassword(true);
 }
```


If an [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat) has been specified via calling
[setAccessibilityDelegate(View, AccessibilityDelegateCompat)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityDelegate(android.view.View, android.support.v4.view.AccessibilityDelegateCompat)), its
[onInitializeAccessibilityEvent(View, AccessibilityEvent)](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat#onInitializeAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent))
is responsible for handling this call.

<br />

|                              Parameters                              ||
|---------|-------------------------------------------------------------|
| `v`     | `View`: The View against which to invoke the method. <br /> |
| `event` | `AccessibilityEvent`: The event to initialize. <br />       |

**See also:**

- [sendAccessibilityEvent(int)](https://developer.android.com/https://developer.android.com/reference/android/view/View#sendAccessibilityEvent(int))
- [dispatchPopulateAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/https://developer.android.com/reference/android/view/View#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent))  

### onInitializeAccessibilityNodeInfo

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onInitializeAccessibilityNodeInfo (View v, 
                AccessibilityNodeInfoCompat info)
```

Initializes an [AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat) with information
about this view. The base implementation sets:

- [setParent(View)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setParent(android.view.View)),
- [setBoundsInParent(Rect)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInParent(android.graphics.Rect)),
- [setBoundsInScreen(Rect)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInScreen(android.graphics.Rect)),
- [setPackageName(CharSequence)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setPackageName(java.lang.CharSequence)),
- [setClassName(CharSequence)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setClassName(java.lang.CharSequence)),
- [setContentDescription(CharSequence)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setContentDescription(java.lang.CharSequence)),
- [setEnabled(boolean)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setEnabled(boolean)),
- [setClickable(boolean)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setClickable(boolean)),
- [setFocusable(boolean)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setFocusable(boolean)),
- [setFocused(boolean)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setFocused(boolean)),
- [setLongClickable(boolean)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setLongClickable(boolean)),
- [setSelected(boolean)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#setSelected(boolean)),


If an [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat) has been specified via calling
[setAccessibilityDelegate(View, AccessibilityDelegateCompat)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityDelegate(android.view.View, android.support.v4.view.AccessibilityDelegateCompat)), its
[onInitializeAccessibilityNodeInfo(View, AccessibilityNodeInfoCompat)](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat#onInitializeAccessibilityNodeInfo(android.view.View, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat))
method is responsible for handling this call.

<br />

|                                Parameters                                 ||
|--------|-------------------------------------------------------------------|
| `v`    | `View`: The View against which to invoke the method. <br />       |
| `info` | `AccessibilityNodeInfoCompat`: The instance to initialize. <br /> |

### onPopulateAccessibilityEvent

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onPopulateAccessibilityEvent (View v, 
                AccessibilityEvent event)
```


**This method was deprecated
in API level 26.1.0.**   

Call [onPopulateAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/reference/android/view/View.html#onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)) directly.
This method will be removed in a future release.

Called from [dispatchPopulateAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/reference/android/view/View.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent))
giving a chance to this View to populate the accessibility event with its
text content. While this method is free to modify event
attributes other than text content, doing so should normally be performed in
[onInitializeAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)).


Example: Adding formatted date string to an accessibility event in addition
to the text added by the super implementation:  

```
 public void onPopulateAccessibilityEvent(AccessibilityEvent event) {
     super.onPopulateAccessibilityEvent(event);
     final int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_WEEKDAY;
     String selectedDateUtterance = DateUtils.formatDateTime(mContext,
         mCurrentDate.getTimeInMillis(), flags);
     event.getText().add(selectedDateUtterance);
 }
```


If an [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat) has been specified via calling
[setAccessibilityDelegate(View, AccessibilityDelegateCompat)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityDelegate(android.view.View, android.support.v4.view.AccessibilityDelegateCompat)) its
[onPopulateAccessibilityEvent(View, AccessibilityEvent)](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat#onPopulateAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent))
is responsible for handling this call.

**Note:** Always call the super implementation before adding
information to the event, in case the default implementation has basic information to add.

<br />

<br />

|                                    Parameters                                    ||
|---------|-------------------------------------------------------------------------|
| `v`     | `View`: The View against which to invoke the method. <br />             |
| `event` | `AccessibilityEvent`: The accessibility event which to populate. <br /> |

**See also:**

- [sendAccessibilityEvent(int)](https://developer.android.com/https://developer.android.com/reference/android/view/View#sendAccessibilityEvent(int))
- [dispatchPopulateAccessibilityEvent(AccessibilityEvent)](https://developer.android.com/https://developer.android.com/reference/android/view/View#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent))  

### performAccessibilityAction

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean performAccessibilityAction (View view, 
                int action, 
                Bundle arguments)
```

Performs the specified accessibility action on the view. For
possible accessibility actions look at [AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat).


If an [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat) has been specified via calling
[setAccessibilityDelegate(View, AccessibilityDelegateCompat)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setAccessibilityDelegate(android.view.View, android.support.v4.view.AccessibilityDelegateCompat)) its
[performAccessibilityAction(View, int, Bundle)](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat#performAccessibilityAction(android.view.View, int, android.os.Bundle))
is responsible for handling this call.

<br />

<br />

|                        Parameters                        ||
|-------------|---------------------------------------------|
| `view`      | `View` <br />                               |
| `action`    | `int`: The action to perform. <br />        |
| `arguments` | `Bundle`: Optional action arguments. <br /> |

|                       Returns                       ||
|-----------|------------------------------------------|
| `boolean` | Whether the action was performed. <br /> |

### postInvalidateOnAnimation

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void postInvalidateOnAnimation (View view, 
                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.

This method can be invoked from outside of the UI thread
only when this View is attached to a window.

<br />

<br />

|                                  Parameters                                   ||
|----------|---------------------------------------------------------------------|
| `view`   | `View`: View to invalidate <br />                                   |
| `left`   | `int`: The left coordinate of the rectangle to invalidate. <br />   |
| `top`    | `int`: The top coordinate of the rectangle to invalidate. <br />    |
| `right`  | `int`: The right coordinate of the rectangle to invalidate. <br />  |
| `bottom` | `int`: The bottom coordinate of the rectangle to invalidate. <br /> |

### postInvalidateOnAnimation

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void postInvalidateOnAnimation (View view)
```

<br />

Cause an invalidate to happen on the next animation time step, typically the
next display frame.

This method can be invoked from outside of the UI thread
only when this View is attached to a window.

<br />

<br />

|                Parameters                 ||
|--------|-----------------------------------|
| `view` | `View`: View to invalidate <br /> |

### postOnAnimation

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void postOnAnimation (View view, 
                Runnable action)
```

<br />

Causes the Runnable to execute on the next animation time step.
The runnable will be run on the user interface thread.

This method can be invoked from outside of the UI thread
only when this View is attached to a window.

<br />

<br />

|                            Parameters                            ||
|----------|--------------------------------------------------------|
| `view`   | `View`: View to post this Runnable to <br />           |
| `action` | `Runnable`: The Runnable that will be executed. <br /> |

### postOnAnimationDelayed

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void postOnAnimationDelayed (View view, 
                Runnable action, 
                long delayMillis)
```

<br />

Causes the Runnable to execute on the next animation time step,
after the specified amount of time elapses.
The runnable will be run on the user interface thread.

This method can be invoked from outside of the UI thread
only when this View is attached to a window.

<br />

<br />

|                                           Parameters                                           ||
|---------------|---------------------------------------------------------------------------------|
| `view`        | `View`: The view to post this Runnable to <br />                                |
| `action`      | `Runnable`: The Runnable that will be executed. <br />                          |
| `delayMillis` | `long`: The delay (in milliseconds) until the Runnable will be executed. <br /> |

### requestApplyInsets

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void requestApplyInsets (View view)
```

Ask that a new dispatch of `View.onApplyWindowInsets(WindowInsets)` be performed. This
falls back to `View.requestFitSystemWindows()` where available.

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

### requireViewById

added in [version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
T requireViewById (View view, 
                int id)
```

Finds the first descendant view with the given ID, the view itself if the ID matches
[getId()](https://developer.android.com/reference/android/view/View.html#getId()), or throws an IllegalArgumentException if the ID is invalid or there
is no matching view in the hierarchy.


**Note:** In most cases -- depending on compiler support --
the resulting view is automatically cast to the target class type. If
the target class type is unconstrained, an explicit cast may be
necessary.

<br />

|                 Parameters                 ||
|--------|------------------------------------|
| `view` | `View` <br />                      |
| `id`   | `int`: the ID to search for <br /> |

|             Returns              ||
|-----|-----------------------------|
| `T` | a view with given ID <br /> |

**See also:**

- [findViewById(int)](https://developer.android.com/https://developer.android.com/reference/android/view/View#findViewById(int))  

### resolveSizeAndState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int resolveSizeAndState (int size, 
                int measureSpec, 
                int childMeasuredState)
```


**This method was deprecated
in API level 26.1.0.**   

Use [resolveSizeAndState(int, int, int)](https://developer.android.com/reference/android/view/View.html#resolveSizeAndState(int, int, int)) directly.

Utility to reconcile a desired size and state, with constraints imposed
by a MeasureSpec. Will take the desired size, unless a different size
is imposed by the constraints. The returned value is a compound integer,
with the resolved size in the [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_SIZE_MASK) bits and
optionally the bit [MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_TOO_SMALL) set if the resulting
size is smaller than the size the view wants to be.

<br />

|                              Parameters                               ||
|----------------------|-------------------------------------------------|
| `size`               | `int`: How big the view wants to be <br />      |
| `measureSpec`        | `int`: Constraints imposed by the parent <br /> |
| `childMeasuredState` | `int` <br />                                    |

|                                                                                                                                                    Returns                                                                                                                                                     ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | Size information bit mask as defined by [MEASURED_SIZE_MASK](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_SIZE_MASK) and [MEASURED_STATE_TOO_SMALL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#MEASURED_STATE_TOO_SMALL). <br /> |

### restoreDefaultFocus

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean restoreDefaultFocus (View view)
```

Gives focus to the default-focus view in the view hierarchy rooted at `view`.
If the default-focus view cannot be found or if API \< 26, this falls back to calling
[requestFocus(int)](https://developer.android.com/reference/android/view/View.html#requestFocus(int)).

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

|                                           Returns                                           ||
|-----------|----------------------------------------------------------------------------------|
| `boolean` | `true` if `view` or one of its descendants took focus, `false` otherwise. <br /> |

### setAccessibilityDelegate

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAccessibilityDelegate (View v, 
                AccessibilityDelegateCompat delegate)
```

Sets a delegate for implementing accessibility support via composition
(as opposed to inheritance). For more details, see
[AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat).


**Note:** On platform versions prior to
[API 23](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#M), delegate methods on
views in the `android.widget.*` package are called *before*
host methods. This prevents certain properties such as class name from
being modified by overriding
[onInitializeAccessibilityNodeInfo(View, AccessibilityNodeInfoCompat)](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat#onInitializeAccessibilityNodeInfo(android.view.View, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat)),
as any changes will be overwritten by the host class.


Starting in [API 23](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#M), delegate
methods are called *after* host methods, which all properties to be
modified without being overwritten by the host class.

<br />

|                                                      Parameters                                                      ||
|------------|----------------------------------------------------------------------------------------------------------|
| `v`        | `View` <br />                                                                                            |
| `delegate` | `AccessibilityDelegateCompat`: the object to which accessibility method calls should be delegated <br /> |

**See also:**

- [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat)  

### setAccessibilityLiveRegion

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAccessibilityLiveRegion (View view, 
                int mode)
```

Sets the live region mode for the specified view. This indicates to
accessibility services whether they should automatically notify the user
about changes to the view's content description or text, or to the
content descriptions or text of the view's children (where applicable).


For example, in a login screen with a TextView that displays an "incorrect
password" notification, that view should be marked as a live region with
mode [ACCESSIBILITY_LIVE_REGION_POLITE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE).


To disable change notifications for this view, use
[ACCESSIBILITY_LIVE_REGION_NONE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE). This is the default live region
mode for most views.


To indicate that the user should be notified of changes, use
[ACCESSIBILITY_LIVE_REGION_POLITE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE).


If the view's changes should interrupt ongoing speech and notify the user
immediately, use [ACCESSIBILITY_LIVE_REGION_ASSERTIVE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_ASSERTIVE).

<br />

|                                                                                                                                                                                                                                                        Parameters                                                                                                                                                                                                                                                         ||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View`: The view on which to set the live region mode <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `mode` | `int`: The live region mode for this view, one of: - [ACCESSIBILITY_LIVE_REGION_NONE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE) - [ACCESSIBILITY_LIVE_REGION_POLITE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE) - [ACCESSIBILITY_LIVE_REGION_ASSERTIVE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_ASSERTIVE) <br /> |

### setActivated

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setActivated (View view, 
                boolean activated)
```


**This method was deprecated
in API level 26.1.0.**   

Use [setActivated(boolean)](https://developer.android.com/reference/android/view/View.html#setActivated(boolean)) directly.

Changes the activated state of this view. A view can be activated or not.
Note that activation is not the same as selection. Selection is
a transient property, representing the view (hierarchy) the user is
currently interacting with. Activation is a longer-term state that the
user can move views in and out of.

<br />

|                                     Parameters                                     ||
|-------------|-----------------------------------------------------------------------|
| `view`      | `View` <br />                                                         |
| `activated` | `boolean`: true if the view must be activated, false otherwise <br /> |

### setAlpha

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAlpha (View view, 
                float value)
```


**This method was deprecated
in API level 26.1.0.**   

Use [setAlpha(float)](https://developer.android.com/reference/android/view/View.html#setAlpha(float)) directly.

<br />

Sets the opacity of the view. This is a value from 0 to 1, where 0 means the view is
completely transparent and 1 means the view is completely opaque.

Note that setting alpha to a translucent value (0 \< alpha \< 1) can have significant
performance implications, especially for large views. It is best to use the alpha property
sparingly and transiently, as in the case of fading animations.

<br />

<br />

|                                     Parameters                                     ||
|---------|---------------------------------------------------------------------------|
| `view`  | `View` <br />                                                             |
| `value` | `float`: The opacity of the view. Value is between 0.0 and 1.0 inclusive. |

### setAutofillHints

added in [version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAutofillHints (View v, 
                String... autofillHints)
```

Sets the hints that help an [AutofillService](https://developer.android.com/reference/android/service/autofill/AutofillService.html) determine how
to autofill the view with the user's data.

Typically, there is only one way to autofill a view, but there could be more than one.
For example, if the application accepts either an username or email address to identify
an user.

These hints are not validated by the Android System, but passed "as is" to the service.
Hence, they can have any value, but it's recommended to use the `AUTOFILL_HINT_`
constants such as:
[AUTOFILL_HINT_USERNAME](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_USERNAME), [AUTOFILL_HINT_PASSWORD](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_PASSWORD),
[AUTOFILL_HINT_EMAIL_ADDRESS](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_EMAIL_ADDRESS),
[AUTOFILL_HINT_NAME](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_NAME),
[AUTOFILL_HINT_PHONE](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_PHONE),
[AUTOFILL_HINT_POSTAL_ADDRESS](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_POSTAL_ADDRESS), [AUTOFILL_HINT_POSTAL_CODE](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_POSTAL_CODE),
[AUTOFILL_HINT_CREDIT_CARD_NUMBER](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_NUMBER),
[AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE),
[AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE),
[AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY),
[AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH) or
[AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR](https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR).

This method is only supported on API \>= 26.
On API 25 and below, it is a no-op

<br />

<br />

|                                             Parameters                                             ||
|-----------------|-----------------------------------------------------------------------------------|
| `v`             | `View` <br />                                                                     |
| `autofillHints` | `String`: The autofill hints to set. If the array is emtpy, `null` is set. <br /> |

### setBackground

added in [version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setBackground (View view, 
                Drawable background)
```

Set the background of the `view` to a given Drawable, or remove the background. If the
background has padding, `view`'s padding is set to the background's padding. However,
when a background is removed, this View's padding isn't touched. If setting the padding is
desired, please use`setPadding(int, int, int, int)`.

<br />

|           Parameters            ||
|--------------|-------------------|
| `view`       | `View` <br />     |
| `background` | `Drawable` <br /> |

### setBackgroundTintList

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setBackgroundTintList (View view, 
                ColorStateList tintList)
```

Applies a tint to the background drawable.


This will always take effect when running on API v21 or newer. When running on platforms
previous to API v21, it will only take effect if `view` implements the
`TintableBackgroundView` interface.

<br />

|             Parameters              ||
|------------|-------------------------|
| `view`     | `View` <br />           |
| `tintList` | `ColorStateList` <br /> |

### setBackgroundTintMode

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setBackgroundTintMode (View view, 
                PorterDuff.Mode mode)
```

Specifies the blending mode used to apply the tint specified by
[setBackgroundTintList(android.view.View, android.content.res.ColorStateList)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setBackgroundTintList(android.view.View, android.content.res.ColorStateList)) to
the background drawable. The default mode is [SRC_IN](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_IN).


This will always take effect when running on API v21 or newer. When running on platforms
previous to API v21, it will only take effect if `view` implement the
`TintableBackgroundView` interface.

<br />

|            Parameters            ||
|--------|--------------------------|
| `view` | `View` <br />            |
| `mode` | `PorterDuff.Mode` <br /> |

### setChildrenDrawingOrderEnabled

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setChildrenDrawingOrderEnabled (ViewGroup viewGroup, 
                boolean enabled)
```


**This method was deprecated
in API level 27.1.0.**   

Use [setChildrenDrawingOrderEnabled(boolean)](https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingOrderEnabled(boolean)) directly.

Tells the ViewGroup whether to draw its children in the order defined by the method
`ViewGroup.getChildDrawingOrder(int, int)`.

<br />

|                                                                                                                                          Parameters                                                                                                                                           ||
|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `viewGroup` | `ViewGroup` <br />                                                                                                                                                                                                                                                               |
| `enabled`   | `boolean`: true if the order of the children when drawing is determined by [getChildDrawingOrder(int, int)](https://developer.android.com/reference/android/view/ViewGroup.html#getChildDrawingOrder(int, int)), false otherwise Prior to API 7 this will have no effect. <br /> |

### setClipBounds

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setClipBounds (View view, 
                Rect clipBounds)
```

Sets a rectangular area on this view to which the view will be clipped
when it is drawn. Setting the value to null will remove the clip bounds
and the view will draw normally, using its full bounds.

Prior to API 18 this does nothing.

<br />

<br />

|                                                                  Parameters                                                                   ||
|--------------|---------------------------------------------------------------------------------------------------------------------------------|
| `view`       | `View`: The view to set clipBounds. <br />                                                                                      |
| `clipBounds` | `Rect`: The rectangular area, in the local coordinates of this view, to which future drawing operations will be clipped. <br /> |

### setElevation

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setElevation (View view, 
                float elevation)
```

Sets the base elevation of this view, in pixels.

<br />

|         Parameters          ||
|-------------|----------------|
| `view`      | `View` <br />  |
| `elevation` | `float` <br /> |

### setFitsSystemWindows

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setFitsSystemWindows (View view, 
                boolean fitSystemWindows)
```


**This method was deprecated
in API level 26.1.0.**   

Use [setFitsSystemWindows(boolean)](https://developer.android.com/reference/android/view/View.html#setFitsSystemWindows(boolean)) directly.

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 [fitSystemWindows(Rect)](https://developer.android.com/reference/android/view/View.html#fitSystemWindows(android.graphics.Rect)) will be
executed. See that method for more details.

<br />

|              Parameters              ||
|--------------------|------------------|
| `view`             | `View` <br />    |
| `fitSystemWindows` | `boolean` <br /> |

### setFocusedByDefault

added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setFocusedByDefault (View view, 
                boolean isFocusedByDefault)
```

Sets whether `view` should receive focus when the focus is restored for the view
hierarchy containing it.


Focus gets restored for a view hierarchy when the root of the hierarchy gets added to a
window or serves as a target of cluster navigation.


Does nothing on API \< 26.

<br />

|                                                 Parameters                                                 ||
|----------------------|--------------------------------------------------------------------------------------|
| `view`               | `View` <br />                                                                        |
| `isFocusedByDefault` | `boolean`: `true` to set `view` as the default-focus view, `false` otherwise. <br /> |

### setHasTransientState

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setHasTransientState (View view, 
                boolean hasTransientState)
```

Set whether this view is currently tracking transient state that the
framework should attempt to preserve when possible.

<br />

|                                  Parameters                                  ||
|---------------------|---------------------------------------------------------|
| `view`              | `View`: View tracking transient state <br />            |
| `hasTransientState` | `boolean`: true if this view has transient state <br /> |

### setImportantForAccessibility

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setImportantForAccessibility (View view, 
                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.


*Note:* If the current platform version does not support the
[IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS) mode, then
[IMPORTANT_FOR_ACCESSIBILITY_NO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO) will be used as it is the
closest terms of semantics.

<br />

<br />

|                                        Parameters                                        ||
|--------|----------------------------------------------------------------------------------|
| `view` | `View`: The view whose property to set. <br />                                   |
| `mode` | `int`: How to determine whether this view is important for accessibility. <br /> |

**See also:**

- [IMPORTANT_FOR_ACCESSIBILITY_YES](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES)
- [IMPORTANT_FOR_ACCESSIBILITY_NO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO)
- [IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS)
- [IMPORTANT_FOR_ACCESSIBILITY_AUTO](https://developer.android.com/reference/android/support/v4/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO)  

### setImportantForAutofill

added in [version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setImportantForAutofill (View v, 
                int mode)
```

Sets the mode for determining whether this view is considered important for autofill.

The platform determines the importance for autofill automatically but you
can use this method to customize the behavior. For example:

1. When the view contents is irrelevant for autofill (for example, a text field used in a "Captcha" challenge), it should be [IMPORTANT_FOR_AUTOFILL_NO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO).
2. When both the view and its children are irrelevant for autofill (for example, the root view of an activity containing a spreadhseet editor), it should be [IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS).
3. When the view content is relevant for autofill but its children aren't (for example, a credit card expiration date represented by a custom view that overrides the proper autofill methods and has 2 children representing the month and year), it should be [IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS).

**NOTE: setting the mode as does [IMPORTANT_FOR_AUTOFILL_NO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO) or
[IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS) does not guarantee the view (and
its children) will be always be considered not important; for example, when the user
explicitly makes an autofill request, all views are considered important. See
[isImportantForAutofill(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isImportantForAutofill(android.view.View)) for more details about how the View's importance for
autofill is used.**

**This method is only supported on API \>= 26.
On API 25 and below, it is a no-op**

<br />

<br />

**| Parameters ||
|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `v` | `View` <br /> |
| `mode` | `int`: [IMPORTANT_FOR_AUTOFILL_AUTO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO), [IMPORTANT_FOR_AUTOFILL_YES](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES), [IMPORTANT_FOR_AUTOFILL_NO](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO), [IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS), or [IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS). <br /> |**
**### setKeyboardNavigationCluster
added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setKeyboardNavigationCluster (View view,
boolean isCluster)
```
Set whether `view` is a root of a keyboard navigation cluster. Does nothing if
API \< 26.
<br />
| Parameters ||
|-------------|--------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `isCluster` | `boolean`: `true` to mark `view` as the root of a cluster, `false` to unmark. <br /> |
### setLabelFor
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setLabelFor (View view,
int labeledId)
```
Sets the id of a view for which a given view serves as a label for
accessibility purposes.
<br />
| Parameters ||
|-------------|----------------------------------------------------------------------|
| `view` | `View`: The view on which to invoke the corresponding method. <br /> |
| `labeledId` | `int`: The labeled view id. <br /> |
### setLayerPaint
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setLayerPaint (View view,
Paint paint)
```
Updates the [Paint](https://developer.android.com/reference/android/graphics/Paint.html) object used with the current layer (used only if the current
layer type is not set to [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE)). Changed properties of the Paint
provided to [setLayerType(android.view.View, int, android.graphics.Paint)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerType(android.view.View, int, android.graphics.Paint))
will be used the next time the View is redrawn, but
[setLayerPaint(android.view.View, android.graphics.Paint)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerPaint(android.view.View, android.graphics.Paint))
must be called to ensure that the view gets redrawn immediately.
A layer is associated with an optional [Paint](https://developer.android.com/reference/android/graphics/Paint.html)
instance that controls how the layer is composed on screen. The following
properties of the paint are taken into account when composing the layer:
- [Translucency (alpha)](https://developer.android.com/reference/android/graphics/Paint.html#getAlpha())
- [Blending mode](https://developer.android.com/reference/android/graphics/Paint.html#getXfermode())
- [Color filter](https://developer.android.com/reference/android/graphics/Paint.html#getColorFilter())
If this view has an alpha value set to \< 1.0 by calling
View#setAlpha(float), the alpha value of the layer's paint is replaced by
this view's alpha value. Calling View#setAlpha(float) is therefore
equivalent to setting a hardware layer on this view and providing a paint with
the desired alpha value.
<br />
<br />
| Parameters ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View`: View to set a layer paint for <br /> |
| `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 [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE) <br /> |
**See also:**
- [setLayerType(View, int, android.graphics.Paint)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setLayerType(android.view.View, int, android.graphics.Paint))
### setLayerType
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setLayerType (View view,
int layerType,
Paint paint)
```
**This method was deprecated
in API level 26.1.0.**
Use [setLayerType(int, Paint)](https://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint)) directly.
<br />
Specifies the type of layer backing this view. The layer can be
[disabled](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE), [software](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE) or
[hardware](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE).
A layer is associated with an optional [Paint](https://developer.android.com/reference/android/graphics/Paint.html)
instance that controls how the layer is composed on screen. The following
properties of the paint are taken into account when composing the layer:
- [Translucency (alpha)](https://developer.android.com/reference/android/graphics/Paint.html#getAlpha())
- [Blending mode](https://developer.android.com/reference/android/graphics/Paint.html#getXfermode())
- [Color filter](https://developer.android.com/reference/android/graphics/Paint.html#getColorFilter())
If this view has an alpha value set to \< 1.0 by calling
setAlpha(float), the alpha value of the layer's paint is replaced by
this view's alpha value. Calling setAlpha(float) is therefore
equivalent to setting a hardware layer on this view and providing a paint with
the desired alpha value.
Refer to the documentation of [disabled](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE),
[software](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE) and [hardware](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE)
for more information on when and how to use layers.
<br />
<br />
| Parameters ||
|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View`: View to set the layer type for <br /> |
| `layerType` | `int`: The type of layer to use with this view, must be one of [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE), [LAYER_TYPE_SOFTWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE) or [LAYER_TYPE_HARDWARE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE) <br /> |
| `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 [LAYER_TYPE_NONE](https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE) <br /> |
### setLayoutDirection
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setLayoutDirection (View view,
int layoutDirection)
```
Set the layout direction for this view. This will propagate a reset of layout direction
resolution to the view's children and resolve layout direction for this view.
<br />
| Parameters ||
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View`: View to set layout direction for <br /> |
| `layoutDirection` | `int`: the layout direction to set. Should be one of: [LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR), [LAYOUT_DIRECTION_RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL), [LAYOUT_DIRECTION_INHERIT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_INHERIT), [LAYOUT_DIRECTION_LOCALE](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LOCALE). Resolution will be done if the value is set to LAYOUT_DIRECTION_INHERIT. The resolution proceeds up the parent chain of the view to get the value. If there is no parent, then it will return the default [LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR). <br /> |
### setNestedScrollingEnabled
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setNestedScrollingEnabled (View view,
boolean enabled)
```
Enable or disable nested scrolling for this view.
If this property is set to true the view will be permitted to initiate nested
scrolling operations with a compatible parent view in the current hierarchy. If this
view does not implement nested scrolling this will have no effect. Disabling nested scrolling
while a nested scroll is in progress has the effect of
[stopping](https://developer.android.com/reference/android/support/v4/view/ViewCompat#stopNestedScroll(android.view.View)) the nested scroll.
<br />
<br />
| Parameters ||
|-----------|---------------------------------------------------------------------|
| `view` | `View` <br /> |
| `enabled` | `boolean`: true to enable nested scrolling, false to disable <br /> |
**See also:**
- [isNestedScrollingEnabled(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#isNestedScrollingEnabled(android.view.View))
### setNextClusterForwardId
added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setNextClusterForwardId (View view,
int nextClusterForwardId)
```
Sets the ID of the next keyboard navigation cluster root view. Does nothing if `view`
is not a keyboard navigation cluster or if API \< 26.
<br />
| Parameters ||
|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `nextClusterForwardId` | `int`: next cluster ID, or [NO_ID](https://developer.android.com/reference/android/view/View.html#NO_ID) if the framework should decide automatically. <br /> |
### setOnApplyWindowInsetsListener
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setOnApplyWindowInsetsListener (View v,
OnApplyWindowInsetsListener listener)
```
Set an [OnApplyWindowInsetsListener](https://developer.android.com/reference/android/support/v4/view/OnApplyWindowInsetsListener) to take over the policy for applying
window insets to this view. This will only take effect on devices with API 21 or above.
<br />
| Parameters ||
|------------|--------------------------------------|
| `v` | `View` <br /> |
| `listener` | `OnApplyWindowInsetsListener` <br /> |
### setOverScrollMode
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setOverScrollMode (View v,
int overScrollMode)
```
**This method was deprecated
in API level 25.1.0.**
Call [setOverScrollMode(int)](https://developer.android.com/reference/android/view/View.html#setOverScrollMode(int)) directly. This method will be
removed in a future release.
Set the over-scroll mode for this view. Valid over-scroll modes are
[OVER_SCROLL_ALWAYS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_ALWAYS) (default), [OVER_SCROLL_IF_CONTENT_SCROLLS](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_IF_CONTENT_SCROLLS)
(allow over-scrolling only if the view content is larger than the container),
or [OVER_SCROLL_NEVER](https://developer.android.com/reference/android/support/v4/view/ViewCompat#OVER_SCROLL_NEVER).
Setting the over-scroll mode of a view will have an effect only if the
view is capable of scrolling.
<br />
| Parameters ||
|------------------|-------------------------------------------------------------|
| `v` | `View`: The View against which to invoke the method. <br /> |
| `overScrollMode` | `int`: The new over-scroll mode for this view. <br /> |
### setPaddingRelative
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setPaddingRelative (View view,
int start,
int top,
int end,
int bottom)
```
Sets the relative padding. The view may add on the space required to display
the scrollbars, depending on the style and visibility of the scrollbars.
So the values returned from [getPaddingStart(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPaddingStart(android.view.View)), [getPaddingTop()](https://developer.android.com/reference/android/view/View.html#getPaddingTop()),
[getPaddingEnd(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getPaddingEnd(android.view.View)) and [getPaddingBottom()](https://developer.android.com/reference/android/view/View.html#getPaddingBottom()) may be different
from the values set in this call.
<br />
| Parameters ||
|----------|----------------------------------------------------------|
| `view` | `View`: The view on which to set relative padding <br /> |
| `start` | `int`: the start padding in pixels <br /> |
| `top` | `int`: the top padding in pixels <br /> |
| `end` | `int`: the end padding in pixels <br /> |
| `bottom` | `int`: the bottom padding in pixels <br /> |
### setPivotX
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setPivotX (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setPivotX(float)](https://developer.android.com/reference/android/view/View.html#setPivotX(float)) directly.
Sets the x location of the point around which the view is
[rotated](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotation(android.view.View, float)) and [scaled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScaleX(android.view.View, float)).
By default, the pivot point is centered on the object.
Setting this property disables this behavior and causes the view to use only the
explicitly set pivotX and pivotY values.
<br />
| Parameters ||
|---------|----------------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The x location of the pivot point. <br /> |
### setPivotY
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setPivotY (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setPivotX(float)](https://developer.android.com/reference/android/view/View.html#setPivotX(float)) directly.
Sets the y location of the point around which the view is
[rotated](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setRotation(android.view.View, float)) and [scaled](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScaleY(android.view.View, float)).
By default, the pivot point is centered on the object.
Setting this property disables this behavior and causes the view to use only the
explicitly set pivotX and pivotY values.
<br />
| Parameters ||
|---------|----------------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The y location of the pivot point. <br /> |
### setPointerIcon
added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setPointerIcon (View view,
PointerIconCompat pointerIcon)
```
Set the pointer icon for the current view.
<br />
| Parameters ||
|---------------|-----------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `pointerIcon` | `PointerIconCompat`: A PointerIconCompat instance which will be shown when the mouse hovers. <br /> |
### setRotation
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setRotation (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setRotation(float)](https://developer.android.com/reference/android/view/View.html#setRotation(float)) directly.
Sets the degrees that the view is rotated around the pivot point. Increasing values
result in clockwise rotation.
<br />
| Parameters ||
|---------|------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The degrees of rotation. <br /> |
### setRotationX
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setRotationX (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setRotationX(float)](https://developer.android.com/reference/android/view/View.html#setRotationX(float)) directly.
Sets the degrees that the view is rotated around the horizontal axis through the pivot point.
Increasing values result in clockwise rotation from the viewpoint of looking down the
x axis.
<br />
| Parameters ||
|---------|--------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The degrees of X rotation. <br /> |
### setRotationY
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setRotationY (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setRotationY(float)](https://developer.android.com/reference/android/view/View.html#setRotationY(float)) directly.
Sets the degrees that the view is rotated around the vertical axis through the pivot point.
Increasing values result in counter-clockwise rotation from the viewpoint of looking
down the y axis.
<br />
| Parameters ||
|---------|--------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The degrees of Y rotation. <br /> |
### setSaveFromParentEnabled
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setSaveFromParentEnabled (View v,
boolean enabled)
```
**This method was deprecated
in API level 26.1.0.**
Use [setSaveFromParentEnabled(boolean)](https://developer.android.com/reference/android/view/View.html#setSaveFromParentEnabled(boolean)) directly.
Controls whether the entire hierarchy under this view will save its
state when a state saving traversal occurs from its parent.
<br />
| Parameters ||
|-----------|----------------------------------------------------------------------------------------------|
| `v` | `View` <br /> |
| `enabled` | `boolean`: Set to false to *disable* state saving, or true (the default) to allow it. <br /> |
### setScaleX
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setScaleX (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setScaleX(float)](https://developer.android.com/reference/android/view/View.html#setScaleX(float)) directly.
Sets the amount that the view is scaled in x around the pivot point, as a proportion of
the view's unscaled width. A value of 1 means that no scaling is applied.
<br />
| Parameters ||
|---------|-------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The scaling factor. <br /> |
### setScaleY
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setScaleY (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setScaleY(float)](https://developer.android.com/reference/android/view/View.html#setScaleY(float)) directly.
Sets the amount that the view is scaled in Y around the pivot point, as a proportion of
the view's unscaled width. A value of 1 means that no scaling is applied.
<br />
| Parameters ||
|---------|-------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The scaling factor. <br /> |
### setScrollIndicators
added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setScrollIndicators (View view,
int indicators,
int mask)
```
Sets the state of the scroll indicators specified by the mask. To change
all scroll indicators at once, see [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int)).
When a scroll indicator is enabled, it will be displayed if the view
can scroll in the direction of the indicator.
Multiple indicator types may be enabled or disabled by passing the
logical OR of the desired types. If multiple types are specified, they
will all be set to the same enabled state.
For example, to enable the top scroll indicatorExample: `setScrollIndicators`
<br />
| Parameters ||
|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `indicators` | `int`: the indicator direction, or the logical OR of multiple indicator directions. One or more of: - [SCROLL_INDICATOR_TOP](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_TOP) - [SCROLL_INDICATOR_BOTTOM](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_BOTTOM) - [SCROLL_INDICATOR_LEFT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_LEFT) - [SCROLL_INDICATOR_RIGHT](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_RIGHT) - [SCROLL_INDICATOR_START](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_START) - [SCROLL_INDICATOR_END](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_INDICATOR_END) <br /> |
| `mask` | `int` <br /> |
**See also:**
- [setScrollIndicators(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))
### setScrollIndicators
added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setScrollIndicators (View view,
int indicators)
```
Sets the state of all scroll indicators.
See [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int)) for usage information.
<br />
| Parameters ||
|--------------|------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `indicators` | `int`: a bitmask of indicators that should be enabled, or `0` to disable all indicators <br /> |
**See also:**
- [setScrollIndicators(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setScrollIndicators(android.view.View, int, int))
- [getScrollIndicators(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getScrollIndicators(android.view.View))
### setTooltipText
added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setTooltipText (View view,
CharSequence tooltipText)
```
Sets the tooltip for the view.
Prior to API 26 this does nothing. Use TooltipCompat class from v7 appcompat library
for a compatible tooltip implementation.
<br />
<br />
| Parameters ||
|---------------|-----------------------------------------|
| `view` | `View` <br /> |
| `tooltipText` | `CharSequence`: the tooltip text <br /> |
### setTransitionName
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setTransitionName (View view,
String transitionName)
```
Sets the name of the View to be used to identify Views in Transitions.
Names should be unique in the View hierarchy.
<br />
| Parameters ||
|------------------|--------------------------------------------------------------------------------|
| `view` | `View`: The View against which to invoke the method. <br /> |
| `transitionName` | `String`: The name of the View to uniquely identify it for Transitions. <br /> |
### setTranslationX
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setTranslationX (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setTranslationX(float)](https://developer.android.com/reference/android/view/View.html#setTranslationX(float)) directly.
Sets the horizontal location of this view relative to its left position.
This effectively positions the object post-layout, in addition to wherever the object's
layout placed it.
<br />
| Parameters ||
|---------|------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The horizontal position of this view relative to its left position, in pixels. <br /> |
### setTranslationY
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setTranslationY (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setTranslationY(float)](https://developer.android.com/reference/android/view/View.html#setTranslationY(float)) directly.
Sets the vertical location of this view relative to its top position.
This effectively positions the object post-layout, in addition to wherever the object's
layout placed it.
<br />
| Parameters ||
|---------|---------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The vertical position of this view relative to its top position, in pixels. <br /> |
### setTranslationZ
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setTranslationZ (View view,
float translationZ)
```
Sets the depth location of this view relative to its [elevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View)).
<br />
| Parameters ||
|----------------|----------------|
| `view` | `View` <br /> |
| `translationZ` | `float` <br /> |
### setX
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setX (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setX(float)](https://developer.android.com/reference/android/view/View.html#setX(float)) directly.
Sets the visual x position of this view, in pixels. This is equivalent to setting the
[translationX](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationX(android.view.View, float)) property to be the difference between
the x value passed in and the current left property of the view as determined
by the layout bounds.
<br />
| Parameters ||
|---------|----------------------------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The visual x position of this view, in pixels. <br /> |
### setY
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setY (View view,
float value)
```
**This method was deprecated
in API level 26.1.0.**
Use [setY(float)](https://developer.android.com/reference/android/view/View.html#setY(float)) directly.
Sets the visual y position of this view, in pixels. This is equivalent to setting the
[translationY](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationY(android.view.View, float)) property to be the difference between
the y value passed in and the current top property of the view as determined by the
layout bounds.
<br />
| Parameters ||
|---------|----------------------------------------------------------------|
| `view` | `View` <br /> |
| `value` | `float`: The visual y position of this view, in pixels. <br /> |
### setZ
added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void setZ (View view,
float z)
```
Sets the visual z position of this view, in pixels. This is equivalent to setting the
[translationZ](https://developer.android.com/reference/android/support/v4/view/ViewCompat#setTranslationZ(android.view.View, float)) property to be the difference between
the x value passed in and the current [elevation](https://developer.android.com/reference/android/support/v4/view/ViewCompat#getElevation(android.view.View)) property.
Compatibility:
- API \< 21: No-op
<br />
<br />
| Parameters ||
|--------|----------------------------------------------------------------|
| `view` | `View` <br /> |
| `z` | `float`: The visual z position of this view, in pixels. <br /> |
### startDragAndDrop
added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
boolean startDragAndDrop (View v,
ClipData data,
View.DragShadowBuilder shadowBuilder,
Object localState,
int flags)
```
Start the drag and drop operation.
<br />
| Parameters ||
|-----------------|---------------------------------|
| `v` | `View` <br /> |
| `data` | `ClipData` <br /> |
| `shadowBuilder` | `View.DragShadowBuilder` <br /> |
| `localState` | `Object` <br /> |
| `flags` | `int` <br /> |
| Returns ||
|-----------|--------|
| `boolean` | <br /> |
### startNestedScroll
added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
boolean startNestedScroll (View view,
int axes,
int type)
```
Begin a nestable scroll operation along the given axes.
A view starting a nested scroll promises to abide by the following contract:
The view will call startNestedScroll upon initiating a scroll operation. In the case
of a touch scroll this corresponds to the initial [ACTION_DOWN](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_DOWN).
In the case of touch scrolling the nested scroll will be terminated automatically in
the same manner as [requestDisallowInterceptTouchEvent(boolean)](https://developer.android.com/reference/android/view/ViewParent.html#requestDisallowInterceptTouchEvent(boolean)).
In the event of programmatic scrolling the caller must explicitly call
[stopNestedScroll(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#stopNestedScroll(android.view.View)) to indicate the end of the nested scroll.
If `startNestedScroll` returns true, a cooperative parent was found.
If it returns false the caller may ignore the rest of this contract until the next scroll.
Calling startNestedScroll while a nested scroll is already in progress will return true.
At each incremental step of the scroll the caller should invoke
[dispatchNestedPreScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[]))
once it has calculated the requested scrolling delta. If it returns true the nested scrolling
parent at least partially consumed the scroll and the caller should adjust the amount it
scrolls by.
After applying the remainder of the scroll delta the caller should invoke
[dispatchNestedScroll](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedScroll(android.view.View, int, int, int, int, int[])), passing
both the delta consumed and the delta unconsumed. A nested scrolling parent may treat
these values differently. See
[onNestedScroll(View, int, int, int, int)](https://developer.android.com/reference/android/support/v4/view/NestedScrollingParent#onNestedScroll(android.view.View, int, int, int, int)).
<br />
<br />
| Parameters ||
|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `axes` | `int`: Flags consisting of a combination of [SCROLL_AXIS_HORIZONTAL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_HORIZONTAL) and/or [SCROLL_AXIS_VERTICAL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_VERTICAL). <br /> |
| `type` | `int`: the type of input which cause this scroll event <br /> |
| Returns ||
|-----------|--------------------------------------------------------------------------------------------------------------|
| `boolean` | true if a cooperative parent was found and nested scrolling has been enabled for the current gesture. <br /> |
**See also:**
- [stopNestedScroll(View)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#stopNestedScroll(android.view.View))
- [dispatchNestedPreScroll(View, int, int, int[], int[])](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedPreScroll(android.view.View, int, int, int[], int[]))
- [dispatchNestedScroll(View, int, int, int, int, int[])](https://developer.android.com/reference/android/support/v4/view/ViewCompat#dispatchNestedScroll(android.view.View, int, int, int, int, int[]))
### startNestedScroll
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
boolean startNestedScroll (View view,
int axes)
```
Begin a nestable scroll operation along the given axes.
This version of the method just calls [startNestedScroll(View, int, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#startNestedScroll(android.view.View, int, int)) using
the touch input type.
<br />
<br />
| Parameters ||
|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | `View` <br /> |
| `axes` | `int`: Flags consisting of a combination of [SCROLL_AXIS_HORIZONTAL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_HORIZONTAL) and/or [SCROLL_AXIS_VERTICAL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#SCROLL_AXIS_VERTICAL). <br /> |
| Returns ||
|-----------|--------------------------------------------------------------------------------------------------------------|
| `boolean` | true if a cooperative parent was found and nested scrolling has been enabled for the current gesture. <br /> |
### stopNestedScroll
added in [version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void stopNestedScroll (View view,
int type)
```
Stop a nested scroll in progress.
Calling this method when a nested scroll is not currently in progress is harmless.
<br />
<br />
| Parameters ||
|--------|---------------------------------------------------------------|
| `view` | `View` <br /> |
| `type` | `int`: the type of input which cause this scroll event <br /> |
**See also:**
- [startNestedScroll(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#startNestedScroll(android.view.View, int))
### stopNestedScroll
added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void stopNestedScroll (View view)
```
Stop a nested scroll in progress.
This version of the method just calls [stopNestedScroll(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#stopNestedScroll(android.view.View, int)) using the
touch input type.
<br />
<br />
| Parameters ||
|--------|---------------|
| `view` | `View` <br /> |
**See also:**
- [startNestedScroll(View, int)](https://developer.android.com/reference/android/support/v4/view/ViewCompat#startNestedScroll(android.view.View, int))
### updateDragShadow
added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)
```
void updateDragShadow (View v,
View.DragShadowBuilder shadowBuilder)
```
Update the drag shadow while drag and drop is in progress.
<br />
| Parameters ||
|-----------------|---------------------------------|
| `v` | `View` <br /> |
| `shadowBuilder` | `View.DragShadowBuilder` <br /> |**
**-
## Annotations
- [ViewPager.DecorView](https://developer.android.com/reference/android/support/v4/view/ViewPager.DecorView)
-
## Interfaces
- [ActionProvider.VisibilityListener](https://developer.android.com/reference/android/support/v4/view/ActionProvider.VisibilityListener)
- [AsyncLayoutInflater.OnInflateFinishedListener](https://developer.android.com/reference/android/support/v4/view/AsyncLayoutInflater.OnInflateFinishedListener)
- [LayoutInflaterFactory](https://developer.android.com/reference/android/support/v4/view/LayoutInflaterFactory)
- [MenuItemCompat.OnActionExpandListener](https://developer.android.com/reference/android/support/v4/view/MenuItemCompat.OnActionExpandListener)
- [NestedScrollingChild](https://developer.android.com/reference/android/support/v4/view/NestedScrollingChild)
- [NestedScrollingChild2](https://developer.android.com/reference/android/support/v4/view/NestedScrollingChild2)
- [NestedScrollingParent](https://developer.android.com/reference/android/support/v4/view/NestedScrollingParent)
- [NestedScrollingParent2](https://developer.android.com/reference/android/support/v4/view/NestedScrollingParent2)
- [OnApplyWindowInsetsListener](https://developer.android.com/reference/android/support/v4/view/OnApplyWindowInsetsListener)
- [ScrollingView](https://developer.android.com/reference/android/support/v4/view/ScrollingView)
- [TintableBackgroundView](https://developer.android.com/reference/android/support/v4/view/TintableBackgroundView)
- [ViewPager.OnAdapterChangeListener](https://developer.android.com/reference/android/support/v4/view/ViewPager.OnAdapterChangeListener)
- [ViewPager.OnPageChangeListener](https://developer.android.com/reference/android/support/v4/view/ViewPager.OnPageChangeListener)
- [ViewPager.PageTransformer](https://developer.android.com/reference/android/support/v4/view/ViewPager.PageTransformer)
- [ViewPropertyAnimatorListener](https://developer.android.com/reference/android/support/v4/view/ViewPropertyAnimatorListener)
- [ViewPropertyAnimatorUpdateListener](https://developer.android.com/reference/android/support/v4/view/ViewPropertyAnimatorUpdateListener)
-
## Classes
- [AbsSavedState](https://developer.android.com/reference/android/support/v4/view/AbsSavedState)
- [AccessibilityDelegateCompat](https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat)
- [ActionProvider](https://developer.android.com/reference/android/support/v4/view/ActionProvider)
- [AsyncLayoutInflater](https://developer.android.com/reference/android/support/v4/view/AsyncLayoutInflater)
- [GestureDetectorCompat](https://developer.android.com/reference/android/support/v4/view/GestureDetectorCompat)
- [GravityCompat](https://developer.android.com/reference/android/support/v4/view/GravityCompat)
- [InputDeviceCompat](https://developer.android.com/reference/android/support/v4/view/InputDeviceCompat)
- [LayoutInflaterCompat](https://developer.android.com/reference/android/support/v4/view/LayoutInflaterCompat)
- [MarginLayoutParamsCompat](https://developer.android.com/reference/android/support/v4/view/MarginLayoutParamsCompat)
- [MenuCompat](https://developer.android.com/reference/android/support/v4/view/MenuCompat)
- [MenuItemCompat](https://developer.android.com/reference/android/support/v4/view/MenuItemCompat)
- [MotionEventCompat](https://developer.android.com/reference/android/support/v4/view/MotionEventCompat)
- [NestedScrollingChildHelper](https://developer.android.com/reference/android/support/v4/view/NestedScrollingChildHelper)
- [NestedScrollingParentHelper](https://developer.android.com/reference/android/support/v4/view/NestedScrollingParentHelper)
- [PagerAdapter](https://developer.android.com/reference/android/support/v4/view/PagerAdapter)
- [PagerTabStrip](https://developer.android.com/reference/android/support/v4/view/PagerTabStrip)
- [PagerTitleStrip](https://developer.android.com/reference/android/support/v4/view/PagerTitleStrip)
- [PointerIconCompat](https://developer.android.com/reference/android/support/v4/view/PointerIconCompat)
- [ScaleGestureDetectorCompat](https://developer.android.com/reference/android/support/v4/view/ScaleGestureDetectorCompat)
- [VelocityTrackerCompat](https://developer.android.com/reference/android/support/v4/view/VelocityTrackerCompat)
- [ViewCompat](https://developer.android.com/reference/android/support/v4/view/ViewCompat)
- [ViewConfigurationCompat](https://developer.android.com/reference/android/support/v4/view/ViewConfigurationCompat)
- [ViewGroupCompat](https://developer.android.com/reference/android/support/v4/view/ViewGroupCompat)
- [ViewPager](https://developer.android.com/reference/android/support/v4/view/ViewPager)
- [ViewPager.LayoutParams](https://developer.android.com/reference/android/support/v4/view/ViewPager.LayoutParams)
- [ViewPager.SavedState](https://developer.android.com/reference/android/support/v4/view/ViewPager.SavedState)
- [ViewPager.SimpleOnPageChangeListener](https://developer.android.com/reference/android/support/v4/view/ViewPager.SimpleOnPageChangeListener)
- [ViewParentCompat](https://developer.android.com/reference/android/support/v4/view/ViewParentCompat)
- [ViewPropertyAnimatorCompat](https://developer.android.com/reference/android/support/v4/view/ViewPropertyAnimatorCompat)
- [ViewPropertyAnimatorListenerAdapter](https://developer.android.com/reference/android/support/v4/view/ViewPropertyAnimatorListenerAdapter)
- [WindowCompat](https://developer.android.com/reference/android/support/v4/view/WindowCompat)
- [WindowInsetsCompat](https://developer.android.com/reference/android/support/v4/view/WindowInsetsCompat)**