# SwitchCompat

Artifact: [androidx.appcompat:appcompat](https://developer.android.com/jetpack/androidx/releases/appcompat) [View Source](https://cs.android.com/search?q=file:androidx/appcompat/widget/SwitchCompat.java+class:androidx.appcompat.widget.SwitchCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

*** ** * ** ***


```
public class SwitchCompat extends CompoundButton implements EmojiCompatConfigurationView
```

<br />

|---|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||||
| ↳ | [android.view.View](https://developer.android.com/reference/android/view/View.html) |||||
|   | ↳ | [android.widget.TextView](https://developer.android.com/reference/android/widget/TextView.html) ||||
|   |   | ↳ | [android.widget.Button](https://developer.android.com/reference/android/widget/Button.html) |||
|   |   |   | ↳ | [android.widget.CompoundButton](https://developer.android.com/reference/android/widget/CompoundButton.html) ||
|   |   |   |   | ↳ | [androidx.appcompat.widget.SwitchCompat](https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat) |

*** ** * ** ***

SwitchCompat is a complete backport of the core `https://developer.android.com/reference/android/widget/Switch.html` widget that brings the visuals and functionality of the toggle widget to older versions of the Android platform. Unlike other widgets in this package, SwitchCompat is not automatically used in layouts that include the `<Switch>` element. Instead, you need to explicitly use `<androidx.appcompat.widget.SwitchCompat>` and the matching attributes in your layouts.

The thumb can be tinted with `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintList(android.content.res.ColorStateList)` and `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintMode(android.graphics.PorterDuff.Mode)` APIs as well as with the matching XML attributes. The track can be tinted with `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintList(android.content.res.ColorStateList)` and `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintMode(android.graphics.PorterDuff.Mode)` APIs as well as with the matching XML attributes.

Supported attributes include:

- `https://developer.android.com/reference/android/R.attr.html#textOn`
- `https://developer.android.com/reference/android/R.attr.html#textOff`
- `https://developer.android.com/reference/android/R.attr.html#switchMinWidth`
- `https://developer.android.com/reference/android/R.attr.html#switchPadding`
- `https://developer.android.com/reference/android/R.attr.html#switchTextAppearance`
- `https://developer.android.com/reference/android/R.attr.html#thumb`
- `https://developer.android.com/reference/android/R.attr.html#thumbTextPadding`
- `https://developer.android.com/reference/android/R.attr.html#track`
- `https://developer.android.com/reference/android/R.attr.html#thumbTint`
- `https://developer.android.com/reference/android/R.attr.html#thumbTintMode`
- `https://developer.android.com/reference/android/R.attr.html#trackTint`
- `https://developer.android.com/reference/android/R.attr.html#trackTintMode`

For more information, see the [Toggle Buttons](https://developer.android.com/guide/topics/ui/controls/togglebutton) guide.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#SwitchCompat(android.content.Context)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context)` Construct a new Switch with default styling. |
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#SwitchCompat(android.content.Context,android.util.AttributeSet)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html attrs)` Construct a new Switch with default styling, overriding specific style attributes as requested. |
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#SwitchCompat(android.content.Context,android.util.AttributeSet,int)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html attrs, int defStyleAttr )` Construct a new Switch with a default style determined by the given theme attribute, overriding specific style attributes as requested. |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#draw(android.graphics.Canvas)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/graphics/Canvas.html c)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#drawableHotspotChanged(float,float)(float x, float y)` |
| `int` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getCompoundPaddingLeft()()` |
| `int` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getCompoundPaddingRight()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/ActionMode.Callback.html` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getCustomSelectionActionModeCallback()()` |
| `boolean` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:showText") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getShowText()()` Indicates whether the on/off text should be displayed. |
| `boolean` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:splitTrack") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getSplitTrack()()` Returns whether the track should be split by the thumb. |
| `int` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:switchMinWidth") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getSwitchMinWidth()()` Get the minimum width of the switch in pixels. |
| `int` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:switchPadding") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getSwitchPadding()()` Get the amount of horizontal padding between the switch and the associated text. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "android:textOff") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTextOff()()` Returns the text displayed when the button is not in the checked state. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "android:textOn") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTextOn()()` Returns the text displayed when the button is in the checked state. |
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "android:thumb") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbDrawable()()` Get the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track. |
| `int` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:thumbTextPadding") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbTextPadding()()` Get the horizontal padding around the text drawn on the switch itself. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:thumbTint") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbTintList()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:thumbTintMode") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbTintMode()()` |
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:track") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTrackDrawable()()` Get the drawable used for the track that the switch slides within. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:trackTint") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTrackTintList()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | `@https://developer.android.com/reference/androidx/resourceinspection/annotation/Attribute(value = "androidx.appcompat:trackTintMode") https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTrackTintMode()()` |
| `boolean` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#isEmojiCompatEnabled()()` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#jumpDrawablesToCurrentState()()` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo)(https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html info)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onMeasure(int,int)(int widthMeasureSpec, int heightMeasureSpec)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` |
| `boolean` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html ev)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setAllCaps(boolean)(boolean allCaps)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setChecked(boolean)(boolean checked)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setCustomSelectionActionModeCallback(android.view.ActionMode.Callback)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/ActionMode.Callback.html actionModeCallback )` See `https://developer.android.com/reference/androidx/core/widget/TextViewCompat#setCustomSelectionActionModeCallback(android.widget.TextView,android.view.ActionMode.Callback)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setEmojiCompatEnabled(boolean)(boolean enabled)` Configure emoji fallback behavior using EmojiCompat. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setFilters(android.text.InputFilter[])(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html InputFilter[] filters)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setShowText(boolean)(boolean showText)` Sets whether the on/off text should be displayed. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSplitTrack(boolean)(boolean splitTrack)` Specifies whether the track should be split by the thumb. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchMinWidth(int)(int pixels)` Set the minimum width of the switch in pixels. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchPadding(int)(int pixels)` Set the amount of horizontal padding between the switch and the associated text. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchTextAppearance(android.content.Context,int)(https://developer.android.com/reference/android/content/Context.html context, int resid)` Sets the switch text color, size, style, hint color, and highlight color from the specified TextAppearance resource. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchTypeface(android.graphics.Typeface)(https://developer.android.com/reference/android/graphics/Typeface.html typeface)` Sets the typeface in which the text should be displayed on the switch. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchTypeface(android.graphics.Typeface,int)(https://developer.android.com/reference/android/graphics/Typeface.html tf, int style)` Sets the typeface and style in which the text should be displayed on the switch, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTextOff(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html textOff)` Sets the text displayed when the button is not in the checked state. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTextOn(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html textOn)` Sets the text displayed when the button is in the checked state. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html thumb)` Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbResource(int)(int resId)` Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTextPadding(int)(int pixels)` Set the horizontal padding around the text drawn on the switch itself. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintList(android.content.res.ColorStateList)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html tint)` Applies a tint to the thumb drawable. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintMode(android.graphics.PorterDuff.Mode)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode)` Specifies the blending mode used to apply the tint specified by `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintList(android.content.res.ColorStateList)`} to the thumb drawable. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html track)` Set the drawable used for the track that the switch slides within. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackResource(int)(int resId)` Set the drawable used for the track that the switch slides within. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintList(android.content.res.ColorStateList)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html tint)` Applies a tint to the track drawable. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintMode(android.graphics.PorterDuff.Mode)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode)` Specifies the blending mode used to apply the tint specified by `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintList(android.content.res.ColorStateList)` to the track drawable. |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#toggle()()` |

| ### Protected methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#drawableStateChanged()()` |
| `final @https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0.0, to = 1.0) float` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbPosition()()` |
| `int[]` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onCreateDrawableState(int)(int extraSpace)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas.html canvas)` |
| `void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#onLayout(boolean,int,int,int,int)(boolean changed, int left, int top, int right, int bottom)` |
| `final void` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setEnforceSwitchWidth(boolean)(boolean enforceSwitchWidth)` Sets `true` to enforce the switch width being at least twice of the thumb width. |
| `boolean` | `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#verifyDrawable(android.graphics.drawable.Drawable)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/graphics/drawable/Drawable.html who)` |

| ### Inherited Constants |
|---|
| From [android.widget.TextView](https://developer.android.com/reference/android/widget/TextView.html) |---|---| | `static final int` | `https://developer.android.com/reference/android/widget/TextView.html#AUTO_SIZE_TEXT_TYPE_NONE = 0` | | `static final int` | `https://developer.android.com/reference/android/widget/TextView.html#AUTO_SIZE_TEXT_TYPE_UNIFORM = 1` | | `static final int` | `https://developer.android.com/reference/android/widget/TextView.html#FOCUSED_SEARCH_RESULT_INDEX_NONE = -1` | |
| From [android.view.View](https://developer.android.com/reference/android/view/View.html) |---|---| | `static final int` | `https://developer.android.com/reference/android/view/View.html#ACCESSIBILITY_DATA_SENSITIVE_AUTO = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#ACCESSIBILITY_DATA_SENSITIVE_NO = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#ACCESSIBILITY_DATA_SENSITIVE_YES = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#ACCESSIBILITY_LIVE_REGION_ASSERTIVE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#ACCESSIBILITY_LIVE_REGION_NONE = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#ACCESSIBILITY_LIVE_REGION_POLITE = 1` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#ALPHA` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS = 1` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE = "creditCardExpirationDate"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY = "creditCardExpirationDay"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH = "creditCardExpirationMonth"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR = "creditCardExpirationYear"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_NUMBER = "creditCardNumber"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE = "creditCardSecurityCode"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_EMAIL_ADDRESS = "emailAddress"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_NAME = "name"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_PASSWORD = "password"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_PHONE = "phone"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_POSTAL_ADDRESS = "postalAddress"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_POSTAL_CODE = "postalCode"` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_USERNAME = "username"` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_TYPE_DATE = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_TYPE_LIST = 3` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_TYPE_NONE = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_TYPE_TEXT = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#AUTOFILL_TYPE_TOGGLE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#CONTENT_SENSITIVITY_AUTO = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#CONTENT_SENSITIVITY_NOT_SENSITIVE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#CONTENT_SENSITIVITY_SENSITIVE = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_ACCESSIBILITY_ACTION = 1024` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_GLOBAL = 256` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION = 64` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION = 128` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_GLOBAL_SAME_APPLICATION = 4096` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_GLOBAL_URI_READ = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_GLOBAL_URI_WRITE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START = 16384` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_OPAQUE = 512` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAG_FLAG_START_INTENT_SENDER_ON_UNHANDLED_DRAG = 8192` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAWING_CACHE_QUALITY_AUTO = 0` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAWING_CACHE_QUALITY_HIGH = 1048576` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#DRAWING_CACHE_QUALITY_LOW = 524288` **This field is deprecated.** | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#EMPTY_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_FOCUSED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#ENABLED_WINDOW_FOCUSED_STATE_SET` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FIND_VIEWS_WITH_CONTENT_DESCRIPTION = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FIND_VIEWS_WITH_TEXT = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUSABLE = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUSABLES_ALL = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUSABLES_TOUCH_MODE = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUSABLE_AUTO = 16` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#FOCUSED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#FOCUSED_WINDOW_FOCUSED_STATE_SET` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUS_BACKWARD = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUS_DOWN = 130` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUS_FORWARD = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUS_LEFT = 17` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUS_RIGHT = 66` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#FOCUS_UP = 33` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#GONE = 8` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#HAPTIC_FEEDBACK_ENABLED = 268435456` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_AUTO = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_NO = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_YES = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS = 8` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_CONTENT_CAPTURE_NO = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS = 8` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_CONTENT_CAPTURE_YES = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#INVISIBLE = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#KEEP_SCREEN_ON = 67108864` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_INHERIT = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_LOCALE = 3` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_LTR = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_RTL = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#MEASURED_HEIGHT_STATE_SHIFT = 16` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#MEASURED_SIZE_MASK = 16777215` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_MASK = -16777216` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_TOO_SMALL = 16777216` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#NOT_FOCUSABLE = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#NO_ID = -1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_ALWAYS = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_IF_CONTENT_SCROLLS = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_NEVER = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#POINTER_CAPTURE_MODE_ABSOLUTE = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#POINTER_CAPTURE_MODE_RELATIVE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#POINTER_CAPTURE_MODE_UNCAPTURED = 0` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_FOCUSED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#PRESSED_WINDOW_FOCUSED_STATE_SET` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS = 3` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_SCROLL_ONLY = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_TEXT_CURSOR = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#RECTANGLE_ON_SCREEN_REQUEST_SOURCE_UNDEFINED = 0` | | `static final float` | `https://developer.android.com/reference/android/view/View.html#REQUESTED_FRAME_RATE_CATEGORY_DEFAULT` | | `static final float` | `https://developer.android.com/reference/android/view/View.html#REQUESTED_FRAME_RATE_CATEGORY_HIGH = -4.0f` | | `static final float` | `https://developer.android.com/reference/android/view/View.html#REQUESTED_FRAME_RATE_CATEGORY_LOW = -2.0f` | | `static final float` | `https://developer.android.com/reference/android/view/View.html#REQUESTED_FRAME_RATE_CATEGORY_NORMAL = -3.0f` | | `static final float` | `https://developer.android.com/reference/android/view/View.html#REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE = -1.0f` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#ROTATION` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#ROTATION_X` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#ROTATION_Y` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#SCALE_X` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#SCALE_Y` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCREEN_STATE_OFF = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCREEN_STATE_ON = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBARS_INSIDE_INSET = 16777216` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBARS_INSIDE_OVERLAY = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBARS_OUTSIDE_INSET = 50331648` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBARS_OUTSIDE_OVERLAY = 33554432` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBAR_POSITION_DEFAULT = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBAR_POSITION_LEFT = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLLBAR_POSITION_RIGHT = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_AXIS_HORIZONTAL = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_AXIS_NONE = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_AXIS_VERTICAL = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_CAPTURE_HINT_AUTO = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_CAPTURE_HINT_EXCLUDE = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_CAPTURE_HINT_INCLUDE = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_INDICATOR_BOTTOM = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_INDICATOR_END = 32` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_INDICATOR_LEFT = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_INDICATOR_RIGHT = 8` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_INDICATOR_START = 16` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SCROLL_INDICATOR_TOP = 1` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#SELECTED_STATE_SET` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#SELECTED_WINDOW_FOCUSED_STATE_SET` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SOUND_EFFECTS_ENABLED = 134217728` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#STATUS_BAR_HIDDEN = 1` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#STATUS_BAR_VISIBLE = 0` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_FULLSCREEN = 4` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_IMMERSIVE = 2048` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LAYOUT_STABLE = 256` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR = 16` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LIGHT_STATUS_BAR = 8192` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LOW_PROFILE = 1` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_VISIBLE = 0` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#SYSTEM_UI_LAYOUT_FLAGS = 1536` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_CENTER = 4` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_GRAVITY = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_INHERIT = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_TEXT_END = 3` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_TEXT_START = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_VIEW_END = 6` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_ALIGNMENT_VIEW_START = 5` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_ANY_RTL = 2` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_FIRST_STRONG = 1` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_FIRST_STRONG_LTR = 6` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_FIRST_STRONG_RTL = 7` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_INHERIT = 0` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_LOCALE = 5` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_LTR = 3` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#TEXT_DIRECTION_RTL = 4` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#TRANSLATION_X` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#TRANSLATION_Y` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#TRANSLATION_Z` | | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#VIEW_LOG_TAG = "View"` | | `static final int` | `https://developer.android.com/reference/android/view/View.html#VISIBLE = 0` | | `static final int[]` | `https://developer.android.com/reference/android/view/View.html#WINDOW_FOCUSED_STATE_SET` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#X` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#Y` | | `static final https://developer.android.com/reference/android/util/Property.html<https://developer.android.com/reference/android/view/View.html, https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/android/view/View.html#Z` | |

| ### Inherited methods |
|---|
| From [android.widget.Button](https://developer.android.com/reference/android/widget/Button.html) |---|---| | `https://developer.android.com/reference/android/view/PointerIcon.html` | `https://developer.android.com/reference/android/widget/Button.html#onResolvePointerIcon(android.view.MotionEvent, int)(https://developer.android.com/reference/android/view/MotionEvent.html event, int pointerIndex)` | |
| From [android.widget.CompoundButton](https://developer.android.com/reference/android/widget/CompoundButton.html) |---|---| | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#autofill(android.view.autofill.AutofillValue)(https://developer.android.com/reference/android/view/autofill/AutofillValue.html value)` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getAccessibilityClassName()()` | | `int` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getAutofillType()()` | | `https://developer.android.com/reference/android/view/autofill/AutofillValue.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getAutofillValue()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getButtonDrawable()()` | | `https://developer.android.com/reference/android/graphics/BlendMode.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getButtonTintBlendMode()()` | | `https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getButtonTintList()()` | | `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#getButtonTintMode()()` | | `boolean` | `https://developer.android.com/reference/android/widget/CompoundButton.html#isChecked()()` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#onRestoreInstanceState(android.os.Parcelable)(https://developer.android.com/reference/android/os/Parcelable.html state)` | | `https://developer.android.com/reference/android/os/Parcelable.html` | `https://developer.android.com/reference/android/widget/CompoundButton.html#onSaveInstanceState()()` | | `boolean` | `https://developer.android.com/reference/android/widget/CompoundButton.html#performClick()()` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setButtonDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setButtonIcon(android.graphics.drawable.Icon)(https://developer.android.com/reference/android/graphics/drawable/Icon.html icon)` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setButtonTintBlendMode(android.graphics.BlendMode)(https://developer.android.com/reference/android/graphics/BlendMode.html tintMode)` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setButtonTintList(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html tint)` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setButtonTintMode(android.graphics.PorterDuff.Mode)(https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode)` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setOnCheckedChangeListener(android.widget.CompoundButton.OnCheckedChangeListener)( https://developer.android.com/reference/android/widget/CompoundButton.OnCheckedChangeListener.html listener )` | | `void` | `https://developer.android.com/reference/android/widget/CompoundButton.html#setStateDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html stateDescription)` | |
| From [android.widget.TextView](https://developer.android.com/reference/android/widget/TextView.html) |---|---| | `void` | `https://developer.android.com/reference/android/widget/TextView.html#addExtraDataToAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo, java.lang.String, android.os.Bundle)( https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html info, https://developer.android.com/reference/java/lang/String.html extraDataKey, https://developer.android.com/reference/android/os/Bundle.html arguments )` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher)(https://developer.android.com/reference/android/text/TextWatcher.html watcher)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#append(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html text)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#beginBatchEdit()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#bringPointIntoView(int)(int offset)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#cancelLongPress()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#clearComposingText()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#computeHorizontalScrollRange()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#computeScroll()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#computeVerticalScrollExtent()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#computeVerticalScrollRange()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#debug(int)(int depth)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#didTouchFocusSelect()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#endBatchEdit()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#extractText(android.view.inputmethod.ExtractedTextRequest, android.view.inputmethod.ExtractedText)(https://developer.android.com/reference/android/view/inputmethod/ExtractedTextRequest.html request, https://developer.android.com/reference/android/view/inputmethod/ExtractedText.html outText)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#findViewsWithText(java.util.ArrayList&lt;android.view.View&gt;, java.lang.CharSequence, int)( https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html> outViews, https://developer.android.com/reference/java/lang/CharSequence.html searched, int flags )` | | `final int` | `https://developer.android.com/reference/android/widget/TextView.html#getAutoLinkMask()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getAutoSizeMaxTextSize()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getAutoSizeMinTextSize()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getAutoSizeStepGranularity()()` | | `int[]` | `https://developer.android.com/reference/android/widget/TextView.html#getAutoSizeTextAvailableSizes()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getAutoSizeTextType()()` | | `String[]` | `https://developer.android.com/reference/android/widget/TextView.html#getAutofillHints()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getBaseline()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getBottomPaddingOffset()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getBreakStrategy()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundDrawablePadding()()` | | `https://developer.android.com/reference/android/graphics/BlendMode.html` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundDrawableTintBlendMode()()` | | `https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundDrawableTintList()()` | | `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundDrawableTintMode()()` | | `Drawable[]` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundDrawables()()` | | `Drawable[]` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundDrawablesRelative()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundPaddingBottom()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundPaddingEnd()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundPaddingStart()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getCompoundPaddingTop()()` | | `final int` | `https://developer.android.com/reference/android/widget/TextView.html#getCurrentHintTextColor()()` | | `final int` | `https://developer.android.com/reference/android/widget/TextView.html#getCurrentTextColor()()` | | `https://developer.android.com/reference/android/view/ActionMode.Callback.html` | `https://developer.android.com/reference/android/widget/TextView.html#getCustomInsertionActionModeCallback()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getDefaultEditable()()` | | `https://developer.android.com/reference/android/text/method/MovementMethod.html` | `https://developer.android.com/reference/android/widget/TextView.html#getDefaultMovementMethod()()` | | `https://developer.android.com/reference/android/text/Editable.html` | `https://developer.android.com/reference/android/widget/TextView.html#getEditableText()()` | | `https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html` | `https://developer.android.com/reference/android/widget/TextView.html#getEllipsize()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/widget/TextView.html#getError()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getExtendedPaddingBottom()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getExtendedPaddingTop()()` | | `InputFilter[]` | `https://developer.android.com/reference/android/widget/TextView.html#getFilters()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getFirstBaselineToTopHeight()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#getFocusedRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html r)` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getFocusedSearchResultHighlightColor()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getFocusedSearchResultIndex()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/widget/TextView.html#getFontFeatureSettings()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/widget/TextView.html#getFontVariationSettings()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getFreezesText()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getGravity()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getHighlightColor()()` | | `https://developer.android.com/reference/android/text/Highlights.html` | `https://developer.android.com/reference/android/widget/TextView.html#getHighlights()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/widget/TextView.html#getHint()()` | | `final https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/widget/TextView.html#getHintTextColors()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getHyphenationFrequency()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getImeActionId()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/widget/TextView.html#getImeActionLabel()()` | | `https://developer.android.com/reference/android/os/LocaleList.html` | `https://developer.android.com/reference/android/widget/TextView.html#getImeHintLocales()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getImeOptions()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getIncludeFontPadding()()` | | `https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/android/widget/TextView.html#getInputExtras(boolean)(boolean create)` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getInputType()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getJustificationMode()()` | | `final https://developer.android.com/reference/android/text/method/KeyListener.html` | `https://developer.android.com/reference/android/widget/TextView.html#getKeyListener()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLastBaselineToBottomHeight()()` | | `final https://developer.android.com/reference/android/text/Layout.html` | `https://developer.android.com/reference/android/widget/TextView.html#getLayout()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getLeftFadingEdgeStrength()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLeftPaddingOffset()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getLetterSpacing()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLineBounds(int, android.graphics.Rect)(int line, https://developer.android.com/reference/android/graphics/Rect.html bounds)` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLineBreakStyle()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLineBreakWordStyle()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLineCount()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getLineHeight()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getLineSpacingExtra()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getLineSpacingMultiplier()()` | | `final https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/widget/TextView.html#getLinkTextColors()()` | | `final boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getLinksClickable()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMarqueeRepeatLimit()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMaxEms()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMaxHeight()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMaxLines()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMaxWidth()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMinEms()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMinHeight()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMinLines()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getMinWidth()()` | | `https://developer.android.com/reference/android/graphics/Paint.FontMetrics.html` | `https://developer.android.com/reference/android/widget/TextView.html#getMinimumFontMetrics()()` | | `final https://developer.android.com/reference/android/text/method/MovementMethod.html` | `https://developer.android.com/reference/android/widget/TextView.html#getMovementMethod()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getOffsetForPosition(float, float)(float x, float y)` | | `https://developer.android.com/reference/android/text/TextPaint.html` | `https://developer.android.com/reference/android/widget/TextView.html#getPaint()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getPaintFlags()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/widget/TextView.html#getPrivateImeOptions()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getRightFadingEdgeStrength()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getRightPaddingOffset()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getSearchResultHighlightColor()()` | | `int[]` | `https://developer.android.com/reference/android/widget/TextView.html#getSearchResultHighlights()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getSelectionEnd()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getSelectionStart()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getShadowColor()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getShadowDx()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getShadowDy()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getShadowRadius()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getShiftDrawingOffsetForStartOverhang()()` | | `final boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getShowSoftInputOnFocus()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/widget/TextView.html#getText()()` | | `https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextClassifier()()` | | `final https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextColors()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextCursorDrawable()()` | | `https://developer.android.com/reference/android/text/TextDirectionHeuristic.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextDirectionHeuristic()()` | | `https://developer.android.com/reference/java/util/Locale.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextLocale()()` | | `https://developer.android.com/reference/android/os/LocaleList.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextLocales()()` | | `https://developer.android.com/reference/android/text/PrecomputedText.Params.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextMetricsParams()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getTextScaleX()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextSelectHandle()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextSelectHandleLeft()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTextSelectHandleRight()()` | | `float` | `https://developer.android.com/reference/android/widget/TextView.html#getTextSize()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTextSizeUnit()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTopPaddingOffset()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTotalPaddingBottom()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTotalPaddingEnd()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTotalPaddingLeft()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTotalPaddingRight()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTotalPaddingStart()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#getTotalPaddingTop()()` | | `final https://developer.android.com/reference/android/text/method/TransformationMethod.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTransformationMethod()()` | | `https://developer.android.com/reference/android/graphics/Typeface.html` | `https://developer.android.com/reference/android/widget/TextView.html#getTypeface()()` | | `URLSpan[]` | `https://developer.android.com/reference/android/widget/TextView.html#getUrls()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#getUseBoundsForWidth()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#hasOverlappingRendering()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#hasSelection()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#invalidateDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isAllCaps()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isAutoHandwritingEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isCursorVisible()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isElegantTextHeight()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isFallbackLineSpacing()()` | | `final boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isHorizontallyScrollable()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isInputMethodTarget()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isLocalePreferredLineHeightForMinimumUsed()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isPaddingOffsetRequired()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isSingleLine()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isSuggestionsEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#isTextSelectable()()` | | `int` | `https://developer.android.com/reference/android/widget/TextView.html#length()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#moveCursorToVisibleOffset()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onAttachedToWindow()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onBeginBatchEdit()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onCheckIsTextEditor()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onCommitCompletion(android.view.inputmethod.CompletionInfo)(https://developer.android.com/reference/android/view/inputmethod/CompletionInfo.html text)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onCommitCorrection(android.view.inputmethod.CorrectionInfo)(https://developer.android.com/reference/android/view/inputmethod/CorrectionInfo.html info)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration.html newConfig)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onCreateContextMenu(android.view.ContextMenu)(https://developer.android.com/reference/android/view/ContextMenu.html menu)` | | `https://developer.android.com/reference/android/view/inputmethod/InputConnection.html` | `https://developer.android.com/reference/android/widget/TextView.html#onCreateInputConnection(android.view.inputmethod.EditorInfo)(https://developer.android.com/reference/android/view/inputmethod/EditorInfo.html outAttrs)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onCreateViewTranslationRequest(int[], java.util.function.Consumer&lt;android.view.translation.ViewTranslationRequest&gt;)( int[] supportedFormats, https://developer.android.com/reference/java/util/function/Consumer.html<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest.html> requestsCollector )` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent.html event)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onEditorAction(int)(int actionCode)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onEndBatchEdit()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onFocusChanged(boolean, int, android.graphics.Rect)( boolean focused, int direction, https://developer.android.com/reference/android/graphics/Rect.html previouslyFocusedRect )` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onKeyDown(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onKeyMultiple(int, int, android.view.KeyEvent)(int keyCode, int repeatCount, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onKeyPreIme(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onKeyShortcut(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onKeyUp(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onPreDraw()()` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onPrivateIMECommand(java.lang.String, android.os.Bundle)(https://developer.android.com/reference/java/lang/String.html action, https://developer.android.com/reference/android/os/Bundle.html data)` | | `https://developer.android.com/reference/android/view/ContentInfo.html` | `https://developer.android.com/reference/android/widget/TextView.html#onReceiveContent(android.view.ContentInfo)(https://developer.android.com/reference/android/view/ContentInfo.html payload)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onRtlPropertiesChanged(int)(int layoutDirection)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onScreenStateChanged(int)(int screenState)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onScrollChanged(int, int, int, int)(int horiz, int vert, int oldHoriz, int oldVert)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onSelectionChanged(int, int)(int selStart, int selEnd)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onTextChanged(java.lang.CharSequence, int, int, int)( https://developer.android.com/reference/java/lang/CharSequence.html text, int start, int lengthBefore, int lengthAfter )` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onTextContextMenuItem(int)(int id)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#onTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onVisibilityAggregated(boolean)(boolean isVisible)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onVisibilityChanged(android.view.View, int)(https://developer.android.com/reference/android/view/View.html changedView, int visibility)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#onWindowFocusChanged(boolean)(boolean hasWindowFocus)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#performLongClick()()` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#removeTextChangedListener(android.text.TextWatcher)(https://developer.android.com/reference/android/text/TextWatcher.html watcher)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#sendAccessibilityEventUnchecked(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setAutoLinkMask(int)(int mask)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setAutoSizeTextTypeUniformWithConfiguration(int, int, int, int)( int autoSizeMinTextSize, int autoSizeMaxTextSize, int autoSizeStepGranularity, int unit )` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setAutoSizeTextTypeUniformWithPresetSizes(int[], int)(int[] presetSizes, int unit)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setAutoSizeTextTypeWithDefaults(int)(int autoSizeTextType)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setBreakStrategy(int)(int breakStrategy)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablePadding(int)(int pad)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawableTintBlendMode(android.graphics.BlendMode)(https://developer.android.com/reference/android/graphics/BlendMode.html blendMode)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawableTintList(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html tint)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawableTintMode(android.graphics.PorterDuff.Mode)(https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawables(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable)( https://developer.android.com/reference/android/graphics/drawable/Drawable.html left, https://developer.android.com/reference/android/graphics/drawable/Drawable.html top, https://developer.android.com/reference/android/graphics/drawable/Drawable.html right, https://developer.android.com/reference/android/graphics/drawable/Drawable.html bottom )` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesRelative(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable)( https://developer.android.com/reference/android/graphics/drawable/Drawable.html start, https://developer.android.com/reference/android/graphics/drawable/Drawable.html top, https://developer.android.com/reference/android/graphics/drawable/Drawable.html end, https://developer.android.com/reference/android/graphics/drawable/Drawable.html bottom )` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesRelativeWithIntrinsicBounds(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable)( https://developer.android.com/reference/android/graphics/drawable/Drawable.html start, https://developer.android.com/reference/android/graphics/drawable/Drawable.html top, https://developer.android.com/reference/android/graphics/drawable/Drawable.html end, https://developer.android.com/reference/android/graphics/drawable/Drawable.html bottom )` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable)( https://developer.android.com/reference/android/graphics/drawable/Drawable.html left, https://developer.android.com/reference/android/graphics/drawable/Drawable.html top, https://developer.android.com/reference/android/graphics/drawable/Drawable.html right, https://developer.android.com/reference/android/graphics/drawable/Drawable.html bottom )` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCursorVisible(boolean)(boolean visible)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setCustomInsertionActionModeCallback(android.view.ActionMode.Callback)( https://developer.android.com/reference/android/view/ActionMode.Callback.html actionModeCallback )` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setEditableFactory(android.text.Editable.Factory)(https://developer.android.com/reference/android/text/Editable.Factory.html factory)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setElegantTextHeight(boolean)(boolean elegant)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setEllipsize(android.text.TextUtils.TruncateAt)(https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html where)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setEms(int)(int ems)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setError(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html error)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setExtractedText(android.view.inputmethod.ExtractedText)(https://developer.android.com/reference/android/view/inputmethod/ExtractedText.html text)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setFallbackLineSpacing(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setFirstBaselineToTopHeight(int)(int firstBaselineToTopHeight)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setFocusedSearchResultHighlightColor(int)(int color)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setFocusedSearchResultIndex(int)(int index)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setFontFeatureSettings(java.lang.String)(https://developer.android.com/reference/java/lang/String.html fontFeatureSettings)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#setFontVariationSettings(java.lang.String)(https://developer.android.com/reference/java/lang/String.html fontVariationSettings)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#setFrame(int, int, int, int)(int l, int t, int r, int b)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setFreezesText(boolean)(boolean freezesText)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setGravity(int)(int gravity)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setHeight(int)(int pixels)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setHighlightColor(int)(int color)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setHighlights(android.text.Highlights)(https://developer.android.com/reference/android/text/Highlights.html highlights)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setHint(int)(int resid)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setHintTextColor(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html colors)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setHorizontallyScrolling(boolean)(boolean whether)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setHyphenationFrequency(int)(int hyphenationFrequency)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setImeActionLabel(java.lang.CharSequence, int)(https://developer.android.com/reference/java/lang/CharSequence.html label, int actionId)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setImeHintLocales(android.os.LocaleList)(https://developer.android.com/reference/android/os/LocaleList.html hintLocales)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setImeOptions(int)(int imeOptions)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setIncludeFontPadding(boolean)(boolean includepad)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setInputExtras(int)(int xmlResId)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setInputType(int)(int type)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setJustificationMode(int)(int justificationMode)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setKeyListener(android.text.method.KeyListener)(https://developer.android.com/reference/android/text/method/KeyListener.html input)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLastBaselineToBottomHeight(int)(int lastBaselineToBottomHeight)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLetterSpacing(float)(float letterSpacing)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLineBreakStyle(int)(int lineBreakStyle)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLineBreakWordStyle(int)(int lineBreakWordStyle)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLineHeight(int)(int lineHeight)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLineSpacing(float, float)(float add, float mult)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLines(int)(int lines)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setLinkTextColor(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html colors)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setLinksClickable(boolean)(boolean whether)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setLocalePreferredLineHeightForMinimumUsed(boolean)(boolean flag)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMarqueeRepeatLimit(int)(int marqueeLimit)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMaxEms(int)(int maxEms)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMaxHeight(int)(int maxPixels)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMaxLines(int)(int maxLines)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMaxWidth(int)(int maxPixels)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMinEms(int)(int minEms)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMinHeight(int)(int minPixels)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMinLines(int)(int minLines)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMinWidth(int)(int minPixels)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setMinimumFontMetrics(android.graphics.Paint.FontMetrics)(https://developer.android.com/reference/android/graphics/Paint.FontMetrics.html minimumFontMetrics)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setMovementMethod(android.text.method.MovementMethod)(https://developer.android.com/reference/android/text/method/MovementMethod.html movement)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setOnEditorActionListener(android.widget.TextView.OnEditorActionListener)(https://developer.android.com/reference/android/widget/TextView.OnEditorActionListener.html l)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setPadding(int, int, int, int)(int left, int top, int right, int bottom)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setPaddingRelative(int, int, int, int)(int start, int top, int end, int bottom)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setPaintFlags(int)(int flags)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setPrivateImeOptions(java.lang.String)(https://developer.android.com/reference/java/lang/String.html type)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setRawInputType(int)(int type)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setScroller(android.widget.Scroller)(https://developer.android.com/reference/android/widget/Scroller.html s)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setSearchResultHighlightColor(int)(int color)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setSearchResultHighlights(int...)(int[] ranges)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setSelectAllOnFocus(boolean)(boolean selectAllOnFocus)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setSelected(boolean)(boolean selected)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setShadowLayer(float, float, float, int)(float radius, float dx, float dy, int color)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setShiftDrawingOffsetForStartOverhang(boolean)( boolean shiftDrawingOffsetForStartOverhang )` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setShowSoftInputOnFocus(boolean)(boolean show)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setSingleLine()()` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setSpannableFactory(android.text.Spannable.Factory)(https://developer.android.com/reference/android/text/Spannable.Factory.html factory)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setText(char[], int, int)(char[] text, int start, int len)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextAppearance(android.content.Context, int)(https://developer.android.com/reference/android/content/Context.html context, int resId)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextClassifier(android.view.textclassifier.TextClassifier)(https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html textClassifier)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextColor(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html colors)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextCursorDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html textCursorDrawable)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextIsSelectable(boolean)(boolean selectable)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextKeepState(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html text)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextLocale(java.util.Locale)(https://developer.android.com/reference/java/util/Locale.html locale)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextLocales(android.os.LocaleList)(https://developer.android.com/reference/android/os/LocaleList.html locales)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextMetricsParams(android.text.PrecomputedText.Params)(https://developer.android.com/reference/android/text/PrecomputedText.Params.html params)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextScaleX(float)(float size)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextSelectHandle(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html textSelectHandle)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextSelectHandleLeft(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html textSelectHandleLeft)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextSelectHandleRight(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html textSelectHandleRight)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTextSize(float)(float size)` | | `final void` | `https://developer.android.com/reference/android/widget/TextView.html#setTransformationMethod(android.text.method.TransformationMethod)(https://developer.android.com/reference/android/text/method/TransformationMethod.html method)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setTypeface(android.graphics.Typeface)(https://developer.android.com/reference/android/graphics/Typeface.html tf)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setUseBoundsForWidth(boolean)(boolean useBoundsForWidth)` | | `void` | `https://developer.android.com/reference/android/widget/TextView.html#setWidth(int)(int pixels)` | | `boolean` | `https://developer.android.com/reference/android/widget/TextView.html#showContextMenu()()` | |
| From [android.view.View](https://developer.android.com/reference/android/view/View.html) |---|---| | `void` | `https://developer.android.com/reference/android/view/View.html#addChildrenForAccessibility(java.util.ArrayList&lt;android.view.View&gt;)(https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html> outChildren)` | | `void` | `https://developer.android.com/reference/android/view/View.html#addFocusables(java.util.ArrayList&lt;android.view.View&gt;, int)(https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html> views, int direction)` | | `void` | `https://developer.android.com/reference/android/view/View.html#addKeyboardNavigationClusters(java.util.Collection&lt;android.view.View&gt;, int)(https://developer.android.com/reference/java/util/Collection.html<https://developer.android.com/reference/android/view/View.html> views, int direction)` | | `void` | `https://developer.android.com/reference/android/view/View.html#addOnAttachStateChangeListener(android.view.View.OnAttachStateChangeListener)( https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#addOnLayoutChangeListener(android.view.View.OnLayoutChangeListener)(https://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html listener)` | | `void` | `https://developer.android.com/reference/android/view/View.html#addOnUnhandledKeyEventListener(android.view.View.OnUnhandledKeyEventListener)( https://developer.android.com/reference/android/view/View.OnUnhandledKeyEventListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#addTouchables(java.util.ArrayList&lt;android.view.View&gt;)(https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html> views)` | | `https://developer.android.com/reference/android/view/ViewPropertyAnimator.html` | `https://developer.android.com/reference/android/view/View.html#animate()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#announceForAccessibility(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html text)` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/View.html#awakenScrollBars()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#bringToFront()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#buildDrawingCache()()` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#buildLayer()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#callOnClick()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#canResolveLayoutDirection()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#canResolveTextAlignment()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#canResolveTextDirection()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)(int direction)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#canScrollVertically(int)(int direction)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#cancelDragAndDrop()()` | | `final void` | `https://developer.android.com/reference/android/view/View.html#cancelPendingInputEvents()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#checkInputConnectionProxy(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` | | `void` | `https://developer.android.com/reference/android/view/View.html#clearAnimation()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#clearFocus()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#clearPendingCredentialRequest()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#clearViewTranslationCallback()()` | | `static int` | `https://developer.android.com/reference/android/view/View.html#combineMeasuredStates(int, int)(int curState, int newState)` | | `int` | `https://developer.android.com/reference/android/view/View.html#computeHorizontalScrollExtent()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#computeHorizontalScrollOffset()()` | | `https://developer.android.com/reference/android/view/WindowInsets.html` | `https://developer.android.com/reference/android/view/View.html#computeSystemWindowInsets(android.view.WindowInsets, android.graphics.Rect)(https://developer.android.com/reference/android/view/WindowInsets.html in, https://developer.android.com/reference/android/graphics/Rect.html outLocalInsets)` | | `int` | `https://developer.android.com/reference/android/view/View.html#computeVerticalScrollOffset()()` | | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html` | `https://developer.android.com/reference/android/view/View.html#createAccessibilityNodeInfo()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#createContextMenu(android.view.ContextMenu)(https://developer.android.com/reference/android/view/ContextMenu.html menu)` | | `void` | `https://developer.android.com/reference/android/view/View.html#destroyDrawingCache()()` **This method is deprecated.** | | `https://developer.android.com/reference/android/view/WindowInsets.html` | `https://developer.android.com/reference/android/view/View.html#dispatchApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets.html insets)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchCapturedPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchConfigurationChanged(android.content.res.Configuration)(https://developer.android.com/reference/android/content/res/Configuration.html newConfig)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchCreateViewTranslationRequest(java.util.Map&lt;android.view.autofill.AutofillId,long[]&gt;, int[], android.view.translation.TranslationCapability, java.util.List&lt;android.view.translation.ViewTranslationRequest&gt;)( https://developer.android.com/reference/java/util/Map.html<https://developer.android.com/reference/android/view/autofill/AutofillId.html, long[]> viewIds, int[] supportedFormats, https://developer.android.com/reference/android/view/translation/TranslationCapability.html capability, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest.html> requests )` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchDisplayHint(int)(int hint)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas.html canvas)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchDrawableHotspotChanged(float, float)(float x, float y)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchFinishTemporaryDetach()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchGenericFocusedEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchGenericPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchKeyEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchKeyEventPreIme(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchKeyShortcutEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchNestedFling(float, float, boolean)(float velocityX, float velocityY, boolean consumed)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchNestedPreFling(float, float)(float velocityX, float velocityY)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchNestedPrePerformAccessibilityAction(int, android.os.Bundle)( int action, https://developer.android.com/reference/android/os/Bundle.html arguments )` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchNestedPreScroll(int, int, int[], int[])( int dx, int dy, int[] consumed, int[] offsetInWindow )` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchNestedScroll(int, int, int, int, int[])( int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow )` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchPointerCaptureChanged(boolean)(boolean hasCapture)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchProvideAutofillStructure(android.view.ViewStructure, int)(https://developer.android.com/reference/android/view/ViewStructure.html structure, int flags)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchProvideStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure.html structure)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchRestoreInstanceState(android.util.SparseArray&lt;android.os.Parcelable&gt;)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/os/Parcelable.html> container)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchSaveInstanceState(android.util.SparseArray&lt;android.os.Parcelable&gt;)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/os/Parcelable.html> container)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchScrollCaptureSearch(android.graphics.Rect, android.graphics.Point, java.util.function.Consumer&lt;android.view.ScrollCaptureTarget&gt;)( https://developer.android.com/reference/android/graphics/Rect.html localVisibleRect, https://developer.android.com/reference/android/graphics/Point.html windowOffset, https://developer.android.com/reference/java/util/function/Consumer.html<https://developer.android.com/reference/android/view/ScrollCaptureTarget.html> targets )` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchSetActivated(boolean)(boolean activated)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchSetPressed(boolean)(boolean pressed)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchSetSelected(boolean)(boolean selected)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchStartTemporaryDetach()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchSystemUiVisibilityChanged(int)(int visibility)` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#dispatchUnhandledMove(android.view.View, int)(https://developer.android.com/reference/android/view/View.html focused, int direction)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchVisibilityChanged(android.view.View, int)(https://developer.android.com/reference/android/view/View.html changedView, int visibility)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowFocusChanged(boolean)(boolean hasFocus)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowInsetsAnimationEnd(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation.html animation)` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowInsetsAnimationPrepare(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation.html animation)` | | `https://developer.android.com/reference/android/view/WindowInsets.html` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowInsetsAnimationProgress(android.view.WindowInsets, java.util.List&lt;android.view.WindowInsetsAnimation&gt;)( https://developer.android.com/reference/android/view/WindowInsets.html insets, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/view/WindowInsetsAnimation.html> runningAnimations )` | | `https://developer.android.com/reference/android/view/WindowInsetsAnimation.Bounds.html` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowInsetsAnimationStart(android.view.WindowInsetsAnimation, android.view.WindowInsetsAnimation.Bounds)( https://developer.android.com/reference/android/view/WindowInsetsAnimation.html animation, https://developer.android.com/reference/android/view/WindowInsetsAnimation.Bounds.html bounds )` | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowSystemUiVisiblityChanged(int)(int visible)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#dispatchWindowVisibilityChanged(int)(int visibility)` | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/View.html#findFocus()()` | | `final https://developer.android.com/reference/android/window/OnBackInvokedDispatcher.html` | `https://developer.android.com/reference/android/view/View.html#findOnBackInvokedDispatcher()()` | | `final T` | `<T extends https://developer.android.com/reference/android/view/View.html> https://developer.android.com/reference/android/view/View.html#findViewById(int)(int id)` | | `final T` | `<T extends https://developer.android.com/reference/android/view/View.html> https://developer.android.com/reference/android/view/View.html#findViewWithTag(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html tag)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#fitSystemWindows(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html insets)` **This method is deprecated.** | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/View.html#focusSearch(int)(int direction)` | | `void` | `https://developer.android.com/reference/android/view/View.html#forceHasOverlappingRendering(boolean)(boolean hasOverlappingRendering)` | | `void` | `https://developer.android.com/reference/android/view/View.html#forceLayout()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#gatherTransparentRegion(android.graphics.Region)(https://developer.android.com/reference/android/graphics/Region.html region)` | | `void` | `https://developer.android.com/reference/android/view/View.html#generateDisplayHash(java.lang.String, android.graphics.Rect, java.util.concurrent.Executor, android.view.displayhash.DisplayHashResultCallback)( https://developer.android.com/reference/java/lang/String.html hashAlgorithm, https://developer.android.com/reference/android/graphics/Rect.html bounds, https://developer.android.com/reference/java/util/concurrent/Executor.html executor, https://developer.android.com/reference/android/view/displayhash/DisplayHashResultCallback.html callback )` | | `static int` | `https://developer.android.com/reference/android/view/View.html#generateViewId()()` | | `https://developer.android.com/reference/android/view/View.AccessibilityDelegate.html` | `https://developer.android.com/reference/android/view/View.html#getAccessibilityDelegate()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getAccessibilityLiveRegion()()` | | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider.html` | `https://developer.android.com/reference/android/view/View.html#getAccessibilityNodeProvider()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/view/View.html#getAccessibilityPaneTitle()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getAccessibilityTraversalAfter()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getAccessibilityTraversalBefore()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#getAllowedHandwritingDelegatePackageName()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#getAllowedHandwritingDelegatorPackageName()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getAlpha()()` | | `https://developer.android.com/reference/android/view/animation/Animation.html` | `https://developer.android.com/reference/android/view/View.html#getAnimation()()` | | `https://developer.android.com/reference/android/graphics/Matrix.html` | `https://developer.android.com/reference/android/view/View.html#getAnimationMatrix()()` | | `https://developer.android.com/reference/android/os/IBinder.html` | `https://developer.android.com/reference/android/view/View.html#getApplicationWindowToken()()` | | `int[]` | `https://developer.android.com/reference/android/view/View.html#getAttributeResolutionStack(int)(int attribute)` | | `https://developer.android.com/reference/java/util/Map.html<https://developer.android.com/reference/java/lang/Integer.html, https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/android/view/View.html#getAttributeSourceResourceMap()()` | | `final https://developer.android.com/reference/android/view/autofill/AutofillId.html` | `https://developer.android.com/reference/android/view/View.html#getAutofillId()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/view/View.html#getBackground()()` | | `https://developer.android.com/reference/android/graphics/BlendMode.html` | `https://developer.android.com/reference/android/view/View.html#getBackgroundTintBlendMode()()` | | `https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/view/View.html#getBackgroundTintList()()` | | `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | `https://developer.android.com/reference/android/view/View.html#getBackgroundTintMode()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getBottom()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getBottomFadingEdgeStrength()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getCameraDistance()()` | | `https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/view/View.html#getClipBounds()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#getClipBounds(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html outRect)` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#getClipToOutline()()` | | `final https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession.html` | `https://developer.android.com/reference/android/view/View.html#getContentCaptureSession()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/view/View.html#getContentDescription()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getContentSensitivity()()` | | `final https://developer.android.com/reference/android/content/Context.html` | `https://developer.android.com/reference/android/view/View.html#getContext()()` | | `https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html` | `https://developer.android.com/reference/android/view/View.html#getContextMenuInfo()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#getDefaultFocusHighlightEnabled()()` | | `static int` | `https://developer.android.com/reference/android/view/View.html#getDefaultSize(int, int)(int size, int measureSpec)` | | `https://developer.android.com/reference/android/view/Display.html` | `https://developer.android.com/reference/android/view/View.html#getDisplay()()` | | `final int[]` | `https://developer.android.com/reference/android/view/View.html#getDrawableState()()` | | `https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/android/view/View.html#getDrawingCache()()` **This method is deprecated.** | | `int` | `https://developer.android.com/reference/android/view/View.html#getDrawingCacheBackgroundColor()()` **This method is deprecated.** | | `int` | `https://developer.android.com/reference/android/view/View.html#getDrawingCacheQuality()()` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#getDrawingRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html outRect)` | | `long` | `https://developer.android.com/reference/android/view/View.html#getDrawingTime()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getElevation()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getExplicitStyle()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#getFilterTouchesWhenObscured()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#getFitsSystemWindows()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getFocusable()()` | | `https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html>` | `https://developer.android.com/reference/android/view/View.html#getFocusables(int)(int direction)` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/view/View.html#getForeground()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getForegroundGravity()()` | | `https://developer.android.com/reference/android/graphics/BlendMode.html` | `https://developer.android.com/reference/android/view/View.html#getForegroundTintBlendMode()()` | | `https://developer.android.com/reference/android/content/res/ColorStateList.html` | `https://developer.android.com/reference/android/view/View.html#getForegroundTintList()()` | | `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | `https://developer.android.com/reference/android/view/View.html#getForegroundTintMode()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getFrameContentVelocity()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#getGlobalVisibleRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html r)` | | `https://developer.android.com/reference/android/os/Handler.html` | `https://developer.android.com/reference/android/view/View.html#getHandler()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getHandwritingBoundsOffsetBottom()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getHandwritingBoundsOffsetLeft()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getHandwritingBoundsOffsetRight()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getHandwritingBoundsOffsetTop()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getHandwritingDelegateFlags()()` | | `https://developer.android.com/reference/java/lang/Runnable.html` | `https://developer.android.com/reference/android/view/View.html#getHandwritingDelegatorCallback()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#getHasOverlappingRendering()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getHeight()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#getHitRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html outRect)` | | `int` | `https://developer.android.com/reference/android/view/View.html#getHorizontalFadingEdgeLength()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getHorizontalScrollbarHeight()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/view/View.html#getHorizontalScrollbarThumbDrawable()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/view/View.html#getHorizontalScrollbarTrackDrawable()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getImportantForAccessibility()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getImportantForAutofill()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getImportantForContentCapture()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#getKeepScreenOn()()` | | `https://developer.android.com/reference/android/view/KeyEvent.DispatcherState.html` | `https://developer.android.com/reference/android/view/View.html#getKeyDispatcherState()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getLabelFor()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getLayerType()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getLayoutDirection()()` | | `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html` | `https://developer.android.com/reference/android/view/View.html#getLayoutParams()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getLeft()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#getLocalVisibleRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html r)` | | `void` | `https://developer.android.com/reference/android/view/View.html#getLocationInSurface(int[])(int[] location)` | | `void` | `https://developer.android.com/reference/android/view/View.html#getLocationInWindow(int[])(int[] outLocation)` | | `void` | `https://developer.android.com/reference/android/view/View.html#getLocationOnScreen(int[])(int[] outLocation)` | | `https://developer.android.com/reference/android/graphics/Matrix.html` | `https://developer.android.com/reference/android/view/View.html#getMatrix()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getMeasuredHeight()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getMeasuredHeightAndState()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getMeasuredState()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getMeasuredWidth()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getMeasuredWidthAndState()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getMinimumHeight()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getMinimumWidth()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getNextClusterForwardId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getNextFocusDownId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getNextFocusForwardId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getNextFocusLeftId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getNextFocusRightId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getNextFocusUpId()()` | | `https://developer.android.com/reference/android/view/View.OnFocusChangeListener.html` | `https://developer.android.com/reference/android/view/View.html#getOnFocusChangeListener()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getOutlineAmbientShadowColor()()` | | `https://developer.android.com/reference/android/view/ViewOutlineProvider.html` | `https://developer.android.com/reference/android/view/View.html#getOutlineProvider()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getOutlineSpotShadowColor()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getOverScrollMode()()` | | `https://developer.android.com/reference/android/view/ViewOverlay.html` | `https://developer.android.com/reference/android/view/View.html#getOverlay()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getPaddingBottom()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getPaddingEnd()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getPaddingLeft()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getPaddingRight()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getPaddingStart()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getPaddingTop()()` | | `final https://developer.android.com/reference/android/view/ViewParent.html` | `https://developer.android.com/reference/android/view/View.html#getParent()()` | | `https://developer.android.com/reference/android/view/ViewParent.html` | `https://developer.android.com/reference/android/view/View.html#getParentForAccessibility()()` | | `final https://developer.android.com/reference/android/os/OutcomeReceiver.html<https://developer.android.com/reference/android/credentials/GetCredentialResponse.html, https://developer.android.com/reference/android/credentials/GetCredentialException.html>` | `https://developer.android.com/reference/android/view/View.html#getPendingCredentialCallback()()` | | `final https://developer.android.com/reference/android/credentials/GetCredentialRequest.html` | `https://developer.android.com/reference/android/view/View.html#getPendingCredentialRequest()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getPivotX()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getPivotY()()` | | `https://developer.android.com/reference/android/view/PointerIcon.html` | `https://developer.android.com/reference/android/view/View.html#getPointerIcon()()` | | `final https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/graphics/Rect.html>` | `https://developer.android.com/reference/android/view/View.html#getPreferKeepClearRects()()` | | `String[]` | `https://developer.android.com/reference/android/view/View.html#getReceiveContentMimeTypes()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getRequestedFrameRate()()` | | `https://developer.android.com/reference/android/content/res/Resources.html` | `https://developer.android.com/reference/android/view/View.html#getResources()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#getRevealOnFocusHint()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getRight()()` | | `https://developer.android.com/reference/android/view/AttachedSurfaceControl.html` | `https://developer.android.com/reference/android/view/View.html#getRootSurfaceControl()()` | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/View.html#getRootView()()` | | `https://developer.android.com/reference/android/view/WindowInsets.html` | `https://developer.android.com/reference/android/view/View.html#getRootWindowInsets()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getRotation()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getRotationX()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getRotationY()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getScaleX()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getScaleY()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getScrollBarDefaultDelayBeforeFade()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getScrollBarFadeDuration()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getScrollBarSize()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getScrollBarStyle()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getScrollCaptureHint()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getScrollIndicators()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getScrollX()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getScrollY()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getSolidColor()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getSourceLayoutResId()()` | | `final https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/view/View.html#getStateDescription()()` | | `https://developer.android.com/reference/android/animation/StateListAnimator.html` | `https://developer.android.com/reference/android/view/View.html#getStateListAnimator()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getSuggestedMinimumHeight()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getSuggestedMinimumWidth()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/view/View.html#getSupplementalDescription()()` | | `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/graphics/Rect.html>` | `https://developer.android.com/reference/android/view/View.html#getSystemGestureExclusionRects()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getSystemUiVisibility()()` **This method is deprecated.** | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/android/view/View.html#getTag()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getTextAlignment()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getTextDirection()()` | | `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/android/view/View.html#getTooltipText()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getTop()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getTopFadingEdgeStrength()()` | | `https://developer.android.com/reference/android/view/TouchDelegate.html` | `https://developer.android.com/reference/android/view/View.html#getTouchDelegate()()` | | `https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html>` | `https://developer.android.com/reference/android/view/View.html#getTouchables()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getTransitionAlpha()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#getTransitionName()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getTranslationX()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getTranslationY()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getTranslationZ()()` | | `long` | `https://developer.android.com/reference/android/view/View.html#getUniqueDrawingId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getVerticalFadingEdgeLength()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getVerticalScrollbarPosition()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/view/View.html#getVerticalScrollbarThumbDrawable()()` | | `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `https://developer.android.com/reference/android/view/View.html#getVerticalScrollbarTrackDrawable()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getVerticalScrollbarWidth()()` | | `https://developer.android.com/reference/android/view/translation/ViewTranslationResponse.html` | `https://developer.android.com/reference/android/view/View.html#getViewTranslationResponse()()` | | `https://developer.android.com/reference/android/view/ViewTreeObserver.html` | `https://developer.android.com/reference/android/view/View.html#getViewTreeObserver()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getVisibility()()` | | `final int` | `https://developer.android.com/reference/android/view/View.html#getWidth()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getWindowAttachCount()()` | | `https://developer.android.com/reference/android/view/WindowId.html` | `https://developer.android.com/reference/android/view/View.html#getWindowId()()` | | `https://developer.android.com/reference/android/view/WindowInsetsController.html` | `https://developer.android.com/reference/android/view/View.html#getWindowInsetsController()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getWindowSystemUiVisibility()()` **This method is deprecated.** | | `https://developer.android.com/reference/android/os/IBinder.html` | `https://developer.android.com/reference/android/view/View.html#getWindowToken()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getWindowVisibility()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#getWindowVisibleDisplayFrame(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html outRect)` | | `float` | `https://developer.android.com/reference/android/view/View.html#getX()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getY()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getZ()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasExplicitFocusable()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasFocus()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasFocusable()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasNestedScrollingParent()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasOnClickListeners()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasOnLongClickListeners()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasPointerCapture()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasTransientState()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasWindowFocus()()` | | `static https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/View.html#inflate(android.content.Context, int, android.view.ViewGroup)(https://developer.android.com/reference/android/content/Context.html context, int resource, https://developer.android.com/reference/android/view/ViewGroup.html root)` | | `void` | `https://developer.android.com/reference/android/view/View.html#invalidate()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#invalidateOutline()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isAccessibilityDataSensitive()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isAccessibilityFocused()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isAccessibilityHeading()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isActivated()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isAttachedToWindow()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isClickable()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isContentSensitive()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isContextClickable()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isCredential()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isDirty()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isDrawingCacheEnabled()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isDuplicateParentStateEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isEnabled()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isFocusable()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isFocusableInTouchMode()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isFocused()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isFocusedByDefault()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isForceDarkAllowed()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isHandwritingDelegate()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isHapticFeedbackEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isHardwareAccelerated()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isHorizontalFadingEdgeEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isHorizontalScrollBarEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isHovered()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isImportantForAccessibility()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isImportantForAutofill()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isImportantForContentCapture()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isInEditMode()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isInLayout()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isInTouchMode()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isKeyboardNavigationCluster()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isLaidOut()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isLayoutDirectionResolved()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isLayoutRequested()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isLongClickable()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isNestedScrollingEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isOpaque()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isPaddingRelative()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isPivotSet()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isPreferKeepClear()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isPressed()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isSaveEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isSaveFromParentEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isScreenReaderFocusable()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isScrollContainer()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isScrollbarFadingEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isSelected()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isShowingLayoutBounds()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isShown()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isSoundEffectsEnabled()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#isTemporarilyDetached()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isTextAlignmentResolved()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isTextDirectionResolved()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isVerticalFadingEdgeEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isVerticalScrollBarEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isVisibleToUserForAutofill(int)(int virtualId)` | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/View.html#keyboardNavigationClusterSearch(android.view.View, int)(https://developer.android.com/reference/android/view/View.html currentCluster, int direction)` | | `void` | `https://developer.android.com/reference/android/view/View.html#layout(int, int, int, int)(int l, int t, int r, int b)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#measure(int, int)(int widthMeasureSpec, int heightMeasureSpec)` | | `static int[]` | `https://developer.android.com/reference/android/view/View.html#mergeDrawableStates(int[], int[])(int[] baseState, int[] additionalState)` | | `void` | `https://developer.android.com/reference/android/view/View.html#offsetLeftAndRight(int)(int offset)` | | `void` | `https://developer.android.com/reference/android/view/View.html#offsetTopAndBottom(int)(int offset)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onAnimationEnd()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#onAnimationStart()()` | | `https://developer.android.com/reference/android/view/WindowInsets.html` | `https://developer.android.com/reference/android/view/View.html#onApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets.html insets)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onCancelPendingInputEvents()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onCapturedPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onCreateVirtualViewTranslationRequests(long[], int[], java.util.function.Consumer&lt;android.view.translation.ViewTranslationRequest&gt;)( long[] virtualIds, int[] supportedFormats, https://developer.android.com/reference/java/util/function/Consumer.html<https://developer.android.com/reference/android/view/translation/ViewTranslationRequest.html> requestsCollector )` | | `void` | `https://developer.android.com/reference/android/view/View.html#onDetachedFromWindow()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#onDisplayHint(int)(int hint)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onDrawForeground(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas.html canvas)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#onDrawScrollBars(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas.html canvas)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onFilterTouchEventForSecurity(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onFinishInflate()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#onFinishTemporaryDetach()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#onHoverChanged(boolean)(boolean hovered)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onKeyLongPress(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onOverScrolled(int, int, boolean, boolean)( int scrollX, int scrollY, boolean clampedX, boolean clampedY )` | | `void` | `https://developer.android.com/reference/android/view/View.html#onPointerCaptureChange(boolean)(boolean hasCapture)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onProvideAutofillStructure(android.view.ViewStructure, int)(https://developer.android.com/reference/android/view/ViewStructure.html structure, int flags)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onProvideAutofillVirtualStructure(android.view.ViewStructure, int)(https://developer.android.com/reference/android/view/ViewStructure.html structure, int flags)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onProvideContentCaptureStructure(android.view.ViewStructure, int)(https://developer.android.com/reference/android/view/ViewStructure.html structure, int flags)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onProvideStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure.html structure)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onProvideVirtualStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure.html structure)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onScrollCaptureSearch(android.graphics.Rect, android.graphics.Point, java.util.function.Consumer&lt;android.view.ScrollCaptureTarget&gt;)( https://developer.android.com/reference/android/graphics/Rect.html localVisibleRect, https://developer.android.com/reference/android/graphics/Point.html windowOffset, https://developer.android.com/reference/java/util/function/Consumer.html<https://developer.android.com/reference/android/view/ScrollCaptureTarget.html> targets )` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onSetAlpha(int)(int alpha)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onSizeChanged(int, int, int, int)(int w, int h, int oldw, int oldh)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onStartTemporaryDetach()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#onViewTranslationResponse(android.view.translation.ViewTranslationResponse)(https://developer.android.com/reference/android/view/translation/ViewTranslationResponse.html response)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onVirtualViewTranslationResponses(android.util.LongSparseArray&lt;android.view.translation.ViewTranslationResponse&gt;)( https://developer.android.com/reference/android/util/LongSparseArray.html<https://developer.android.com/reference/android/view/translation/ViewTranslationResponse.html> response )` | | `void` | `https://developer.android.com/reference/android/view/View.html#onWindowSystemUiVisibilityChanged(int)(int visible)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#onWindowVisibilityChanged(int)(int visibility)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#overScrollBy(int, int, int, int, int, int, int, int, boolean)( int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent )` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#performAccessibilityAction(int, android.os.Bundle)(int action, https://developer.android.com/reference/android/os/Bundle.html arguments)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#performContextClick()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#performHapticFeedback(android.os.vibrator.HapticFeedbackRequest)(https://developer.android.com/reference/android/os/vibrator/HapticFeedbackRequest.html request)` | | `https://developer.android.com/reference/android/view/ContentInfo.html` | `https://developer.android.com/reference/android/view/View.html#performReceiveContent(android.view.ContentInfo)(https://developer.android.com/reference/android/view/ContentInfo.html payload)` | | `void` | `https://developer.android.com/reference/android/view/View.html#playSoundEffect(int)(int soundConstant)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#post(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable.html action)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#postDelayed(java.lang.Runnable, long)(https://developer.android.com/reference/java/lang/Runnable.html action, long delayMillis)` | | `void` | `https://developer.android.com/reference/android/view/View.html#postInvalidate()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#postInvalidateDelayed(long)(long delayMilliseconds)` | | `void` | `https://developer.android.com/reference/android/view/View.html#postInvalidateOnAnimation()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#postOnAnimation(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable.html action)` | | `void` | `https://developer.android.com/reference/android/view/View.html#postOnAnimationDelayed(java.lang.Runnable, long)(https://developer.android.com/reference/java/lang/Runnable.html action, long delayMillis)` | | `void` | `https://developer.android.com/reference/android/view/View.html#refreshDrawableState()()` | | `static void` | `https://developer.android.com/reference/android/view/View.html#registerCalledFromWrongThreadListener(android.view.View.CalledFromWrongThreadListener)( https://developer.android.com/reference/android/view/View.CalledFromWrongThreadListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#releasePointerCapture()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#removeCallbacks(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable.html action)` | | `void` | `https://developer.android.com/reference/android/view/View.html#removeOnAttachStateChangeListener(android.view.View.OnAttachStateChangeListener)( https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#removeOnLayoutChangeListener(android.view.View.OnLayoutChangeListener)(https://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html listener)` | | `void` | `https://developer.android.com/reference/android/view/View.html#removeOnUnhandledKeyEventListener(android.view.View.OnUnhandledKeyEventListener)( https://developer.android.com/reference/android/view/View.OnUnhandledKeyEventListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#reportAppJankStats(android.app.jank.AppJankStats)(https://developer.android.com/reference/android/app/jank/AppJankStats.html appJankStats)` | | `void` | `https://developer.android.com/reference/android/view/View.html#requestApplyInsets()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#requestFitSystemWindows()()` **This method is deprecated.** | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#requestFocus()()` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#requestFocusFromTouch()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#requestLayout()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#requestPointerCapture()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#requestRectangleOnScreen(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html rectangle)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#requestUnbufferedDispatch(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `final T` | `<T extends https://developer.android.com/reference/android/view/View.html> https://developer.android.com/reference/android/view/View.html#requireViewById(int)(int id)` | | `void` | `https://developer.android.com/reference/android/view/View.html#resetPivot()()` | | `static int` | `https://developer.android.com/reference/android/view/View.html#resolveSize(int, int)(int size, int measureSpec)` | | `static int` | `https://developer.android.com/reference/android/view/View.html#resolveSizeAndState(int, int, int)(int size, int measureSpec, int childMeasuredState)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#restoreDefaultFocus()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#restoreHierarchyState(android.util.SparseArray&lt;android.os.Parcelable&gt;)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/os/Parcelable.html> container)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#saveAttributeDataForStyleable(android.content.Context, int[], android.util.AttributeSet, android.content.res.TypedArray, int, int)( https://developer.android.com/reference/android/content/Context.html context, int[] styleable, https://developer.android.com/reference/android/util/AttributeSet.html attrs, https://developer.android.com/reference/android/content/res/TypedArray.html t, int defStyleAttr, int defStyleRes )` | | `void` | `https://developer.android.com/reference/android/view/View.html#saveHierarchyState(android.util.SparseArray&lt;android.os.Parcelable&gt;)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/os/Parcelable.html> container)` | | `void` | `https://developer.android.com/reference/android/view/View.html#scheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable, long)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html who, https://developer.android.com/reference/java/lang/Runnable.html what, long when)` | | `void` | `https://developer.android.com/reference/android/view/View.html#scrollBy(int, int)(int x, int y)` | | `void` | `https://developer.android.com/reference/android/view/View.html#scrollTo(int, int)(int x, int y)` | | `void` | `https://developer.android.com/reference/android/view/View.html#sendAccessibilityEvent(int)(int eventType)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityDataSensitive(int)(int accessibilityDataSensitive)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityDelegate(android.view.View.AccessibilityDelegate)(https://developer.android.com/reference/android/view/View.AccessibilityDelegate.html delegate)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityHeading(boolean)(boolean isHeading)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityLiveRegion(int)(int mode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityPaneTitle(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html accessibilityPaneTitle)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityTraversalAfter(int)(int afterId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAccessibilityTraversalBefore(int)(int beforeId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setActivated(boolean)(boolean activated)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAllowClickWhenDisabled(boolean)(boolean clickableWhenDisabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAllowedHandwritingDelegatePackage(java.lang.String)(https://developer.android.com/reference/java/lang/String.html allowedPackageName)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAllowedHandwritingDelegatorPackage(java.lang.String)(https://developer.android.com/reference/java/lang/String.html allowedPackageName)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAlpha(float)(float alpha)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAnimation(android.view.animation.Animation)(https://developer.android.com/reference/android/view/animation/Animation.html animation)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAnimationMatrix(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix.html matrix)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAutoHandwritingEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)(String[] autofillHints)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setAutofillId(android.view.autofill.AutofillId)(https://developer.android.com/reference/android/view/autofill/AutofillId.html id)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackground(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html background)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackgroundColor(int)(int color)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackgroundDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html background)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackgroundResource(int)(int resid)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackgroundTintBlendMode(android.graphics.BlendMode)(https://developer.android.com/reference/android/graphics/BlendMode.html blendMode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackgroundTintList(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html tint)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setBackgroundTintMode(android.graphics.PorterDuff.Mode)(https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setBottom(int)(int bottom)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setCameraDistance(float)(float distance)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setClickable(boolean)(boolean clickable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setClipBounds(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html clipBounds)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setClipToOutline(boolean)(boolean clipToOutline)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setContentCaptureSession(android.view.contentcapture.ContentCaptureSession)(https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession.html contentCaptureSession)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setContentDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html contentDescription)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setContentSensitivity(int)(int mode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setContextClickable(boolean)(boolean contextClickable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setDefaultFocusHighlightEnabled(boolean)(boolean defaultFocusHighlightEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setDrawingCacheBackgroundColor(int)(int color)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setDrawingCacheEnabled(boolean)(boolean enabled)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setDrawingCacheQuality(int)(int quality)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setDuplicateParentStateEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setElevation(float)(float elevation)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFadingEdgeLength(int)(int length)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFilterTouchesWhenObscured(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFitsSystemWindows(boolean)(boolean fitSystemWindows)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFocusable(boolean)(boolean focusable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFocusableInTouchMode(boolean)(boolean focusableInTouchMode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFocusedByDefault(boolean)(boolean isFocusedByDefault)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setForceDarkAllowed(boolean)(boolean allow)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setForeground(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html foreground)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setForegroundGravity(int)(int gravity)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setForegroundTintBlendMode(android.graphics.BlendMode)(https://developer.android.com/reference/android/graphics/BlendMode.html blendMode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setForegroundTintList(android.content.res.ColorStateList)(https://developer.android.com/reference/android/content/res/ColorStateList.html tint)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setForegroundTintMode(android.graphics.PorterDuff.Mode)(https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setFrameContentVelocity(float)(float pixelsPerSecond)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHandwritingBoundsOffsets(float, float, float, float)( float offsetLeft, float offsetTop, float offsetRight, float offsetBottom )` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHandwritingDelegateFlags(int)(int flags)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHandwritingDelegatorCallback(java.lang.Runnable)(https://developer.android.com/reference/java/lang/Runnable.html callback)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHapticFeedbackEnabled(boolean)(boolean hapticFeedbackEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHasTransientState(boolean)(boolean hasTransientState)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHorizontalFadingEdgeEnabled(boolean)(boolean horizontalFadingEdgeEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHorizontalScrollBarEnabled(boolean)(boolean horizontalScrollBarEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHorizontalScrollbarThumbDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHorizontalScrollbarTrackDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setHovered(boolean)(boolean hovered)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setId(int)(int id)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setImportantForAccessibility(int)(int mode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setImportantForAutofill(int)(int mode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setImportantForContentCapture(int)(int mode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setIsCredential(boolean)(boolean isCredential)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setIsHandwritingDelegate(boolean)(boolean isHandwritingDelegate)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setKeepScreenOn(boolean)(boolean keepScreenOn)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setKeyboardNavigationCluster(boolean)(boolean isCluster)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setLabelFor(int)(int id)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setLayerPaint(android.graphics.Paint)(https://developer.android.com/reference/android/graphics/Paint.html paint)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint)(int layerType, https://developer.android.com/reference/android/graphics/Paint.html paint)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setLayoutDirection(int)(int layoutDirection)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html params)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setLeft(int)(int left)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setLeftTopRightBottom(int, int, int, int)(int left, int top, int right, int bottom)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setLongClickable(boolean)(boolean longClickable)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setMeasuredDimension(int, int)(int measuredWidth, int measuredHeight)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setMinimumHeight(int)(int minHeight)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setMinimumWidth(int)(int minWidth)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNestedScrollingEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNextClusterForwardId(int)(int nextClusterForwardId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNextFocusDownId(int)(int nextFocusDownId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNextFocusForwardId(int)(int nextFocusForwardId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNextFocusLeftId(int)(int nextFocusLeftId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNextFocusRightId(int)(int nextFocusRightId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setNextFocusUpId(int)(int nextFocusUpId)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnApplyWindowInsetsListener(android.view.View.OnApplyWindowInsetsListener)( https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnCapturedPointerListener(android.view.View.OnCapturedPointerListener)(https://developer.android.com/reference/android/view/View.OnCapturedPointerListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnClickListener(android.view.View.OnClickListener)(https://developer.android.com/reference/android/view/View.OnClickListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnContextClickListener(android.view.View.OnContextClickListener)(https://developer.android.com/reference/android/view/View.OnContextClickListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnCreateContextMenuListener(android.view.View.OnCreateContextMenuListener)(https://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnDragListener(android.view.View.OnDragListener)(https://developer.android.com/reference/android/view/View.OnDragListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnFocusChangeListener(android.view.View.OnFocusChangeListener)(https://developer.android.com/reference/android/view/View.OnFocusChangeListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnGenericMotionListener(android.view.View.OnGenericMotionListener)(https://developer.android.com/reference/android/view/View.OnGenericMotionListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnHoverListener(android.view.View.OnHoverListener)(https://developer.android.com/reference/android/view/View.OnHoverListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnKeyListener(android.view.View.OnKeyListener)(https://developer.android.com/reference/android/view/View.OnKeyListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnLongClickListener(android.view.View.OnLongClickListener)(https://developer.android.com/reference/android/view/View.OnLongClickListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnReceiveContentListener(java.lang.String[], android.view.OnReceiveContentListener)( String[] mimeTypes, https://developer.android.com/reference/android/view/OnReceiveContentListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnScrollChangeListener(android.view.View.OnScrollChangeListener)(https://developer.android.com/reference/android/view/View.OnScrollChangeListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnSystemUiVisibilityChangeListener(android.view.View.OnSystemUiVisibilityChangeListener)( https://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html l )` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setOnTouchListener(android.view.View.OnTouchListener)(https://developer.android.com/reference/android/view/View.OnTouchListener.html l)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOutlineAmbientShadowColor(int)(int color)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOutlineProvider(android.view.ViewOutlineProvider)(https://developer.android.com/reference/android/view/ViewOutlineProvider.html provider)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOutlineSpotShadowColor(int)(int color)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setOverScrollMode(int)(int overScrollMode)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setPendingCredentialRequest(android.credentials.GetCredentialRequest, android.os.OutcomeReceiver&lt;android.credentials.GetCredentialResponse,android.credentials.GetCredentialException&gt;)( https://developer.android.com/reference/android/credentials/GetCredentialRequest.html request, https://developer.android.com/reference/android/os/OutcomeReceiver.html<https://developer.android.com/reference/android/credentials/GetCredentialResponse.html, https://developer.android.com/reference/android/credentials/GetCredentialException.html> callback )` | | `void` | `https://developer.android.com/reference/android/view/View.html#setPivotX(float)(float pivotX)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setPivotY(float)(float pivotY)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setPointerIcon(android.view.PointerIcon)(https://developer.android.com/reference/android/view/PointerIcon.html pointerIcon)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setPreferKeepClear(boolean)(boolean preferKeepClear)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setPreferKeepClearRects(java.util.List&lt;android.graphics.Rect&gt;)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/graphics/Rect.html> rects)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setPressed(boolean)(boolean pressed)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setRenderEffect(android.graphics.RenderEffect)(https://developer.android.com/reference/android/graphics/RenderEffect.html renderEffect)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setRequestedFrameRate(float)(float frameRate)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setRevealOnFocusHint(boolean)(boolean revealOnFocus)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setRight(int)(int right)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setRotation(float)(float rotation)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setRotationX(float)(float rotationX)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setRotationY(float)(float rotationY)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSaveEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSaveFromParentEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScaleX(float)(float scaleX)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScaleY(float)(float scaleY)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScreenReaderFocusable(boolean)(boolean screenReaderFocusable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollBarDefaultDelayBeforeFade(int)( int scrollBarDefaultDelayBeforeFade )` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollBarFadeDuration(int)(int scrollBarFadeDuration)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollBarSize(int)(int scrollBarSize)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollBarStyle(int)(int style)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setScrollCaptureCallback(android.view.ScrollCaptureCallback)(https://developer.android.com/reference/android/view/ScrollCaptureCallback.html callback)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollCaptureHint(int)(int hint)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollContainer(boolean)(boolean isScrollContainer)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollIndicators(int)(int indicators)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollX(int)(int value)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollY(int)(int value)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setScrollbarFadingEnabled(boolean)(boolean fadeScrollbars)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSoundEffectsEnabled(boolean)(boolean soundEffectsEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setStateListAnimator(android.animation.StateListAnimator)(https://developer.android.com/reference/android/animation/StateListAnimator.html stateListAnimator)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSupplementalDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html supplementalDescription)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSystemGestureExclusionRects(java.util.List&lt;android.graphics.Rect&gt;)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/graphics/Rect.html> rects)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSystemUiVisibility(int)(int visibility)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setTag(int, java.lang.Object)(int key, https://developer.android.com/reference/java/lang/Object.html tag)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTextAlignment(int)(int textAlignment)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTextDirection(int)(int textDirection)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTooltipText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html tooltipText)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setTop(int)(int top)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTouchDelegate(android.view.TouchDelegate)(https://developer.android.com/reference/android/view/TouchDelegate.html delegate)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTransitionAlpha(float)(float alpha)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#setTransitionName(java.lang.String)(https://developer.android.com/reference/java/lang/String.html transitionName)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTransitionVisibility(int)(int visibility)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTranslationX(float)(float translationX)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTranslationY(float)(float translationY)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setTranslationZ(float)(float translationZ)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setVerticalFadingEdgeEnabled(boolean)(boolean verticalFadingEdgeEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setVerticalScrollBarEnabled(boolean)(boolean verticalScrollBarEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setVerticalScrollbarPosition(int)(int position)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setVerticalScrollbarThumbDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setVerticalScrollbarTrackDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html drawable)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setViewTranslationCallback(android.view.translation.ViewTranslationCallback)(https://developer.android.com/reference/android/view/translation/ViewTranslationCallback.html callback)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setVisibility(int)(int visibility)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setWillNotCacheDrawing(boolean)(boolean willNotCacheDrawing)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/View.html#setWillNotDraw(boolean)(boolean willNotDraw)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setWindowInsetsAnimationCallback(android.view.WindowInsetsAnimation.Callback)( https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback.html callback )` | | `void` | `https://developer.android.com/reference/android/view/View.html#setX(float)(float x)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setY(float)(float y)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setZ(float)(float z)` | | `https://developer.android.com/reference/android/view/ActionMode.html` | `https://developer.android.com/reference/android/view/View.html#startActionMode(android.view.ActionMode.Callback)(https://developer.android.com/reference/android/view/ActionMode.Callback.html callback)` | | `void` | `https://developer.android.com/reference/android/view/View.html#startAnimation(android.view.animation.Animation)(https://developer.android.com/reference/android/view/animation/Animation.html animation)` | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#startDrag(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)( https://developer.android.com/reference/android/content/ClipData.html data, https://developer.android.com/reference/android/view/View.DragShadowBuilder.html shadowBuilder, https://developer.android.com/reference/java/lang/Object.html myLocalState, int flags )` **This method is deprecated.** | | `final boolean` | `https://developer.android.com/reference/android/view/View.html#startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)( https://developer.android.com/reference/android/content/ClipData.html data, https://developer.android.com/reference/android/view/View.DragShadowBuilder.html shadowBuilder, https://developer.android.com/reference/java/lang/Object.html myLocalState, int flags )` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#startNestedScroll(int)(int axes)` | | `void` | `https://developer.android.com/reference/android/view/View.html#stopNestedScroll()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/view/View.html#toString()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#transformMatrixToGlobal(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix.html matrix)` | | `void` | `https://developer.android.com/reference/android/view/View.html#transformMatrixToLocal(android.graphics.Matrix)(https://developer.android.com/reference/android/graphics/Matrix.html matrix)` | | `static void` | `https://developer.android.com/reference/android/view/View.html#unregisterCalledFromWrongThreadListener(android.view.View.CalledFromWrongThreadListener)( https://developer.android.com/reference/android/view/View.CalledFromWrongThreadListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/View.html#unscheduleDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html who)` | | `final void` | `https://developer.android.com/reference/android/view/View.html#updateDragShadow(android.view.View.DragShadowBuilder)(https://developer.android.com/reference/android/view/View.DragShadowBuilder.html shadowBuilder)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#willNotCacheDrawing()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/View.html#willNotDraw()()` | |

## Public constructors

### SwitchCompat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public SwitchCompat(@NonNull Context context)
```

Construct a new Switch with default styling.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | The Context that will determine this widget's theming. |

### SwitchCompat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public SwitchCompat(@NonNull Context context, @Nullable AttributeSet attrs)
```

Construct a new Switch with default styling, overriding specific style attributes as requested.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | The Context that will determine this widget's theming. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html attrs` | Specification of attributes that should deviate from default styling. |

### SwitchCompat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public SwitchCompat(
    @NonNull Context context,
    @Nullable AttributeSet attrs,
    int defStyleAttr
)
```

Construct a new Switch with a default style determined by the given theme attribute, overriding specific style attributes as requested.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | The Context that will determine this widget's theming. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html attrs` | Specification of attributes that should deviate from the default styling. |
| `int defStyleAttr` | An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults. |

## Public methods

### draw

```
public void draw(@NonNull Canvas c)
```

### drawableHotspotChanged

```
public void drawableHotspotChanged(float x, float y)
```

### getCompoundPaddingLeft

```
public int getCompoundPaddingLeft()
```

### getCompoundPaddingRight

```
public int getCompoundPaddingRight()
```

### getCustomSelectionActionModeCallback

```
public @Nullable ActionMode.Callback getCustomSelectionActionModeCallback()
```

### getShowText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:showText")
public boolean getShowText()
```

Indicates whether the on/off text should be displayed.

| Returns |
|---|---|
| `boolean` | `true` if the on/off text should be displayed, otherwise `false` |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#showText` |   |

### getSplitTrack

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:splitTrack")
public boolean getSplitTrack()
```

Returns whether the track should be split by the thumb.

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#splitTrack` |   |

### getSwitchMinWidth

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:switchMinWidth")
public int getSwitchMinWidth()
```

Get the minimum width of the switch in pixels. The switch's width will be the maximum of this value and its measured width as determined by the switch drawables and text used.

| Returns |
|---|---|
| `int` | Minimum width of the switch in pixels |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#switchMinWidth` |   |

### getSwitchPadding

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:switchPadding")
public int getSwitchPadding()
```

Get the amount of horizontal padding between the switch and the associated text.

| Returns |
|---|---|
| `int` | Amount of padding in pixels |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#switchPadding` |   |

### getTextOff

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "android:textOff")
public CharSequence getTextOff()
```

Returns the text displayed when the button is not in the checked state.

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#textOff` |   |

### getTextOn

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "android:textOn")
public CharSequence getTextOn()
```

Returns the text displayed when the button is in the checked state.

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#textOn` |   |

### getThumbDrawable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "android:thumb")
public Drawable getThumbDrawable()
```

Get the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | Thumb drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#thumb` |   |

### getThumbTextPadding

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:thumbTextPadding")
public int getThumbTextPadding()
```

Get the horizontal padding around the text drawn on the switch itself.

| Returns |
|---|---|
| `int` | Horizontal padding for switch thumb text in pixels |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#thumbTextPadding` |   |

### getThumbTintList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:thumbTint")
public @Nullable ColorStateList getThumbTintList()
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html` | the tint applied to the thumb drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintList(android.content.res.ColorStateList)` |   |
| `https://developer.android.com/reference/android/R.attr.html#thumbTint` |   |

### getThumbTintMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:thumbTintMode")
public @Nullable PorterDuff.Mode getThumbTintMode()
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | the blending mode used to apply the tint to the thumb drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintMode(android.graphics.PorterDuff.Mode)` |   |
| `https://developer.android.com/reference/android/R.attr.html#thumbTintMode` |   |

### getTrackDrawable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:track")
public Drawable getTrackDrawable()
```

Get the drawable used for the track that the switch slides within.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | Track drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#track` |   |

### getTrackTintList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:trackTint")
public @Nullable ColorStateList getTrackTintList()
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html` | the tint applied to the track drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintList(android.content.res.ColorStateList)` |   |
| `https://developer.android.com/reference/android/R.attr.html#trackTint` |   |

### getTrackTintMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
@Attribute(value = "androidx.appcompat:trackTintMode")
public @Nullable PorterDuff.Mode getTrackTintMode()
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` | the blending mode used to apply the tint to the track drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintMode(android.graphics.PorterDuff.Mode)` |   |
| `https://developer.android.com/reference/android/R.attr.html#trackTintMode` |   |

### isEmojiCompatEnabled

```
public boolean isEmojiCompatEnabled()
```

| Returns |
|---|---|
| `boolean` | the current enabled state, set via `https://developer.android.com/reference/androidx/appcompat/widget/EmojiCompatConfigurationView#setEmojiCompatEnabled(boolean)` |

### jumpDrawablesToCurrentState

```
public void jumpDrawablesToCurrentState()
```

### onInitializeAccessibilityEvent

```
public void onInitializeAccessibilityEvent(AccessibilityEvent event)
```

### onInitializeAccessibilityNodeInfo

```
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)
```

### onMeasure

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
```

### onPopulateAccessibilityEvent

```
public void onPopulateAccessibilityEvent(AccessibilityEvent event)
```

### onTouchEvent

```
public boolean onTouchEvent(MotionEvent ev)
```

### setAllCaps

```
public void setAllCaps(boolean allCaps)
```

### setChecked

```
public void setChecked(boolean checked)
```

### setCustomSelectionActionModeCallback

```
public void setCustomSelectionActionModeCallback(
    @Nullable ActionMode.Callback actionModeCallback
)
```

See `https://developer.android.com/reference/androidx/core/widget/TextViewCompat#setCustomSelectionActionModeCallback(android.widget.TextView,android.view.ActionMode.Callback)`

### setEmojiCompatEnabled

```
public void setEmojiCompatEnabled(boolean enabled)
```

Configure emoji fallback behavior using EmojiCompat. When enabled, this View will attempt to use EmojiCompat to enabled missing emojis. When disabled, this View will not display missing emojis using EmojiCompat. EmojiCompat must be correctly configured on a device for this to have an effect, which will happen by default if a correct downloadable fonts provider is installed on the device. If you manually configure EmojiCompat by calling EmojiCompat init after this View is constructed, you may call this method again to enable EmojiCompat on this text view. For more information about EmojiCompat configuration see the emoji2 module.

| Parameters |
|---|---|
| `boolean enabled` | if true, display missing emoji using EmojiCompat, otherwise display missing emoji using a fallback glyph "□" (known as tofu) |

### setFilters

```
public void setFilters(@NonNull InputFilter[] filters)
```

### setShowText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setShowText(boolean showText)
```

Sets whether the on/off text should be displayed.

| Parameters |
|---|---|
| `boolean showText` | `true` to display on/off text |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#showText` |   |

### setSplitTrack

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setSplitTrack(boolean splitTrack)
```

Specifies whether the track should be split by the thumb. When true, the thumb's optical bounds will be clipped out of the track drawable, then the thumb will be drawn into the resulting gap.

| Parameters |
|---|---|
| `boolean splitTrack` | Whether the track should be split by the thumb |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#splitTrack` |   |

### setSwitchMinWidth

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setSwitchMinWidth(int pixels)
```

Set the minimum width of the switch in pixels. The switch's width will be the maximum of this value and its measured width as determined by the switch drawables and text used.

| Parameters |
|---|---|
| `int pixels` | Minimum width of the switch in pixels |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#switchMinWidth` |   |

### setSwitchPadding

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setSwitchPadding(int pixels)
```

Set the amount of horizontal padding between the switch and the associated text.

| Parameters |
|---|---|
| `int pixels` | Amount of padding in pixels |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#switchPadding` |   |

### setSwitchTextAppearance

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setSwitchTextAppearance(Context context, int resid)
```

Sets the switch text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#switchTextAppearance` |   |

### setSwitchTypeface

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setSwitchTypeface(Typeface typeface)
```

Sets the typeface in which the text should be displayed on the switch. Note that not all Typeface families actually have bold and italic variants, so you may need to use `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchTypeface(android.graphics.Typeface,int)` to get the appearance that you actually want.

### setSwitchTypeface

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setSwitchTypeface(Typeface tf, int style)
```

Sets the typeface and style in which the text should be displayed on the switch, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified.

### setTextOff

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setTextOff(CharSequence textOff)
```

Sets the text displayed when the button is not in the checked state.

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#textOff` |   |

### setTextOn

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setTextOn(CharSequence textOn)
```

Sets the text displayed when the button is in the checked state.

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#textOn` |   |

### setThumbDrawable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setThumbDrawable(Drawable thumb)
```

Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html thumb` | Thumb drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#thumb` |   |

### setThumbResource

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setThumbResource(int resId)
```

Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track.

| Parameters |
|---|---|
| `int resId` | Resource ID of a thumb drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#thumb` |   |

### setThumbTextPadding

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setThumbTextPadding(int pixels)
```

Set the horizontal padding around the text drawn on the switch itself.

| Parameters |
|---|---|
| `int pixels` | Horizontal padding for switch thumb text in pixels |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#thumbTextPadding` |   |

### setThumbTintList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setThumbTintList(@Nullable ColorStateList tint)
```

Applies a tint to the thumb drawable. Does not modify the current tint mode, which is `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_IN` by default.

Subsequent calls to `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbDrawable(android.graphics.drawable.Drawable)` will automatically mutate the drawable and apply the specified tint and tint mode using `https://developer.android.com/reference/androidx/core/graphics/drawable/DrawableCompat#setTintList(android.graphics.drawable.Drawable,android.content.res.ColorStateList)`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html tint` | the tint to apply, may be `null` to clear tint |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbTintList()` |   |
| `https://developer.android.com/reference/android/R.attr.html#thumbTint` |   |
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html#setTintList(android.content.res.ColorStateList)` |   |

### setThumbTintMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setThumbTintMode(@Nullable PorterDuff.Mode tintMode)
```

Specifies the blending mode used to apply the tint specified by `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setThumbTintList(android.content.res.ColorStateList)`} to the thumb drawable. The default mode is `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_IN`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode` | the blending mode used to apply the tint, may be `null` to clear tint |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getThumbTintMode()` |   |
| `https://developer.android.com/reference/android/R.attr.html#thumbTintMode` |   |
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html#setTintMode(android.graphics.PorterDuff.Mode)` |   |

### setTrackDrawable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setTrackDrawable(Drawable track)
```

Set the drawable used for the track that the switch slides within.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html track` | Track drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#track` |   |

### setTrackResource

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setTrackResource(int resId)
```

Set the drawable used for the track that the switch slides within.

| Parameters |
|---|---|
| `int resId` | Resource ID of a track drawable |

| See also |
|---|---|
| `https://developer.android.com/reference/android/R.attr.html#track` |   |

### setTrackTintList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setTrackTintList(@Nullable ColorStateList tint)
```

Applies a tint to the track drawable. Does not modify the current tint mode, which is `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_IN` by default.

Subsequent calls to `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackDrawable(android.graphics.drawable.Drawable)` will automatically mutate the drawable and apply the specified tint and tint mode using `https://developer.android.com/reference/androidx/core/graphics/drawable/DrawableCompat#setTintList(android.graphics.drawable.Drawable,android.content.res.ColorStateList)`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/res/ColorStateList.html tint` | the tint to apply, may be `null` to clear tint |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTrackTintList()` |   |
| `https://developer.android.com/reference/android/R.attr.html#trackTint` |   |

### setTrackTintMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
public void setTrackTintMode(@Nullable PorterDuff.Mode tintMode)
```

Specifies the blending mode used to apply the tint specified by `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setTrackTintList(android.content.res.ColorStateList)` to the track drawable. The default mode is `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_IN`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html tintMode` | the blending mode used to apply the tint, may be `null` to clear tint |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#getTrackTintMode()` |   |
| `https://developer.android.com/reference/android/R.attr.html#trackTintMode` |   |

### toggle

```
public void toggle()
```

## Protected methods

### drawableStateChanged

```
protected void drawableStateChanged()
```

### getThumbPosition

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.5.0)

```
protected final @FloatRange(from = 0.0, to = 1.0) float getThumbPosition()
```

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0.0, to = 1.0) float` | the current thumb position as a decimal value between 0 (off) and 1 (on). |

### onCreateDrawableState

```
protected int[] onCreateDrawableState(int extraSpace)
```

### onDraw

```
protected void onDraw(Canvas canvas)
```

### onLayout

```
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
```

### setEnforceSwitchWidth

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.5.0)

```
protected final void setEnforceSwitchWidth(boolean enforceSwitchWidth)
```

Sets `true` to enforce the switch width being at least twice of the thumb width. Otherwise the switch width will be the value set by `https://developer.android.com/reference/androidx/appcompat/widget/SwitchCompat#setSwitchMinWidth(int)`. The default value is `true`.

### verifyDrawable

```
protected boolean verifyDrawable(@NonNull Drawable who)
```