# RecyclerView

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

*** ** * ** ***


```
public class RecyclerView extends ViewGroup implements ScrollingView, NestedScrollingChild2, NestedScrollingChild3
```

<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.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html) ||
|   |   | ↳ | [androidx.recyclerview.widget.RecyclerView](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView) |

Known direct subclasses [BaseGridView](https://developer.android.com/reference/androidx/leanback/widget/BaseGridView), [WearableRecyclerView](https://developer.android.com/reference/androidx/wear/widget/WearableRecyclerView)

|---|---|
| `https://developer.android.com/reference/androidx/leanback/widget/BaseGridView` | An abstract base class for vertically and horizontally scrolling lists. |
| `https://developer.android.com/reference/androidx/wear/widget/WearableRecyclerView` | Wearable specific implementation of the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView` enabling `https://developer.android.com/reference/androidx/wear/widget/WearableRecyclerView#setCircularScrollingGestureEnabled(boolean)` circular scrolling} and semi-circular layouts. |

Known indirect subclasses [HorizontalGridView](https://developer.android.com/reference/androidx/leanback/widget/HorizontalGridView), [VerticalGridView](https://developer.android.com/reference/androidx/leanback/widget/VerticalGridView)

|---|---|
| `https://developer.android.com/reference/androidx/leanback/widget/HorizontalGridView` | A `https://developer.android.com/reference/android/view/ViewGroup.html` that shows items in a horizontal scrolling list. |
| `https://developer.android.com/reference/androidx/leanback/widget/VerticalGridView` | A `https://developer.android.com/reference/android/view/ViewGroup.html` that shows items in a vertically scrolling list. |

*** ** * ** ***

A flexible view for providing a limited window into a large data set.

### Glossary of terms:

- *Adapter:* A subclass of `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter` responsible for providing views that represent items in a data set.
- *Position:* The position of a data item within an *Adapter*.
- *Index:* The index of an attached child view as used in a call to `https://developer.android.com/reference/android/view/ViewGroup.html#getChildAt(int)`. Contrast with *Position.*
- *Binding:* The process of preparing a child view to display data corresponding to a *position* within the adapter.
- *Recycle (view):* A view previously used to display data for a specific adapter position may be placed in a cache for later reuse to display the same type of data again later. This can drastically improve performance by skipping initial layout inflation or construction.
- *Scrap (view):* A child view that has entered into a temporarily detached state during layout. Scrap views may be reused without becoming fully detached from the parent RecyclerView, either unmodified if no rebinding is required or modified by the adapter if the view was considered *dirty*.
- *Dirty (view):* A child view that must be rebound by the adapter before being displayed.

### Positions in RecyclerView:

RecyclerView introduces an additional level of abstraction between the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` to be able to detect data set changes in batches during a layout calculation. This saves LayoutManager from tracking adapter changes to calculate animations. It also helps with performance because all view bindings happen at the same time and unnecessary bindings are avoided.

For this reason, there are two types of `position` related methods in RecyclerView:

- layout position: Position of an item in the latest layout calculation. This is the position from the LayoutManager's perspective.
- adapter position: Position of an item in the adapter. This is the position from the Adapter's perspective.

These two positions are the same except the time between dispatching `adapter.notify*
` events and calculating the updated layout.

Methods that return or receive `*LayoutPosition*` use position as of the latest layout calculation (e.g. `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder#getLayoutPosition()`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForLayoutPosition(int)`). These positions include all changes until the last layout calculation. You can rely on these positions to be consistent with what user is currently seeing on the screen. For example, if you have a list of items on the screen and user asks for the 5th element, you should use these methods as they'll match what user is seeing.

The other set of position related methods are in the form of `*AdapterPosition*`. (e.g. `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder#getAbsoluteAdapterPosition()`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder#getBindingAdapterPosition()`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForAdapterPosition(int)`) You should use these methods when you need to work with up-to-date adapter positions even if they may not have been reflected to layout yet. For example, if you want to access the item in the adapter on a ViewHolder click, you should use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder#getBindingAdapterPosition()`. Beware that these methods may not be able to calculate adapter positions if `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter#notifyDataSetChanged()` has been called and new layout has not yet been calculated. For this reasons, you should carefully handle `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#NO_POSITION()` or `null` results from these methods.

When writing a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` you almost always want to use layout positions whereas when writing an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter`, you probably want to use adapter positions.

### Presenting Dynamic Data

To display updatable data in a RecyclerView, your adapter needs to signal inserts, moves, and deletions to RecyclerView. You can build this yourself by manually calling `adapter.notify*` methods when content changes, or you can use one of the easier solutions RecyclerView provides:

#### List diffing with DiffUtil

If your RecyclerView is displaying a list that is re-fetched from scratch for each update (e.g. from the network, or from a database), `https://developer.android.com/reference/androidx/recyclerview/widget/DiffUtil` can calculate the difference between versions of the list. `DiffUtil` takes both lists as input and computes the difference, which can be passed to RecyclerView to trigger minimal animations and updates to keep your UI performant, and animations meaningful. This approach requires that each list is represented in memory with immutable content, and relies on receiving updates as new instances of lists. This approach is also ideal if your UI layer doesn't implement sorting, it just presents the data in the order it's given.

The best part of this approach is that it extends to any arbitrary changes - item updates, moves, addition and removal can all be computed and handled the same way. Though you do have to keep two copies of the list in memory while diffing, and must avoid mutating them, it's possible to share unmodified elements between list versions.

There are three primary ways to do this for RecyclerView. We recommend you start with `https://developer.android.com/reference/androidx/recyclerview/widget/ListAdapter`, the higher-level API that builds in `https://developer.android.com/reference/java/util/List.html` diffing on a background thread, with minimal code. `https://developer.android.com/reference/androidx/recyclerview/widget/AsyncListDiffer` also provides this behavior, but without defining an Adapter to subclass. If you want more control, `https://developer.android.com/reference/androidx/recyclerview/widget/DiffUtil` is the lower-level API you can use to compute the diffs yourself. Each approach allows you to specify how diffs should be computed based on item data.

#### List mutation with SortedList

If your RecyclerView receives updates incrementally, e.g. item X is inserted, or item Y is removed, you can use `https://developer.android.com/reference/androidx/recyclerview/widget/SortedList` to manage your list. You define how to order items, and it will automatically trigger update signals that RecyclerView can use. SortedList works if you only need to handle insert and remove events, and has the benefit that you only ever need to have a single copy of the list in memory. It can also compute differences with `https://developer.android.com/reference/androidx/recyclerview/widget/SortedList#replaceAll(T...)`, but this method is more limited than the list diffing behavior above.

#### Paging Library

The [Paging library](https://developer.android.com/topic/libraries/architecture/paging/) extends the diff-based approach to additionally support paged loading. It provides the `https://developer.android.com/reference/androidx/paging/PagedList` class that operates as a self-loading list, provided a source of data like a database, or paginated network API. It provides convenient list diffing support out of the box, similar to `ListAdapter` and `AsyncListDiffer`. For more information about the Paging library, see the [library documentation](https://developer.android.com/topic/libraries/architecture/paging/). `https://developer.android.com/reference/androidx/recyclerview/R.attr#layoutManager()`

## Summary

| ### Nested types |
|---|
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter<VH extends https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder>` Base class for an Adapter |
| `public enum https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter.StateRestorationPolicy` Defines how this Adapter wants to restore its state after a view reconstruction (e.g. configuration change). |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.AdapterDataObserver` Observer base class for watching changes to an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter`. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ChildDrawingOrderCallback` A callback interface that can be used to alter the drawing order of RecyclerView children. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` EdgeEffectFactory lets you customize the over-scroll edge effect for RecyclerViews. |
| `@https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/androidx/annotation/IntDef(value = ) public annotation https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory.EdgeDirection` |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator` This class defines the animations that take place on items as changes are made to the adapter. |
| `@https://developer.android.com/reference/androidx/annotation/IntDef(flag = true, value = ) @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) public annotation https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator.AdapterChanges` The set of flags that might be passed to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator#recordPreLayoutInformation(androidx.recyclerview.widget.RecyclerView.State,androidx.recyclerview.widget.RecyclerView.ViewHolder,int,java.util.List<java.lang.Object>)`. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator.ItemAnimatorFinishedListener` This interface is used to inform listeners when all pending or running animations in an ItemAnimator are finished. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator.ItemHolderInfo` A simple data structure that holds information about an item's bounds. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` A `LayoutManager` is responsible for measuring and positioning item views within a `RecyclerView` as well as determining the policy for when to recycle item views that are no longer visible to the user. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager.LayoutPrefetchRegistry` Interface for LayoutManagers to request items to be prefetched, based on position, with specified distance from viewport, which indicates priority. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager.Properties` Some general properties that a LayoutManager may want to use. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutParams extends https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html` `https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html` subclass for children of `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnChildAttachStateChangeListener` A Listener interface that can be attached to a RecylcerView to get notified whenever a ViewHolder is attached to or detached from RecyclerView. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` This class defines the behavior of fling if the developer wishes to handle it. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener` An OnItemTouchListener allows the application to intercept touch events in progress at the view hierarchy level of the RecyclerView before those touch events are considered for RecyclerView's own scrolling behavior. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener` An OnScrollListener can be added to a RecyclerView to receive messages when a scrolling event has occurred on that RecyclerView. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool` RecycledViewPool lets you share Views between multiple RecyclerViews. |
| `public final inner class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Recycler` A Recycler is responsible for managing scrapped or detached item views for reuse. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener` A RecyclerListener can be set on a RecyclerView to receive messages whenever a view is recycled. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SimpleOnItemTouchListener implements https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener` An implementation of `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener` that has empty method bodies and default return values. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SmoothScroller` Base class for smooth scrolling. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SmoothScroller.Action` Holds information about a smooth scroll request by a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SmoothScroller`. |
| `public interface https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SmoothScroller.ScrollVectorProvider` An interface which is optionally implemented by custom `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` to provide a hint to a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SmoothScroller` about the location of the target position. |
| `public class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.State` Contains useful information about the current RecyclerView state like target scroll position or view focus. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewCacheExtension` ViewCacheExtension is a helper class to provide an additional layer of view caching that can be controlled by the developer. |
| `public abstract class https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` A ViewHolder describes an item view and metadata about its place within the RecyclerView. |

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#HORIZONTAL() = 0` |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#INVALID_TYPE() = -1` |
| `static final long` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#NO_ID() = -1` |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#NO_POSITION() = -1` |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_DRAGGING() = 1` The RecyclerView is currently being dragged by outside input such as user touch input. |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_IDLE() = 0` The RecyclerView is not currently scrolling. |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_SETTLING() = 2` The RecyclerView is currently animating to a final position while not under outside control. |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#TOUCH_SLOP_DEFAULT() = 0` Constant for use with `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setScrollingTouchSlop(int)`. |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#TOUCH_SLOP_PAGING() = 1` Constant for use with `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setScrollingTouchSlop(int)`. |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#UNDEFINED_DURATION() = -2147483648` Constant that represents that a duration has not been defined. |
| `static final int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#VERTICAL() = 1` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#RecyclerView(android.content.Context)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Context.html context)` |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#RecyclerView(android.content.Context,android.util.AttributeSet)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Context.html context, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/util/AttributeSet.html attrs)` |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#RecyclerView(android.content.Context,android.util.AttributeSet,int)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Context.html context, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/util/AttributeSet.html attrs, int defStyleAttr )` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addFocusables(java.util.ArrayList<android.view.View>,int,int)(https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/android/view/View.html> views, int direction, int focusableMode)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addItemDecoration(androidx.recyclerview.widget.RecyclerView.ItemDecoration)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration decor)` Add an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` to this RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addItemDecoration(androidx.recyclerview.widget.RecyclerView.ItemDecoration,int)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration decor, int index)` Add an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` to this RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnChildAttachStateChangeListener(androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnChildAttachStateChangeListener listener )` Register a listener that will be notified whenever a child view is attached to or detached from RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnItemTouchListener(androidx.recyclerview.widget.RecyclerView.OnItemTouchListener)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener listener )` Add an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener` to intercept touch events before they are dispatched to child views or this view's standard scrolling behavior. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener listener)` Add a listener that will be notified of any changes in scroll state or position. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener listener)` Register a listener that will be notified whenever a child view is recycled. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#clearOnChildAttachStateChangeListeners()()` Removes all listeners that were added via `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnChildAttachStateChangeListener(androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener)`. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#clearOnScrollListeners()()` Remove all secondary listener that were notified of any changes in scroll state or position. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollExtent()()` Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollOffset()()` Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollRange()()` Compute the horizontal range that the horizontal scrollbar represents. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollExtent()()` Compute the vertical extent of the vertical scrollbar's thumb within the vertical range. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollOffset()()` Compute the vertical offset of the vertical scrollbar's thumb within the vertical range. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollRange()()` Compute the vertical range that the vertical scrollbar represents. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchKeyEvent(android.view.KeyEvent)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/KeyEvent.html event)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedFling(float,float,boolean)(float velocityX, float velocityY, boolean consumed)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedPreFling(float,float)(float velocityX, float velocityY)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedPreScroll(int,int,int[],int[])( int dx, int dy, int[] consumed, int[] offsetInWindow )` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedPreScroll(int,int,int[],int[],int)( int dx, int dy, int[] consumed, int[] offsetInWindow, int type )` Dispatch one step of a nested scroll in progress before this view consumes any portion of it. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedScroll(int,int,int,int,int[])( int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow )` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedScroll(int,int,int,int,int[],int)( int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow, int type )` Dispatch one step of a nested scroll in progress. |
| `final void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchNestedScroll(int,int,int,int,int[],int,int[])( int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow, int type, @https://developer.android.com/reference/androidx/annotation/NonNull int[] consumed )` Dispatch one step of a nested scroll in progress. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#draw(android.graphics.Canvas)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html c)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#drawChild(android.graphics.Canvas,android.view.View,long)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas, https://developer.android.com/reference/android/view/View.html child, long drawingTime)` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findChildViewUnder(float,float)(float x, float y)` Find the topmost view under the given point. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findContainingItemView(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view)` Traverses the ancestors of the given view and returns the item view that contains it and also a direct child of the RecyclerView. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findContainingViewHolder(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view)` Returns the ViewHolder that contains the given view. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForAdapterPosition(int)(int position)` Return the ViewHolder for the item in the given position of the data set. |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForItemId(long)(long id)` Return the ViewHolder for the item with the given id. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForLayoutPosition(int)(int position)` Return the ViewHolder for the item in the given position of the data set as of the latest layout pass. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | `[findViewHolderForPosition](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForPosition(int))(int position)` **This method is deprecated.** use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForLayoutPosition(int)` or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForAdapterPosition(int)` <br /> |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#fling(int,int)(int velocityX, int velocityY)` Begin a standard fling with an initial velocity along each axis in pixels per second. |
| `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#focusSearch(android.view.View,int)(https://developer.android.com/reference/android/view/View.html focused, int direction)` Since RecyclerView is a collection ViewGroup that includes virtual children (items that are in the Adapter but not visible in the UI), it employs a more involved focus search strategy that differs from other ViewGroups. |
| `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#generateLayoutParams(android.util.AttributeSet)(https://developer.android.com/reference/android/util/AttributeSet.html attrs)` |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getAccessibilityClassName()()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getAdapter()()` Retrieves the previously set adapter or null if no adapter is set. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getBaseline()()` Return the offset of the RecyclerView's text baseline from the its top boundary. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildAdapterPosition(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` Return the adapter position that the given child view corresponds to. |
| `long` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildItemId(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` Return the stable item id that the given child view corresponds to. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildLayoutPosition(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` Return the adapter position of the given child view as of the latest completed layout pass. |
| `int` | `[getChildPosition](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildPosition(android.view.View))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` **This method is deprecated.** use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildAdapterPosition(android.view.View)` or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildLayoutPosition(android.view.View)`. <br /> |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildViewHolder(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` Retrieve the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` for the given child view. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getClipToPadding()()` Returns whether this RecyclerView will clip its children to its padding, and resize (but not clip) any EdgeEffect to the padded region, if padding is present. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerViewAccessibilityDelegate` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getCompatAccessibilityDelegate()()` Returns the accessibility delegate compatibility implementation used by the RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getDecoratedBoundsWithMargins(android.view.View,android.graphics.Rect)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html outBounds)` Returns the bounds of the view including its decoration and margins. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getEdgeEffectFactory()()` Retrieves the previously set `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` or the default factory if nothing was set. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getItemAnimator()()` Gets the current ItemAnimator for this RecyclerView. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getItemDecorationAt(int)(int index)` Returns an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` previously added to this RecyclerView. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getItemDecorationCount()()` Returns the number of `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` currently added to this RecyclerView. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getLayoutManager()()` Return the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` currently responsible for layout policy for this RecyclerView. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getMaxFlingVelocity()()` Returns the maximum fling velocity used by this RecyclerView. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getMinFlingVelocity()()` Returns the minimum velocity to start a fling. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getOnFlingListener()()` Get the current `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` from this `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getPreserveFocusAfterLayout()()` Returns true if the RecyclerView should attempt to preserve currently focused Adapter Item's focus even if the View representing the Item is replaced during a layout calculation. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getRecycledViewPool()()` Retrieve this RecyclerView's `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool`. |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getScrollState()()` Return the current scrolling state of the RecyclerView. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#hasFixedSize()()` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#hasNestedScrollingParent()()` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#hasNestedScrollingParent(int)(int type)` Returns true if this view has a nested scrolling parent for the given input type. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#hasPendingAdapterUpdates()()` Returns whether there are pending adapter updates which are not yet applied to the layout. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#invalidateItemDecorations()()` Invalidates all ItemDecorations. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isAnimating()()` Returns true if RecyclerView is currently running some animations. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isAttachedToWindow()()` Returns true if RecyclerView is attached to window. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isComputingLayout()()` Returns whether RecyclerView is currently computing a layout. |
| `boolean` | `[isLayoutFrozen](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isLayoutFrozen())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isLayoutSuppressed()`. <br /> |
| `final boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isLayoutSuppressed()()` Returns whether layout and scroll calls on this container are currently being suppressed, due to an earlier call to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#suppressLayout(boolean)`. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isNestedScrollingEnabled()()` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#nestedScrollBy(int,int)(int x, int y)` Same as `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollBy(int,int)`, but also participates in nested scrolling. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#offsetChildrenHorizontal(int)(@https://developer.android.com/reference/androidx/annotation/Px int dx)` Offset the bounds of all child views by `dx` pixels. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#offsetChildrenVertical(int)(@https://developer.android.com/reference/androidx/annotation/Px int dy)` Offset the bounds of all child views by `dy` pixels. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onChildAttachedToWindow(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` Called when an item view is attached to this RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onChildDetachedFromWindow(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child)` Called when an item view is detached from this RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onDraw(android.graphics.Canvas)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html c)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onGenericMotionEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onInterceptTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html e)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onScrollStateChanged(int)(int state)` Called when the scroll state of this RecyclerView changes. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onScrolled(int,int)(@https://developer.android.com/reference/androidx/annotation/Px int dx, @https://developer.android.com/reference/androidx/annotation/Px int dy)` Called when the scroll position of this RecyclerView changes. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html e)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeItemDecoration(androidx.recyclerview.widget.RecyclerView.ItemDecoration)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration decor)` Remove an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` from this RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeItemDecorationAt(int)(int index)` Removes the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` associated with the supplied index position. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeOnChildAttachStateChangeListener(androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnChildAttachStateChangeListener listener )` Removes the provided listener from child attached state listeners list. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeOnItemTouchListener(androidx.recyclerview.widget.RecyclerView.OnItemTouchListener)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener listener )` Remove an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener`. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener listener)` Remove a listener that was notified of any changes in scroll state or position. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener listener)` Removes the provided listener from RecyclerListener list. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#requestChildFocus(android.view.View,android.view.View)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/View.html focused)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#requestChildRectangleOnScreen(android.view.View,android.graphics.Rect,boolean)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/graphics/Rect.html rect, boolean immediate)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#requestDisallowInterceptTouchEvent(boolean)(boolean disallowIntercept)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#requestLayout()()` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollBy(int,int)(int x, int y)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollTo(int,int)(int x, int y)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollToPosition(int)(int position)` Convenience method to scroll to a certain position. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#sendAccessibilityEventUnchecked(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAccessibilityDelegateCompat(androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate)( @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerViewAccessibilityDelegate accessibilityDelegate )` Sets the accessibility delegate compatibility implementation used by RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAdapter(androidx.recyclerview.widget.RecyclerView.Adapter)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter adapter)` Set a new adapter to provide child views on demand. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setChildDrawingOrderCallback(androidx.recyclerview.widget.RecyclerView.ChildDrawingOrderCallback)( @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ChildDrawingOrderCallback childDrawingOrderCallback )` Sets the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ChildDrawingOrderCallback` to be used for drawing children. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setClipToPadding(boolean)(boolean clipToPadding)` |
| `static void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setDebugAssertionsEnabled(boolean)(boolean debugAssertionsEnabled)` Enable internal assertions about RecyclerView's state and throw exceptions if the assertions are violated. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setEdgeEffectFactory(androidx.recyclerview.widget.RecyclerView.EdgeEffectFactory)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory edgeEffectFactory )` Set a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` for this `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setHasFixedSize(boolean)(boolean hasFixedSize)` RecyclerView can perform several optimizations if it can know in advance that RecyclerView's size is not affected by the adapter contents. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setItemAnimator(androidx.recyclerview.widget.RecyclerView.ItemAnimator)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator animator)` Sets the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator` that will handle animations involving changes to the items in this RecyclerView. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setItemViewCacheSize(int)(int size)` Set the number of offscreen views to retain before adding them to the potentially shared `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getRecycledViewPool()`. |
| `void` | `[setLayoutFrozen](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setLayoutFrozen(boolean))(boolean frozen)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#suppressLayout(boolean)`. <br /> |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setLayoutManager(androidx.recyclerview.widget.RecyclerView.LayoutManager)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager layout)` Set the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` that this RecyclerView will use. |
| `void` | `[setLayoutTransition](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setLayoutTransition(android.animation.LayoutTransition))(https://developer.android.com/reference/android/animation/LayoutTransition.html transition)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setItemAnimator(androidx.recyclerview.widget.RecyclerView.ItemAnimator)` ()}. <br /> |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setNestedScrollingEnabled(boolean)(boolean enabled)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setOnFlingListener(androidx.recyclerview.widget.RecyclerView.OnFlingListener)( @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener onFlingListener )` Set a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` for this `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`. |
| `void` | `[setOnScrollListener](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener))(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener listener)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener)` <br /> |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setPreserveFocusAfterLayout(boolean)(boolean preserveFocusAfterLayout)` Set whether the RecyclerView should try to keep the same Item focused after a layout calculation or not. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setRecycledViewPool(androidx.recyclerview.widget.RecyclerView.RecycledViewPool)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool pool)` Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views. |
| `void` | `[setRecyclerListener](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener))(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener listener)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener)` <br /> |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setScrollingTouchSlop(int)(int slopConstant)` Configure the scrolling touch slop for a specific use case. |
| `static void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setVerboseLoggingEnabled(boolean)(boolean verboseLoggingEnabled)` Enable verbose logging within RecyclerView itself. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setViewCacheExtension(androidx.recyclerview.widget.RecyclerView.ViewCacheExtension)( @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewCacheExtension extension )` Sets a new `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewCacheExtension` to be used by the Recycler. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int)(@https://developer.android.com/reference/androidx/annotation/Px int dx, @https://developer.android.com/reference/androidx/annotation/Px int dy)` Animate a scroll by the given amount of pixels along either axis. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int,android.view.animation.Interpolator)(@https://developer.android.com/reference/androidx/annotation/Px int dx, @https://developer.android.com/reference/androidx/annotation/Px int dy, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/animation/Interpolator.html interpolator)` Animate a scroll by the given amount of pixels along either axis. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int,android.view.animation.Interpolator,int)( @https://developer.android.com/reference/androidx/annotation/Px int dx, @https://developer.android.com/reference/androidx/annotation/Px int dy, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/animation/Interpolator.html interpolator, int duration )` Smooth scrolls the RecyclerView by a given distance. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollToPosition(int)(int position)` Starts a smooth scroll to an adapter position. |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#startNestedScroll(int)(int axes)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#startNestedScroll(int,int)(int axes, int type)` Begin a nestable scroll operation along the given axes, for the given input type. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#stopNestedScroll()()` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#stopNestedScroll(int)(int type)` Stop a nested scroll in progress for the given input type. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#stopScroll()()` Stop any current scroll in progress, such as one started by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#fling(int,int)` or a touch-initiated fling. |
| `final void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#suppressLayout(boolean)(boolean suppress)` Tells this RecyclerView to suppress all layout and scroll calls until layout suppression is disabled with a later call to suppressLayout(false). |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#swapAdapter(androidx.recyclerview.widget.RecyclerView.Adapter,boolean)( @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter adapter, boolean removeAndRecycleExistingViews )` Swaps the current adapter with the provided one. |

| ### Protected methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#checkLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html p)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchRestoreInstanceState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/os/Parcelable.html> container)` Override to prevent thawing of any views created by the adapter. |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#dispatchSaveInstanceState(android.util.SparseArray<android.os.Parcelable>)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/os/Parcelable.html> container)` Override to prevent freezing of any views created by the adapter. |
| `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#generateDefaultLayoutParams()()` |
| `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#generateLayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html p)` |
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildDrawingOrder(int,int)(int childCount, int i)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onAttachedToWindow()()` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onDetachedFromWindow()()` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onLayout(boolean,int,int,int,int)(boolean changed, int l, int t, int r, int b)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onMeasure(int,int)(int widthSpec, int heightSpec)` |
| `boolean` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onRequestFocusInDescendants(int,android.graphics.Rect)(int direction, https://developer.android.com/reference/android/graphics/Rect.html previouslyFocusedRect)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#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/androidx/recyclerview/widget/RecyclerView#onSaveInstanceState()()` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#onSizeChanged(int,int,int,int)(int w, int h, int oldw, int oldh)` |
| `void` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeDetachedView(android.view.View,boolean)(https://developer.android.com/reference/android/view/View.html child, boolean animate)` |

| ### Inherited Constants |
|---|
| 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` | |
| From [android.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html) |---|---| | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#CLIP_TO_PADDING_MASK = 34` | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#FOCUS_AFTER_DESCENDANTS = 262144` | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#FOCUS_BEFORE_DESCENDANTS = 131072` | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#FOCUS_BLOCK_DESCENDANTS = 393216` | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#LAYOUT_MODE_CLIP_BOUNDS = 0` | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#LAYOUT_MODE_OPTICAL_BOUNDS = 1` | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#PERSISTENT_ALL_CACHES = 3` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#PERSISTENT_ANIMATION_CACHE = 1` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#PERSISTENT_NO_CACHE = 0` **This field is deprecated.** | | `static final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#PERSISTENT_SCROLLING_CACHE = 2` **This field is deprecated.** | |

| ### Inherited methods |
|---|
| From [android.view.View](https://developer.android.com/reference/android/view/View.html) |---|---| | `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 )` | | `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.** | | `void` | `https://developer.android.com/reference/android/view/View.html#autofill(android.util.SparseArray&lt;android.view.autofill.AutofillValue&gt;)(https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/android/view/autofill/AutofillValue.html> values)` | | `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()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#cancelLongPress()()` | | `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#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)` | | `void` | `https://developer.android.com/reference/android/view/View.html#computeScroll()()` | | `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)` | | `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.** | | `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#dispatchNestedPrePerformAccessibilityAction(int, android.os.Bundle)( int action, https://developer.android.com/reference/android/os/Bundle.html arguments )` | | `void` | `https://developer.android.com/reference/android/view/View.html#drawableHotspotChanged(float, float)(float x, float y)` | | `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.** | | `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()()` | | `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()()` | | `String[]` | `https://developer.android.com/reference/android/view/View.html#getAutofillHints()()` | | `final https://developer.android.com/reference/android/view/autofill/AutofillId.html` | `https://developer.android.com/reference/android/view/View.html#getAutofillId()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getAutofillType()()` | | `https://developer.android.com/reference/android/view/autofill/AutofillValue.html` | `https://developer.android.com/reference/android/view/View.html#getAutofillValue()()` | | `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()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getBottomPaddingOffset()()` | | `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)` | | `void` | `https://developer.android.com/reference/android/view/View.html#getFocusedRect(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html r)` | | `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()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getLeftFadingEdgeStrength()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getLeftPaddingOffset()()` | | `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()()` | | `float` | `https://developer.android.com/reference/android/view/View.html#getRightFadingEdgeStrength()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getRightPaddingOffset()()` | | `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()()` | | `int` | `https://developer.android.com/reference/android/view/View.html#getTopPaddingOffset()()` | | `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#hasFocusable()()` | | `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#hasOverlappingRendering()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#hasPointerCapture()()` | | `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#invalidateDrawable(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#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#isAutoHandwritingEnabled()()` | | `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#isOpaque()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#isPaddingOffsetRequired()()` | | `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)` | | `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)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onCheckIsTextEditor()()` | | `void` | `https://developer.android.com/reference/android/view/View.html#onConfigurationChanged(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#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/view/View.html#onCreateInputConnection(android.view.inputmethod.EditorInfo)(https://developer.android.com/reference/android/view/inputmethod/EditorInfo.html outAttrs)` | | `void` | `https://developer.android.com/reference/android/view/View.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 )` | | `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#onDisplayHint(int)(int hint)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent.html event)` | | `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#onFocusChanged(boolean, int, android.graphics.Rect)( boolean gainFocus, int direction, https://developer.android.com/reference/android/graphics/Rect.html previouslyFocusedRect )` | | `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)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityEvent(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#onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo)(https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html info)` | | `boolean` | `https://developer.android.com/reference/android/view/View.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/view/View.html#onKeyLongPress(int, android.view.KeyEvent)(int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/View.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/view/View.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/view/View.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/view/View.html#onKeyUp(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#onPopulateAccessibilityEvent(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#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)` | | `https://developer.android.com/reference/android/view/ContentInfo.html` | `https://developer.android.com/reference/android/view/View.html#onReceiveContent(android.view.ContentInfo)(https://developer.android.com/reference/android/view/ContentInfo.html payload)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onRtlPropertiesChanged(int)(int layoutDirection)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onScreenStateChanged(int)(int screenState)` | | `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 )` | | `void` | `https://developer.android.com/reference/android/view/View.html#onScrollChanged(int, int, int, int)(int l, int t, int oldl, int oldt)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onSetAlpha(int)(int alpha)` | | `void` | `https://developer.android.com/reference/android/view/View.html#onStartTemporaryDetach()()` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#onTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `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#onVisibilityAggregated(boolean)(boolean isVisible)` | | `void` | `https://developer.android.com/reference/android/view/View.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/view/View.html#onWindowFocusChanged(boolean)(boolean hasWindowFocus)` | | `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#performClick()()` | | `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)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#performLongClick()()` | | `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#requestFocusFromTouch()()` | | `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)` | | `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#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#setEnabled(boolean)(boolean enabled)` | | `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#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#setPadding(int, int, int, int)(int left, int top, int right, int bottom)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setPaddingRelative(int, int, int, int)(int start, int top, int end, int bottom)` | | `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)` | | `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#setSelected(boolean)(boolean selected)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setSoundEffectsEnabled(boolean)(boolean soundEffectsEnabled)` | | `void` | `https://developer.android.com/reference/android/view/View.html#setStateDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html stateDescription)` | | `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#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)` | | `boolean` | `https://developer.android.com/reference/android/view/View.html#showContextMenu()()` | | `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 )` | | `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#verifyDrawable(android.graphics.drawable.Drawable)(https://developer.android.com/reference/android/graphics/drawable/Drawable.html who)` | | `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()()` | |
| From [android.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html) |---|---| | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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/ViewGroup.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/view/ViewGroup.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)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#addStatesFromChildren()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#addView(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#addViewInLayout(android.view.View, int, android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View.html child, int index, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html params)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#attachLayoutAnimationParameters(android.view.View, android.view.ViewGroup.LayoutParams, int, int)( https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html params, int index, int count )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#attachViewToParent(android.view.View, int, android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View.html child, int index, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html params)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#bringChildToFront(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#canAnimate()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#childDrawableStateChanged(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#childHasTransientStateChanged(android.view.View, boolean)( https://developer.android.com/reference/android/view/View.html child, boolean childHasTransientState )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#cleanupLayoutState(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#clearChildFocus(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#clearDisappearingChildren()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#clearFocus()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#debug(int)(int depth)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#detachAllViewsFromParent()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#detachViewFromParent(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#detachViewsFromParent(int, int)(int start, int count)` | | `https://developer.android.com/reference/android/view/WindowInsets.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchApplyWindowInsets(android.view.WindowInsets)(https://developer.android.com/reference/android/view/WindowInsets.html insets)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchCapturedPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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/ViewGroup.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/ViewGroup.html#dispatchDisplayHint(int)(int hint)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchDragEvent(android.view.DragEvent)(https://developer.android.com/reference/android/view/DragEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchDraw(android.graphics.Canvas)(https://developer.android.com/reference/android/graphics/Canvas.html canvas)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchDrawableHotspotChanged(float, float)(float x, float y)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchFinishTemporaryDetach()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchFreezeSelfOnly(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)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchGenericFocusedEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchGenericPointerEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchKeyEventPreIme(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchKeyShortcutEvent(android.view.KeyEvent)(https://developer.android.com/reference/android/view/KeyEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchPointerCaptureChanged(boolean)(boolean hasCapture)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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/ViewGroup.html#dispatchProvideStructure(android.view.ViewStructure)(https://developer.android.com/reference/android/view/ViewStructure.html structure)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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/ViewGroup.html#dispatchSetActivated(boolean)(boolean activated)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchSetPressed(boolean)(boolean pressed)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchSetSelected(boolean)(boolean selected)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchStartTemporaryDetach()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchSystemUiVisibilityChanged(int)(int visible)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchThawSelfOnly(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)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchTouchEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html ev)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchTrackballEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.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/ViewGroup.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/ViewGroup.html#dispatchWindowFocusChanged(boolean)(boolean hasFocus)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchWindowInsetsAnimationEnd(android.view.WindowInsetsAnimation)(https://developer.android.com/reference/android/view/WindowInsetsAnimation.html animation)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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/ViewGroup.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/ViewGroup.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/ViewGroup.html#dispatchWindowSystemUiVisiblityChanged(int)(int visible)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#dispatchWindowVisibilityChanged(int)(int visibility)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#drawableStateChanged()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#endViewTransition(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#findFocus()()` | | `https://developer.android.com/reference/android/window/OnBackInvokedDispatcher.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#findOnBackInvokedDispatcherForChild(android.view.View, android.view.View)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/View.html requester)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.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 text, int flags )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#focusableViewAvailable(android.view.View)(https://developer.android.com/reference/android/view/View.html v)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#gatherTransparentRegion(android.graphics.Region)(https://developer.android.com/reference/android/graphics/Region.html region)` | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#getChildAt(int)(int index)` | | `int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getChildCount()()` | | `final int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getChildDrawingOrder(int)(int drawingPosition)` | | `static int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getChildMeasureSpec(int, int, int)(int spec, int padding, int childDimension)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#getChildStaticTransformation(android.view.View, android.view.animation.Transformation)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/animation/Transformation.html t)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#getChildVisibleRect(android.view.View, android.graphics.Rect, android.graphics.Point)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/graphics/Rect.html r, https://developer.android.com/reference/android/graphics/Point.html offset)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#getClipChildren()()` | | `int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getDescendantFocusability()()` | | `https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#getFocusedChild()()` | | `https://developer.android.com/reference/android/view/animation/LayoutAnimationController.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#getLayoutAnimation()()` | | `https://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#getLayoutAnimationListener()()` | | `int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getLayoutMode()()` | | `https://developer.android.com/reference/android/animation/LayoutTransition.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#getLayoutTransition()()` | | `int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getNestedScrollAxes()()` | | `https://developer.android.com/reference/android/view/ViewGroupOverlay.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#getOverlay()()` | | `int` | `https://developer.android.com/reference/android/view/ViewGroup.html#getPersistentDrawingCache()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#getTouchscreenBlocksFocus()()` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#hasFocus()()` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#hasTransientState()()` | | `int` | `https://developer.android.com/reference/android/view/ViewGroup.html#indexOfChild(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `final void` | `https://developer.android.com/reference/android/view/ViewGroup.html#invalidateChild(android.view.View, android.graphics.Rect)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/graphics/Rect.html dirty)` **This method is deprecated.** | | `https://developer.android.com/reference/android/view/ViewParent.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#invalidateChildInParent(int[], android.graphics.Rect)(int[] location, https://developer.android.com/reference/android/graphics/Rect.html dirty)` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#isAlwaysDrawnWithCacheEnabled()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#isAnimationCacheEnabled()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#isChildrenDrawingOrderEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#isChildrenDrawnWithCacheEnabled()()` **This method is deprecated.** | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#isMotionEventSplittingEnabled()()` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#isTransitionGroup()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#jumpDrawablesToCurrentState()()` | | `final void` | `https://developer.android.com/reference/android/view/ViewGroup.html#layout(int, int, int, int)(int l, int t, int r, int b)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#measureChild(android.view.View, int, int)( https://developer.android.com/reference/android/view/View.html child, int parentWidthMeasureSpec, int parentHeightMeasureSpec )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#measureChildWithMargins(android.view.View, int, int, int, int)( https://developer.android.com/reference/android/view/View.html child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#measureChildren(int, int)(int widthMeasureSpec, int heightMeasureSpec)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#notifySubtreeAccessibilityStateChanged(android.view.View, android.view.View, int)( https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/View.html source, int changeType )` | | `final void` | `https://developer.android.com/reference/android/view/ViewGroup.html#offsetDescendantRectToMyCoords(android.view.View, android.graphics.Rect)(https://developer.android.com/reference/android/view/View.html descendant, https://developer.android.com/reference/android/graphics/Rect.html rect)` | | `final void` | `https://developer.android.com/reference/android/view/ViewGroup.html#offsetRectIntoDescendantCoords(android.view.View, android.graphics.Rect)(https://developer.android.com/reference/android/view/View.html descendant, https://developer.android.com/reference/android/graphics/Rect.html rect)` | | `int[]` | `https://developer.android.com/reference/android/view/ViewGroup.html#onCreateDrawableState(int)(int extraSpace)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onDescendantInvalidated(android.view.View, android.view.View)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/View.html target)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#onInterceptHoverEvent(android.view.MotionEvent)(https://developer.android.com/reference/android/view/MotionEvent.html event)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#onNestedFling(android.view.View, float, float, boolean)( https://developer.android.com/reference/android/view/View.html target, float velocityX, float velocityY, boolean consumed )` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#onNestedPreFling(android.view.View, float, float)(https://developer.android.com/reference/android/view/View.html target, float velocityX, float velocityY)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#onNestedPrePerformAccessibilityAction(android.view.View, int, android.os.Bundle)( https://developer.android.com/reference/android/view/View.html target, int action, https://developer.android.com/reference/android/os/Bundle.html args )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onNestedPreScroll(android.view.View, int, int, int[])(https://developer.android.com/reference/android/view/View.html target, int dx, int dy, int[] consumed)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onNestedScroll(android.view.View, int, int, int, int)( https://developer.android.com/reference/android/view/View.html target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onNestedScrollAccepted(android.view.View, android.view.View, int)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/View.html target, int axes)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#onRequestSendAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` | | `https://developer.android.com/reference/android/view/PointerIcon.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#onResolvePointerIcon(android.view.MotionEvent, int)(https://developer.android.com/reference/android/view/MotionEvent.html event, int pointerIndex)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#onStartNestedScroll(android.view.View, android.view.View, int)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/View.html target, int nestedScrollAxes)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onStopNestedScroll(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onViewAdded(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#onViewRemoved(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#propagateRequestedFrameRate(float, boolean)(float frameRate, boolean forceOverride)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#recomputeViewAttributes(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeAllViews()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeAllViewsInLayout()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeView(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeViewAt(int)(int index)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeViewInLayout(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeViews(int, int)(int start, int count)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#removeViewsInLayout(int, int)(int start, int count)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#requestFocus(int, android.graphics.Rect)(int direction, https://developer.android.com/reference/android/graphics/Rect.html previouslyFocusedRect)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#requestSendAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/View.html child, https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#requestTransparentRegion(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#restoreDefaultFocus()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#scheduleLayoutAnimation()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setAddStatesFromChildren(boolean)(boolean addsStates)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setAlwaysDrawnWithCacheEnabled(boolean)(boolean always)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setAnimationCacheEnabled(boolean)(boolean enabled)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingCacheEnabled(boolean)(boolean enabled)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingOrderEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawnWithCacheEnabled(boolean)(boolean enabled)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setClipChildren(boolean)(boolean clipChildren)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setDescendantFocusability(int)(int focusability)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setLayoutAnimation(android.view.animation.LayoutAnimationController)(https://developer.android.com/reference/android/view/animation/LayoutAnimationController.html controller)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setLayoutAnimationListener(android.view.animation.Animation.AnimationListener)( https://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html animationListener )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setLayoutMode(int)(int layoutMode)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setMotionEventSplittingEnabled(boolean)(boolean split)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setOnHierarchyChangeListener(android.view.ViewGroup.OnHierarchyChangeListener)( https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener.html listener )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setPersistentDrawingCache(int)(int drawingCacheToKeep)` **This method is deprecated.** | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setRequestedFrameRate(float)(float frameRate)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setStaticTransformationsEnabled(boolean)(boolean enabled)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setTouchscreenBlocksFocus(boolean)(boolean touchscreenBlocksFocus)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setTransitionGroup(boolean)(boolean isTransitionGroup)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#setWindowInsetsAnimationCallback(android.view.WindowInsetsAnimation.Callback)( https://developer.android.com/reference/android/view/WindowInsetsAnimation.Callback.html callback )` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#shouldDelayChildPressedState()()` | | `boolean` | `https://developer.android.com/reference/android/view/ViewGroup.html#showContextMenuForChild(android.view.View)(https://developer.android.com/reference/android/view/View.html originalView)` | | `https://developer.android.com/reference/android/view/ActionMode.html` | `https://developer.android.com/reference/android/view/ViewGroup.html#startActionModeForChild(android.view.View, android.view.ActionMode.Callback)( https://developer.android.com/reference/android/view/View.html originalView, https://developer.android.com/reference/android/view/ActionMode.Callback.html callback )` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#startLayoutAnimation()()` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#startViewTransition(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` | | `void` | `https://developer.android.com/reference/android/view/ViewGroup.html#updateViewLayout(android.view.View, android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/View.html view, https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html params)` | |

## Constants

### HORIZONTAL

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

```
public static final int HORIZONTAL = 0
```

### INVALID_TYPE

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

```
public static final int INVALID_TYPE = -1
```

### NO_ID

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

```
public static final long NO_ID = -1
```

### NO_POSITION

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

```
public static final int NO_POSITION = -1
```

### SCROLL_STATE_DRAGGING

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

```
public static final int SCROLL_STATE_DRAGGING = 1
```

The RecyclerView is currently being dragged by outside input such as user touch input.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getScrollState()` |   |

### SCROLL_STATE_IDLE

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

```
public static final int SCROLL_STATE_IDLE = 0
```

The RecyclerView is not currently scrolling.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getScrollState()` |   |

### SCROLL_STATE_SETTLING

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

```
public static final int SCROLL_STATE_SETTLING = 2
```

The RecyclerView is currently animating to a final position while not under outside control.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getScrollState()` |   |

### TOUCH_SLOP_DEFAULT

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

```
public static final int TOUCH_SLOP_DEFAULT = 0
```

Constant for use with `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setScrollingTouchSlop(int)`. Indicates that the RecyclerView should use the standard touch slop for smooth, continuous scrolling.

### TOUCH_SLOP_PAGING

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

```
public static final int TOUCH_SLOP_PAGING = 1
```

Constant for use with `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setScrollingTouchSlop(int)`. Indicates that the RecyclerView should use the standard touch slop for scrolling widgets that snap to a page or other coarse-grained barrier.

### UNDEFINED_DURATION

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

```
public static final int UNDEFINED_DURATION = -2147483648
```

Constant that represents that a duration has not been defined.

### VERTICAL

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

```
public static final int VERTICAL = 1
```

## Public constructors

### RecyclerView

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

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

### RecyclerView

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

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

### RecyclerView

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

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

## Public methods

### addFocusables

```
public void addFocusables(ArrayList<View> views, int direction, int focusableMode)
```

### addItemDecoration

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

```
public void addItemDecoration(@NonNull RecyclerView.ItemDecoration decor)
```

Add an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` to this RecyclerView. Item decorations can affect both measurement and drawing of individual item views.

Item decorations are ordered. Decorations placed earlier in the list will be run/queried/drawn first for their effects on item views. Padding added to views will be nested; a padding added by an earlier decoration will mean further item decorations in the list will be asked to draw/pad within the previous decoration's given area.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration decor` | Decoration to add |

### addItemDecoration

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

```
public void addItemDecoration(@NonNull RecyclerView.ItemDecoration decor, int index)
```

Add an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` to this RecyclerView. Item decorations can affect both measurement and drawing of individual item views.

Item decorations are ordered. Decorations placed earlier in the list will be run/queried/drawn first for their effects on item views. Padding added to views will be nested; a padding added by an earlier decoration will mean further item decorations in the list will be asked to draw/pad within the previous decoration's given area.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration decor` | Decoration to add |
| `int index` | Position in the decoration chain to insert this decoration at. If this value is negative the decoration will be added at the end. |

### addOnChildAttachStateChangeListener

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

```
public void addOnChildAttachStateChangeListener(
    @NonNull RecyclerView.OnChildAttachStateChangeListener listener
)
```

Register a listener that will be notified whenever a child view is attached to or detached from RecyclerView.

This listener will be called when a LayoutManager or the RecyclerView decides that a child view is no longer needed. If an application associates expensive or heavyweight data with item views, this may be a good place to release or free those resources.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnChildAttachStateChangeListener listener` | Listener to register |

### addOnItemTouchListener

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

```
public void addOnItemTouchListener(
    @NonNull RecyclerView.OnItemTouchListener listener
)
```

Add an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener` to intercept touch events before they are dispatched to child views or this view's standard scrolling behavior.

Client code may use listeners to implement item manipulation behavior. Once a listener returns true from `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener#onInterceptTouchEvent(androidx.recyclerview.widget.RecyclerView,android.view.MotionEvent)` its `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener#onTouchEvent(androidx.recyclerview.widget.RecyclerView,android.view.MotionEvent)` method will be called for each incoming MotionEvent until the end of the gesture.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener listener` | Listener to add |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SimpleOnItemTouchListener` |   |

### addOnScrollListener

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

```
public void addOnScrollListener(@NonNull RecyclerView.OnScrollListener listener)
```

Add a listener that will be notified of any changes in scroll state or position.

Components that add a listener should take care to remove it when finished. Other components that take ownership of a view may call `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#clearOnScrollListeners()` to remove all attached listeners.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener listener` | listener to set |

### addRecyclerListener

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

```
public void addRecyclerListener(@NonNull RecyclerView.RecyclerListener listener)
```

Register a listener that will be notified whenever a child view is recycled.

The listeners will be called when a LayoutManager or the RecyclerView decides that a child view is no longer needed. If an application associates data with the item views being recycled, this may be a good place to release or free those resources.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener listener` | Listener to register. |

### clearOnChildAttachStateChangeListeners

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

```
public void clearOnChildAttachStateChangeListeners()
```

Removes all listeners that were added via `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnChildAttachStateChangeListener(androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener)`.

### clearOnScrollListeners

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

```
public void clearOnScrollListeners()
```

Remove all secondary listener that were notified of any changes in scroll state or position.

### computeHorizontalScrollExtent

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

```
public int computeHorizontalScrollExtent()
```

Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the length of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the units used by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollRange()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollOffset()`.

Default implementation returns 0.

If you want to support scroll bars, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeHorizontalScrollExtent(androidx.recyclerview.widget.RecyclerView.State)` in your LayoutManager.

| Returns |
|---|---|
| `int` | The horizontal extent of the scrollbar's thumb |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeHorizontalScrollExtent(androidx.recyclerview.widget.RecyclerView.State)` |   |

### computeHorizontalScrollOffset

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

```
public int computeHorizontalScrollOffset()
```

Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the position of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the units used by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollRange()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollExtent()`.

Default implementation returns 0.

If you want to support scroll bars, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeHorizontalScrollOffset(androidx.recyclerview.widget.RecyclerView.State)` in your LayoutManager.

| Returns |
|---|---|
| `int` | The horizontal offset of the scrollbar's thumb |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeHorizontalScrollOffset(androidx.recyclerview.widget.RecyclerView.State)` | (RecyclerView.State) |

### computeHorizontalScrollRange

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

```
public int computeHorizontalScrollRange()
```

Compute the horizontal range that the horizontal scrollbar represents.

The range is expressed in arbitrary units that must be the same as the units used by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollExtent()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeHorizontalScrollOffset()`.

Default implementation returns 0.

If you want to support scroll bars, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeHorizontalScrollRange(androidx.recyclerview.widget.RecyclerView.State)` in your LayoutManager.

| Returns |
|---|---|
| `int` | The total horizontal range represented by the horizontal scrollbar |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeHorizontalScrollRange(androidx.recyclerview.widget.RecyclerView.State)` |   |

### computeVerticalScrollExtent

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

```
public int computeVerticalScrollExtent()
```

Compute the vertical extent of the vertical scrollbar's thumb within the vertical range. This value is used to compute the length of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the units used by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollRange()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollOffset()`.

Default implementation returns 0.

If you want to support scroll bars, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeVerticalScrollExtent(androidx.recyclerview.widget.RecyclerView.State)` in your LayoutManager.

| Returns |
|---|---|
| `int` | The vertical extent of the scrollbar's thumb |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeVerticalScrollExtent(androidx.recyclerview.widget.RecyclerView.State)` |   |

### computeVerticalScrollOffset

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

```
public int computeVerticalScrollOffset()
```

Compute the vertical offset of the vertical scrollbar's thumb within the vertical range. This value is used to compute the position of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the units used by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollRange()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollExtent()`.

Default implementation returns 0.

If you want to support scroll bars, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeVerticalScrollOffset(androidx.recyclerview.widget.RecyclerView.State)` in your LayoutManager.

| Returns |
|---|---|
| `int` | The vertical offset of the scrollbar's thumb |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeVerticalScrollOffset(androidx.recyclerview.widget.RecyclerView.State)` | (RecyclerView.State) |

### computeVerticalScrollRange

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

```
public int computeVerticalScrollRange()
```

Compute the vertical range that the vertical scrollbar represents.

The range is expressed in arbitrary units that must be the same as the units used by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollExtent()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#computeVerticalScrollOffset()`.

Default implementation returns 0.

If you want to support scroll bars, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeVerticalScrollRange(androidx.recyclerview.widget.RecyclerView.State)` in your LayoutManager.

| Returns |
|---|---|
| `int` | The total vertical range represented by the vertical scrollbar |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#computeVerticalScrollRange(androidx.recyclerview.widget.RecyclerView.State)` |   |

### dispatchKeyEvent

```
public boolean dispatchKeyEvent(@Nullable KeyEvent event)
```

### dispatchNestedFling

```
public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed)
```

### dispatchNestedPreFling

```
public boolean dispatchNestedPreFling(float velocityX, float velocityY)
```

### dispatchNestedPreScroll

```
public boolean dispatchNestedPreScroll(
    int dx,
    int dy,
    int[] consumed,
    int[] offsetInWindow
)
```

### dispatchNestedPreScroll

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

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

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

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

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

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#dispatchNestedScroll(int,int,int,int,int[],int)` |   |

### dispatchNestedScroll

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

### dispatchNestedScroll

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

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

Dispatch one step of a nested scroll in progress.

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

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

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

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#dispatchNestedPreScroll(int,int,int[],int[],int)` |   |

### dispatchNestedScroll

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

```
public final void dispatchNestedScroll(
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    int[] offsetInWindow,
    int type,
    @NonNull int[] consumed
)
```

Dispatch one step of a nested scroll in progress.

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

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

The original nested scrolling child (where the input events were received to start the scroll) must provide a non-null `consumed` parameter with values {0, 0}.

| Parameters |
|---|---|
| `int dxConsumed` | Horizontal distance in pixels consumed by this view during this scroll step |
| `int dyConsumed` | Vertical distance in pixels consumed by this view during this scroll step |
| `int dxUnconsumed` | Horizontal scroll distance in pixels not consumed by this view |
| `int dyUnconsumed` | Horizontal scroll distance in pixels not consumed by this view |
| `int[] offsetInWindow` | Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. |
| `int type` | the type of input which cause this scroll event |
| `@https://developer.android.com/reference/androidx/annotation/NonNull int[] consumed` | Output. Upon this method returning, will contain the original values plus any scroll distances consumed by all of this view's nested scrolling parents up the view hierarchy. Index 0 for the x dimension, and index 1 for the y dimension |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingParent3#onNestedScroll(android.view.View,int,int,int,int,int,int[])` |   |

### dispatchPopulateAccessibilityEvent

```
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
```

### draw

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

### drawChild

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

```
public boolean drawChild(@NonNull Canvas canvas, View child, long drawingTime)
```

### findChildViewUnder

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

```
public @Nullable View findChildViewUnder(float x, float y)
```

Find the topmost view under the given point.

| Parameters |
|---|---|
| `float x` | Horizontal position in pixels to search |
| `float y` | Vertical position in pixels to search |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/View.html` | The child view under (x, y) or null if no matching child is found |

### findContainingItemView

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

```
public @Nullable View findContainingItemView(@NonNull View view)
```

Traverses the ancestors of the given view and returns the item view that contains it and also a direct child of the RecyclerView. This returned view can be used to get the ViewHolder by calling `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildViewHolder(android.view.View)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view` | The view that is a descendant of the RecyclerView. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/View.html` | The direct child of the RecyclerView which contains the given view or null if the provided view is not a descendant of this RecyclerView. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildViewHolder(android.view.View)` |   |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findContainingViewHolder(android.view.View)` |   |

### findContainingViewHolder

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

```
public @Nullable RecyclerView.ViewHolder findContainingViewHolder(@NonNull View view)
```

Returns the ViewHolder that contains the given view.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view` | The view that is a descendant of the RecyclerView. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | The ViewHolder that contains the given view or null if the provided view is not a descendant of this RecyclerView. |

### findViewHolderForAdapterPosition

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

```
public @Nullable RecyclerView.ViewHolder findViewHolderForAdapterPosition(int position)
```

Return the ViewHolder for the item in the given position of the data set. Unlike `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForLayoutPosition(int)` this method takes into account any pending adapter changes that may not be reflected to the layout yet. On the other hand, if `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter#notifyDataSetChanged()` has been called but the new layout has not been calculated yet, this method will return `null` since the new positions of views are unknown until the layout is calculated.

This method checks only the children of RecyclerView. If the item at the given `position` is not laid out, it *will not* create a new one.

When the ItemAnimator is running a change animation, there might be 2 ViewHolders representing the same Item. In this case, the updated ViewHolder will be returned.

| Parameters |
|---|---|
| `int position` | The position of the item in the data set of the adapter |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | The ViewHolder at `position` or null if there is no such item |

### findViewHolderForItemId

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

```
public RecyclerView.ViewHolder findViewHolderForItemId(long id)
```

Return the ViewHolder for the item with the given id. The RecyclerView must use an Adapter with `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter#setHasStableIds(boolean)` to return a non-null value.

This method checks only the children of RecyclerView. If the item with the given `id` is not laid out, it *will not* create a new one. When the ItemAnimator is running a change animation, there might be 2 ViewHolders with the same id. In this case, the updated ViewHolder will be returned.

| Parameters |
|---|---|
| `long id` | The id for the requested item |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | The ViewHolder with the given `id` or null if there is no such item |

### findViewHolderForLayoutPosition

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

```
public @Nullable RecyclerView.ViewHolder findViewHolderForLayoutPosition(int position)
```

Return the ViewHolder for the item in the given position of the data set as of the latest layout pass.

This method checks only the children of RecyclerView. If the item at the given `position` is not laid out, it *will not* create a new one.

Note that when Adapter contents change, ViewHolder positions are not updated until the next layout calculation. If there are pending adapter updates, the return value of this method may not match your adapter contents. You can use #`https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder#getBindingAdapterPosition()` to get the current adapter position of a ViewHolder. If the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter` that is assigned to the RecyclerView is an adapter that combines other adapters (e.g. `https://developer.android.com/reference/androidx/recyclerview/widget/ConcatAdapter`), you can use the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder#getBindingAdapter()`) to find the position relative to the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter` that bound the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder`.

When the ItemAnimator is running a change animation, there might be 2 ViewHolders with the same layout position representing the same Item. In this case, the updated ViewHolder will be returned.

| Parameters |
|---|---|
| `int position` | The position of the item in the data set of the adapter |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | The ViewHolder at `position` or null if there is no such item |

### findViewHolderForPosition

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0)

```
public @Nullable RecyclerView.ViewHolder [findViewHolderForPosition](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForPosition(int))(int position)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForLayoutPosition(int)` or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#findViewHolderForAdapterPosition(int)`

### fling

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

```
public boolean fling(int velocityX, int velocityY)
```

Begin a standard fling with an initial velocity along each axis in pixels per second. If the velocity given is below the system-defined minimum this method will return false and no fling will occur.

| Parameters |
|---|---|
| `int velocityX` | Initial horizontal velocity in pixels per second |
| `int velocityY` | Initial vertical velocity in pixels per second |

| Returns |
|---|---|
| `boolean` | true if the fling was started, false if the velocity was too low to fling or LayoutManager does not support scrolling in the axis fling is issued. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#canScrollVertically()` |   |
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#canScrollHorizontally()` |   |

### focusSearch

```
public View focusSearch(View focused, int direction)
```

Since RecyclerView is a collection ViewGroup that includes virtual children (items that are in the Adapter but not visible in the UI), it employs a more involved focus search strategy that differs from other ViewGroups.

It first does a focus search within the RecyclerView. If this search finds a View that is in the focus direction with respect to the currently focused View, RecyclerView returns that child as the next focus target. When it cannot find such child, it calls `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#onFocusSearchFailed(android.view.View,int,androidx.recyclerview.widget.RecyclerView.Recycler,androidx.recyclerview.widget.RecyclerView.State)` to layout more Views in the focus search direction. If LayoutManager adds a View that matches the focus search criteria, it will be returned as the focus search result. Otherwise, RecyclerView will call parent to handle the focus search like a regular ViewGroup.

When the direction is `https://developer.android.com/reference/android/view/View.html#FOCUS_FORWARD` or `https://developer.android.com/reference/android/view/View.html#FOCUS_BACKWARD`, a View that is not in the focus direction is still valid focus target which may not be the desired behavior if the Adapter has more children in the focus direction. To handle this case, RecyclerView converts the focus direction to an absolute direction and makes a preliminary focus search in that direction. If there are no Views to gain focus, it will call `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#onFocusSearchFailed(android.view.View,int,androidx.recyclerview.widget.RecyclerView.Recycler,androidx.recyclerview.widget.RecyclerView.State)` before running a focus search with the original (relative) direction. This allows RecyclerView to provide better candidates to the focus search while still allowing the view system to take focus from the RecyclerView and give it to a more suitable child if such child exists.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html focused` | The view that currently has focus |
| `int direction` | One of `https://developer.android.com/reference/android/view/View.html#FOCUS_UP`, `https://developer.android.com/reference/android/view/View.html#FOCUS_DOWN`, `https://developer.android.com/reference/android/view/View.html#FOCUS_LEFT`, `https://developer.android.com/reference/android/view/View.html#FOCUS_RIGHT`, `https://developer.android.com/reference/android/view/View.html#FOCUS_FORWARD`, `https://developer.android.com/reference/android/view/View.html#FOCUS_BACKWARD` or 0 for not applicable. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html` | A new View that can be the next focus after the focused View |

### generateLayoutParams

```
public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)
```

### getAccessibilityClassName

```
public CharSequence getAccessibilityClassName()
```

### getAdapter

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

```
public @Nullable RecyclerView.Adapter getAdapter()
```

Retrieves the previously set adapter or null if no adapter is set.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter` | The previously set adapter |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAdapter(androidx.recyclerview.widget.RecyclerView.Adapter)` |   |

### getBaseline

```
public int getBaseline()
```

Return the offset of the RecyclerView's text baseline from the its top boundary. If the LayoutManager of this RecyclerView does not support baseline alignment, this method returns -1.

| Returns |
|---|---|
| `int` | the offset of the baseline within the RecyclerView's bounds or -1 if baseline alignment is not supported |

### getChildAdapterPosition

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

```
public int getChildAdapterPosition(@NonNull View child)
```

Return the adapter position that the given child view corresponds to.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child` | Child View to query |

| Returns |
|---|---|
| `int` | Adapter position corresponding to the given view or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#NO_POSITION()` |

### getChildItemId

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

```
public long getChildItemId(@NonNull View child)
```

Return the stable item id that the given child view corresponds to.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child` | Child View to query |

| Returns |
|---|---|
| `long` | Item id corresponding to the given view or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#NO_ID()` |

### getChildLayoutPosition

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

```
public int getChildLayoutPosition(@NonNull View child)
```

Return the adapter position of the given child view as of the latest completed layout pass.

This position may not be equal to Item's adapter position if there are pending changes in the adapter which have not been reflected to the layout yet.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child` | Child View to query |

| Returns |
|---|---|
| `int` | Adapter position of the given View as of last layout pass or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#NO_POSITION()` if the View is representing a removed item. |

### getChildPosition

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0)

```
public int [getChildPosition](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildPosition(android.view.View))(@NonNull View child)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildAdapterPosition(android.view.View)` or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getChildLayoutPosition(android.view.View)`.

### getChildViewHolder

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

```
public RecyclerView.ViewHolder getChildViewHolder(@NonNull View child)
```

Retrieve the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` for the given child view.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child` | Child of this RecyclerView to query for its ViewHolder |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` | The child view's ViewHolder |

### getClipToPadding

```
public boolean getClipToPadding()
```

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

By default, children are clipped to the padding of their parent RecyclerView. This clipping behavior is only enabled if padding is non-zero.

name android:clipToPadding

| Returns |
|---|---|
| `boolean` | true if this RecyclerView clips children to its padding and resizes (but doesn't clip) any EdgeEffect to the padded region, false otherwise. |

### getCompatAccessibilityDelegate

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

```
public @Nullable RecyclerViewAccessibilityDelegate getCompatAccessibilityDelegate()
```

Returns the accessibility delegate compatibility implementation used by the RecyclerView.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerViewAccessibilityDelegate` | An instance of AccessibilityDelegateCompat used by RecyclerView |

### getDecoratedBoundsWithMargins

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

```
public void getDecoratedBoundsWithMargins(@NonNull View view, @NonNull Rect outBounds)
```

Returns the bounds of the view including its decoration and margins.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view` | The view element to check |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html outBounds` | A rect that will receive the bounds of the element including its decoration and margins. |

### getEdgeEffectFactory

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

```
public @NonNull RecyclerView.EdgeEffectFactory getEdgeEffectFactory()
```

Retrieves the previously set `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` or the default factory if nothing was set.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` | The previously set `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setEdgeEffectFactory(androidx.recyclerview.widget.RecyclerView.EdgeEffectFactory)` |   |

### getItemAnimator

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

```
public @Nullable RecyclerView.ItemAnimator getItemAnimator()
```

Gets the current ItemAnimator for this RecyclerView. A null return value indicates that there is no animator and that item changes will happen without any animations. By default, RecyclerView instantiates and uses an instance of `https://developer.android.com/reference/androidx/recyclerview/widget/DefaultItemAnimator`.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator` | ItemAnimator The current ItemAnimator. If null, no animations will occur when changes occur to the items in this RecyclerView. |

### getItemDecorationAt

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

```
public @NonNull RecyclerView.ItemDecoration getItemDecorationAt(int index)
```

Returns an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` previously added to this RecyclerView.

| Parameters |
|---|---|
| `int index` | The index position of the desired ItemDecoration. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` | the ItemDecoration at index position |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IndexOutOfBoundsException.html` | on invalid index |

### getItemDecorationCount

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

```
public int getItemDecorationCount()
```

Returns the number of `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` currently added to this RecyclerView.

| Returns |
|---|---|
| `int` | number of ItemDecorations currently added added to this RecyclerView. |

### getLayoutManager

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

```
public @Nullable RecyclerView.LayoutManager getLayoutManager()
```

Return the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` currently responsible for layout policy for this RecyclerView.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` | The currently bound LayoutManager |

### getMaxFlingVelocity

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

```
public int getMaxFlingVelocity()
```

Returns the maximum fling velocity used by this RecyclerView.

| Returns |
|---|---|
| `int` | The maximum fling velocity used by this RecyclerView. |

### getMinFlingVelocity

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

```
public int getMinFlingVelocity()
```

Returns the minimum velocity to start a fling.

| Returns |
|---|---|
| `int` | The minimum velocity to start a fling |

### getOnFlingListener

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

```
public @Nullable RecyclerView.OnFlingListener getOnFlingListener()
```

Get the current `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` from this `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` | The `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` instance currently set (can be null). |

### getPreserveFocusAfterLayout

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

```
public boolean getPreserveFocusAfterLayout()
```

Returns true if the RecyclerView should attempt to preserve currently focused Adapter Item's focus even if the View representing the Item is replaced during a layout calculation.

By default, this value is `true`.

| Returns |
|---|---|
| `boolean` | True if the RecyclerView will try to preserve focused Item after a layout if it loses focus. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setPreserveFocusAfterLayout(boolean)` |   |

### getRecycledViewPool

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

```
public @NonNull RecyclerView.RecycledViewPool getRecycledViewPool()
```

Retrieve this RecyclerView's `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool`. This method will never return null; if no pool is set for this view a new one will be created. See `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setRecycledViewPool(androidx.recyclerview.widget.RecyclerView.RecycledViewPool)` for more information.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool` | The pool used to store recycled item views for reuse. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setRecycledViewPool(androidx.recyclerview.widget.RecyclerView.RecycledViewPool)` |   |

### getScrollState

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

```
public int getScrollState()
```

Return the current scrolling state of the RecyclerView.

| Returns |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_IDLE()`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_DRAGGING()` or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_SETTLING()` |

### hasFixedSize

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

```
public boolean hasFixedSize()
```

| Returns |
|---|---|
| `boolean` | true if the app has specified that changes in adapter content cannot change the size of the RecyclerView itself. |

### hasNestedScrollingParent

```
public boolean hasNestedScrollingParent()
```

### hasNestedScrollingParent

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

```
public boolean hasNestedScrollingParent(int type)
```

Returns true if this view has a nested scrolling parent for the given input type.

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

| Parameters |
|---|---|
| `int type` | the type of input which cause this scroll event |

| Returns |
|---|---|
| `boolean` | whether this view has a nested scrolling parent |

### hasPendingAdapterUpdates

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

```
public boolean hasPendingAdapterUpdates()
```

Returns whether there are pending adapter updates which are not yet applied to the layout.

If this method returns `true`, it means that what user is currently seeing may not reflect them adapter contents (depending on what has changed). You may use this information to defer or cancel some operations.

This method returns true if RecyclerView has not yet calculated the first layout after it is attached to the Window or the Adapter has been replaced.

| Returns |
|---|---|
| `boolean` | True if there are some adapter updates which are not yet reflected to layout or false if layout is up to date. |

### invalidateItemDecorations

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

```
public void invalidateItemDecorations()
```

Invalidates all ItemDecorations. If RecyclerView has item decorations, calling this method will trigger a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#requestLayout()` call.

### isAnimating

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

```
public boolean isAnimating()
```

Returns true if RecyclerView is currently running some animations.

If you want to be notified when animations are finished, use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator#isRunning(androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemAnimatorFinishedListener)`.

| Returns |
|---|---|
| `boolean` | True if there are some item animations currently running or waiting to be started. |

### isAttachedToWindow

```
public boolean isAttachedToWindow()
```

Returns true if RecyclerView is attached to window.

### isComputingLayout

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

```
public boolean isComputingLayout()
```

Returns whether RecyclerView is currently computing a layout.

If this method returns true, it means that RecyclerView is in a lockdown state and any attempt to update adapter contents will result in an exception because adapter contents cannot be changed while RecyclerView is trying to compute the layout.

It is very unlikely that your code will be running during this state as it is called by the framework when a layout traversal happens or RecyclerView starts to scroll in response to system events (touch, accessibility etc).

This case may happen if you have some custom logic to change adapter contents in response to a View callback (e.g. focus change callback) which might be triggered during a layout calculation. In these cases, you should just postpone the change using a Handler or a similar mechanism.

| Returns |
|---|---|
| `boolean` | `true` if RecyclerView is currently computing a layout, `false` otherwise |

### isLayoutFrozen

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

```
public boolean [isLayoutFrozen](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isLayoutFrozen())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#isLayoutSuppressed()`.

| Returns |
|---|---|
| `boolean` | true if layout and scroll are frozen |

### isLayoutSuppressed

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

```
public final boolean isLayoutSuppressed()
```

Returns whether layout and scroll calls on this container are currently being suppressed, due to an earlier call to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#suppressLayout(boolean)`.

| Returns |
|---|---|
| `boolean` | true if layout and scroll are currently suppressed, false otherwise. |

### isNestedScrollingEnabled

```
public boolean isNestedScrollingEnabled()
```

### nestedScrollBy

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

```
public void nestedScrollBy(int x, int y)
```

Same as `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollBy(int,int)`, but also participates in nested scrolling.

| Parameters |
|---|---|
| `int x` | The amount of horizontal scroll requested |
| `int y` | The amount of vertical scroll requested |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild` |   |

### offsetChildrenHorizontal

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

```
public void offsetChildrenHorizontal(@Px int dx)
```

Offset the bounds of all child views by `dx` pixels. Useful for implementing simple scrolling in `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Px int dx` | Horizontal pixel offset to apply to the bounds of all child views |

### offsetChildrenVertical

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

```
public void offsetChildrenVertical(@Px int dy)
```

Offset the bounds of all child views by `dy` pixels. Useful for implementing simple scrolling in `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Px int dy` | Vertical pixel offset to apply to the bounds of all child views |

### onChildAttachedToWindow

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

```
public void onChildAttachedToWindow(@NonNull View child)
```

Called when an item view is attached to this RecyclerView.

Subclasses of RecyclerView may want to perform extra bookkeeping or modifications of child views as they become attached. This will be called before a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` measures or lays out the view and is a good time to perform these changes.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child` | Child view that is now attached to this RecyclerView and its associated window |

### onChildDetachedFromWindow

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

```
public void onChildDetachedFromWindow(@NonNull View child)
```

Called when an item view is detached from this RecyclerView.

Subclasses of RecyclerView may want to perform extra bookkeeping or modifications of child views as they become detached. This will be called as a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` fully detaches the child view from the parent and its window.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html child` | Child view that is now detached from this RecyclerView and its associated window |

### onDraw

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

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

### onGenericMotionEvent

```
public boolean onGenericMotionEvent(MotionEvent event)
```

### onInterceptTouchEvent

```
public boolean onInterceptTouchEvent(MotionEvent e)
```

### onScrollStateChanged

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

```
public void onScrollStateChanged(int state)
```

Called when the scroll state of this RecyclerView changes. Subclasses should use this method to respond to state changes instead of an explicit listener.

This method will always be invoked before listeners, but after the LayoutManager responds to the scroll state change.

| Parameters |
|---|---|
| `int state` | the new scroll state, one of `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_IDLE()`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_DRAGGING()` or `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#SCROLL_STATE_SETTLING()` |

### onScrolled

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

```
public void onScrolled(@Px int dx, @Px int dy)
```

Called when the scroll position of this RecyclerView changes. Subclasses should use this method to respond to scrolling within the adapter's data set instead of an explicit listener.

This method will always be invoked before listeners. If a subclass needs to perform any additional upkeep or bookkeeping after scrolling but before listeners run, this is a good place to do so.

This differs from `https://developer.android.com/reference/android/view/View.html#onScrollChanged(int, int, int, int)` in that it receives the distance scrolled in either direction within the adapter's data set instead of absolute scroll coordinates. Since RecyclerView cannot compute the absolute scroll position from any arbitrary point in the data set, `onScrollChanged` will always receive the current `https://developer.android.com/reference/android/view/View.html#getScrollX()` and `https://developer.android.com/reference/android/view/View.html#getScrollY()` values which do not correspond to the data set scroll position. However, some subclasses may choose to use these fields as special offsets.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Px int dx` | horizontal distance scrolled in pixels |
| `@https://developer.android.com/reference/androidx/annotation/Px int dy` | vertical distance scrolled in pixels |

### onTouchEvent

```
public boolean onTouchEvent(MotionEvent e)
```

### removeItemDecoration

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

```
public void removeItemDecoration(@NonNull RecyclerView.ItemDecoration decor)
```

Remove an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` from this RecyclerView.

The given decoration will no longer impact the measurement and drawing of item views.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration decor` | Decoration to remove |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addItemDecoration(androidx.recyclerview.widget.RecyclerView.ItemDecoration)` |   |

### removeItemDecorationAt

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

```
public void removeItemDecorationAt(int index)
```

Removes the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemDecoration` associated with the supplied index position.

| Parameters |
|---|---|
| `int index` | The index position of the ItemDecoration to be removed. |

### removeOnChildAttachStateChangeListener

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

```
public void removeOnChildAttachStateChangeListener(
    @NonNull RecyclerView.OnChildAttachStateChangeListener listener
)
```

Removes the provided listener from child attached state listeners list.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnChildAttachStateChangeListener listener` | Listener to unregister |

### removeOnItemTouchListener

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

```
public void removeOnItemTouchListener(
    @NonNull RecyclerView.OnItemTouchListener listener
)
```

Remove an `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener`. It will no longer be able to intercept touch events.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnItemTouchListener listener` | Listener to remove |

### removeOnScrollListener

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

```
public void removeOnScrollListener(@NonNull RecyclerView.OnScrollListener listener)
```

Remove a listener that was notified of any changes in scroll state or position.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener listener` | listener to set or null to clear |

### removeRecyclerListener

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

```
public void removeRecyclerListener(@NonNull RecyclerView.RecyclerListener listener)
```

Removes the provided listener from RecyclerListener list.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener listener` | Listener to unregister. |

### requestChildFocus

```
public void requestChildFocus(View child, View focused)
```

### requestChildRectangleOnScreen

```
public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate)
```

### requestDisallowInterceptTouchEvent

```
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
```

### requestLayout

```
public void requestLayout()
```

### scrollBy

```
public void scrollBy(int x, int y)
```

### scrollTo

```
public void scrollTo(int x, int y)
```

### scrollToPosition

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

```
public void scrollToPosition(int position)
```

Convenience method to scroll to a certain position. RecyclerView does not implement scrolling logic, rather forwards the call to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#scrollToPosition(int)`

| Parameters |
|---|---|
| `int position` | Scroll to this adapter position |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#scrollToPosition(int)` |   |

### sendAccessibilityEventUnchecked

```
public void sendAccessibilityEventUnchecked(AccessibilityEvent event)
```

### setAccessibilityDelegateCompat

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

```
public void setAccessibilityDelegateCompat(
    @Nullable RecyclerViewAccessibilityDelegate accessibilityDelegate
)
```

Sets the accessibility delegate compatibility implementation used by RecyclerView.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerViewAccessibilityDelegate accessibilityDelegate` | The accessibility delegate to be used by RecyclerView. |

### setAdapter

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

```
public void setAdapter(@Nullable RecyclerView.Adapter adapter)
```

Set a new adapter to provide child views on demand.

When adapter is changed, all existing views are recycled back to the pool. If the pool has only one adapter, it will be cleared.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter adapter` | The new adapter to set, or null to set no adapter. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#swapAdapter(androidx.recyclerview.widget.RecyclerView.Adapter,boolean)` |   |

### setChildDrawingOrderCallback

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

```
public void setChildDrawingOrderCallback(
    @Nullable RecyclerView.ChildDrawingOrderCallback childDrawingOrderCallback
)
```

Sets the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ChildDrawingOrderCallback` to be used for drawing children.

See `https://developer.android.com/reference/android/view/ViewGroup.html#getChildDrawingOrder(int, int)` for details. Calling this method will always call `https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingOrderEnabled(boolean)`. The parameter will be true if childDrawingOrderCallback is not null, false otherwise.

Note that child drawing order may be overridden by View's elevation.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ChildDrawingOrderCallback childDrawingOrderCallback` | The ChildDrawingOrderCallback to be used by the drawing system. |

### setClipToPadding

```
public void setClipToPadding(boolean clipToPadding)
```

### setDebugAssertionsEnabled

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

```
public static void setDebugAssertionsEnabled(boolean debugAssertionsEnabled)
```

Enable internal assertions about RecyclerView's state and throw exceptions if the assertions are violated.

This is primarily intended to diagnose problems with RecyclerView, and **should not be enabled in production** unless you have a specific reason to do so.

Enabling this may negatively affect performance and/or stability.

| Parameters |
|---|---|
| `boolean debugAssertionsEnabled` | true to enable assertions; false to disable them |

### setEdgeEffectFactory

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

```
public void setEdgeEffectFactory(
    @NonNull RecyclerView.EdgeEffectFactory edgeEffectFactory
)
```

Set a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` for this `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`.

When a new `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` is set, any existing over-scroll effects are cleared and new effects are created as needed using `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory#createEdgeEffect(androidx.recyclerview.widget.RecyclerView,int)`

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory edgeEffectFactory` | The `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.EdgeEffectFactory` instance. |

### setHasFixedSize

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

```
public void setHasFixedSize(boolean hasFixedSize)
```

RecyclerView can perform several optimizations if it can know in advance that RecyclerView's size is not affected by the adapter contents. RecyclerView can still change its size based on other factors (e.g. its parent's size) but this size calculation cannot depend on the size of its children or contents of its adapter (except the number of items in the adapter).

If your use of RecyclerView falls into this category, set this to `true`. It will allow RecyclerView to avoid invalidating the whole layout when its adapter contents change.

| Parameters |
|---|---|
| `boolean hasFixedSize` | true if adapter changes cannot affect the size of the RecyclerView. |

### setItemAnimator

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

```
public void setItemAnimator(@Nullable RecyclerView.ItemAnimator animator)
```

Sets the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator` that will handle animations involving changes to the items in this RecyclerView. By default, RecyclerView instantiates and uses an instance of `https://developer.android.com/reference/androidx/recyclerview/widget/DefaultItemAnimator`. Whether item animations are enabled for the RecyclerView depends on the ItemAnimator and whether the LayoutManager `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#supportsPredictiveItemAnimations()`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ItemAnimator animator` | The ItemAnimator being set. If null, no animations will occur when changes occur to the items in this RecyclerView. |

### setItemViewCacheSize

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

```
public void setItemViewCacheSize(int size)
```

Set the number of offscreen views to retain before adding them to the potentially shared `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getRecycledViewPool()`.

The offscreen view cache stays aware of changes in the attached adapter, allowing a LayoutManager to reuse those views unmodified without needing to return to the adapter to rebind them.

| Parameters |
|---|---|
| `int size` | Number of views to cache offscreen before returning them to the general recycled view pool |

### setLayoutFrozen

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

```
public void [setLayoutFrozen](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setLayoutFrozen(boolean))(boolean frozen)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#suppressLayout(boolean)`.

Enable or disable layout and scroll. After `setLayoutFrozen(true)` is called, Layout requests will be postponed until `setLayoutFrozen(false)` is called; child views are not updated when RecyclerView is frozen, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollBy(int,int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollToPosition(int)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollToPosition(int)` are dropped; TouchEvents and GenericMotionEvents are dropped; `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#onFocusSearchFailed(android.view.View,int,androidx.recyclerview.widget.RecyclerView.Recycler,androidx.recyclerview.widget.RecyclerView.State)` will not be called.

`setLayoutFrozen(true)` does not prevent app from directly calling `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#scrollToPosition(int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#smoothScrollToPosition(androidx.recyclerview.widget.RecyclerView,androidx.recyclerview.widget.RecyclerView.State,int)`.

`https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAdapter(androidx.recyclerview.widget.RecyclerView.Adapter)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#swapAdapter(androidx.recyclerview.widget.RecyclerView.Adapter,boolean)` will automatically stop frozen.

Note: Running ItemAnimator is not stopped automatically, it's caller's responsibility to call ItemAnimator.end().

| Parameters |
|---|---|
| `boolean frozen` | true to freeze layout and scroll, false to re-enable. |

### setLayoutManager

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

```
public void setLayoutManager(@Nullable RecyclerView.LayoutManager layout)
```

Set the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` that this RecyclerView will use.

In contrast to other adapter-backed views such as `https://developer.android.com/reference/android/widget/ListView.html` or `https://developer.android.com/reference/android/widget/GridView.html`, RecyclerView allows client code to provide custom layout arrangements for child views. These arrangements are controlled by the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager`. A LayoutManager must be provided for RecyclerView to function.

Several default strategies are provided for common uses such as lists and grids.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager layout` | LayoutManager to use |

### setLayoutTransition

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

```
public void [setLayoutTransition](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setLayoutTransition(android.animation.LayoutTransition))(LayoutTransition transition)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setItemAnimator(androidx.recyclerview.widget.RecyclerView.ItemAnimator)` ()}.

### setNestedScrollingEnabled

```
public void setNestedScrollingEnabled(boolean enabled)
```

### setOnFlingListener

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

```
public void setOnFlingListener(
    @Nullable RecyclerView.OnFlingListener onFlingListener
)
```

Set a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` for this `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView`.

If the `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` is set then it will receive calls to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#fling(int,int)` and will be able to intercept them.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener onFlingListener` | The `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnFlingListener` instance. |

### setOnScrollListener

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0)

```
public void [setOnScrollListener](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener))(@Nullable RecyclerView.OnScrollListener listener)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeOnScrollListener(androidx.recyclerview.widget.RecyclerView.OnScrollListener)`

Set a listener that will be notified of any changes in scroll state or position.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.OnScrollListener listener` | Listener to set or null to clear |

### setPreserveFocusAfterLayout

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

```
public void setPreserveFocusAfterLayout(boolean preserveFocusAfterLayout)
```

Set whether the RecyclerView should try to keep the same Item focused after a layout calculation or not.

Usually, LayoutManagers keep focused views visible before and after layout but sometimes, views may lose focus during a layout calculation as their state changes or they are replaced with another view due to type change or animation. In these cases, RecyclerView can request focus on the new view automatically.

| Parameters |
|---|---|
| `boolean preserveFocusAfterLayout` | Whether RecyclerView should preserve focused Item during a layout calculations. Defaults to true. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#getPreserveFocusAfterLayout()` |   |

### setRecycledViewPool

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

```
public void setRecycledViewPool(@Nullable RecyclerView.RecycledViewPool pool)
```

Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views. This can be useful if you have multiple RecyclerViews with adapters that use the same view types, for example if you have several data sets with the same kinds of item views displayed by a `https://developer.android.com/reference/androidx/viewpager/widget/ViewPager`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecycledViewPool pool` | Pool to set. If this parameter is null a new pool will be created and used. |

### setRecyclerListener

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.2.0)

```
public void [setRecyclerListener](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener))(@Nullable RecyclerView.RecyclerListener listener)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#addRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#removeRecyclerListener(androidx.recyclerview.widget.RecyclerView.RecyclerListener)`

Register a listener that will be notified whenever a child view is recycled.

This listener will be called when a LayoutManager or the RecyclerView decides that a child view is no longer needed. If an application associates expensive or heavyweight data with item views, this may be a good place to release or free those resources.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.RecyclerListener listener` | Listener to register, or null to clear |

### setScrollingTouchSlop

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

```
public void setScrollingTouchSlop(int slopConstant)
```

Configure the scrolling touch slop for a specific use case. Set up the RecyclerView's scrolling motion threshold based on common usages. Valid arguments are `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#TOUCH_SLOP_DEFAULT()` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#TOUCH_SLOP_PAGING()`.

| Parameters |
|---|---|
| `int slopConstant` | One of the `TOUCH_SLOP_` constants representing the intended usage of this RecyclerView |

### setVerboseLoggingEnabled

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

```
public static void setVerboseLoggingEnabled(boolean verboseLoggingEnabled)
```

Enable verbose logging within RecyclerView itself.

Enabling this may negatively affect performance and reduce the utility of logcat due to high-volume logging. This generally **should not be enabled in production** unless you have a specific reason for doing so.

| Parameters |
|---|---|
| `boolean verboseLoggingEnabled` | true to enable logging; false to disable it |

### setViewCacheExtension

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

```
public void setViewCacheExtension(
    @Nullable RecyclerView.ViewCacheExtension extension
)
```

Sets a new `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewCacheExtension` to be used by the Recycler.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewCacheExtension extension` | ViewCacheExtension to be used or null if you want to clear the existing one. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewCacheExtension#getViewForPositionAndType(androidx.recyclerview.widget.RecyclerView.Recycler,int,int)` |   |

### smoothScrollBy

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

```
public void smoothScrollBy(@Px int dx, @Px int dy)
```

Animate a scroll by the given amount of pixels along either axis.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Px int dx` | Pixels to scroll horizontally |
| `@https://developer.android.com/reference/androidx/annotation/Px int dy` | Pixels to scroll vertically |

### smoothScrollBy

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

```
public void smoothScrollBy(@Px int dx, @Px int dy, @Nullable Interpolator interpolator)
```

Animate a scroll by the given amount of pixels along either axis.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Px int dx` | Pixels to scroll horizontally |
| `@https://developer.android.com/reference/androidx/annotation/Px int dy` | Pixels to scroll vertically |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/animation/Interpolator.html interpolator` | `https://developer.android.com/reference/android/view/animation/Interpolator.html` to be used for scrolling. If it is `null`, RecyclerView will use an internal default interpolator. |

### smoothScrollBy

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

```
public void smoothScrollBy(
    @Px int dx,
    @Px int dy,
    @Nullable Interpolator interpolator,
    int duration
)
```

Smooth scrolls the RecyclerView by a given distance.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Px int dx` | x distance in pixels. |
| `@https://developer.android.com/reference/androidx/annotation/Px int dy` | y distance in pixels. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/animation/Interpolator.html interpolator` | `https://developer.android.com/reference/android/view/animation/Interpolator.html` to be used for scrolling. If it is `null`, RecyclerView will use an internal default interpolator. |
| `int duration` | Duration of the animation in milliseconds. Set to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#UNDEFINED_DURATION()` to have the duration be automatically calculated based on an internally defined standard initial velocity. A duration less than 1 (that does not equal UNDEFINED_DURATION), will result in a call to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollBy(int,int)`. |

### smoothScrollToPosition

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

```
public void smoothScrollToPosition(int position)
```

Starts a smooth scroll to an adapter position.

To support smooth scrolling, you must override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#smoothScrollToPosition(androidx.recyclerview.widget.RecyclerView,androidx.recyclerview.widget.RecyclerView.State,int)` and create a `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.SmoothScroller`.

`https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager` is responsible for creating the actual scroll action. If you want to provide a custom smooth scroll logic, override `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#smoothScrollToPosition(androidx.recyclerview.widget.RecyclerView,androidx.recyclerview.widget.RecyclerView.State,int)` in your LayoutManager.

| Parameters |
|---|---|
| `int position` | The adapter position to scroll to |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#smoothScrollToPosition(androidx.recyclerview.widget.RecyclerView,androidx.recyclerview.widget.RecyclerView.State,int)` |   |

### startNestedScroll

```
public boolean startNestedScroll(int axes)
```

### startNestedScroll

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

```
public boolean startNestedScroll(int axes, int type)
```

Begin a nestable scroll operation along the given axes, for the given input type.

A view starting a nested scroll promises to abide by the following contract:

The view will call startNestedScroll upon initiating a scroll operation. In the case of a touch scroll type this corresponds to the initial `https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_DOWN`. In the case of touch scrolling the nested scroll will be terminated automatically in the same manner as `https://developer.android.com/reference/android/view/ViewParent.html#requestDisallowInterceptTouchEvent(boolean)`. In the event of programmatic scrolling the caller must explicitly call `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#stopNestedScroll(int)` to indicate the end of the nested scroll.

If `startNestedScroll` returns true, a cooperative parent was found. If it returns false the caller may ignore the rest of this contract until the next scroll. Calling startNestedScroll while a nested scroll is already in progress will return true.

At each incremental step of the scroll the caller should invoke `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#dispatchNestedPreScroll(int,int,int[],int[],int)` once it has calculated the requested scrolling delta. If it returns true the nested scrolling parent at least partially consumed the scroll and the caller should adjust the amount it scrolls by.

After applying the remainder of the scroll delta the caller should invoke `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#dispatchNestedScroll(int,int,int,int,int[],int)`, passing both the delta consumed and the delta unconsumed. A nested scrolling parent may treat these values differently. See `https://developer.android.com/reference/androidx/core/view/NestedScrollingParent2#onNestedScroll(android.view.View,int,int,int,int,int)`.

| Parameters |
|---|---|
| `int axes` | Flags consisting of a combination of `https://developer.android.com/reference/androidx/core/view/ViewCompat#SCROLL_AXIS_HORIZONTAL()` and/or `https://developer.android.com/reference/androidx/core/view/ViewCompat#SCROLL_AXIS_VERTICAL()`. |
| `int type` | the type of input which cause this scroll event |

| Returns |
|---|---|
| `boolean` | true if a cooperative parent was found and nested scrolling has been enabled for the current gesture. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#stopNestedScroll(int)` |   |
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#dispatchNestedPreScroll(int,int,int[],int[],int)` |   |
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#dispatchNestedScroll(int,int,int,int,int[],int)` |   |

### stopNestedScroll

```
public void stopNestedScroll()
```

### stopNestedScroll

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

```
public void stopNestedScroll(int type)
```

Stop a nested scroll in progress for the given input type.

Calling this method when a nested scroll is not currently in progress is harmless.

| Parameters |
|---|---|
| `int type` | the type of input which cause this scroll event |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/NestedScrollingChild2#startNestedScroll(int,int)` |   |

### stopScroll

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

```
public void stopScroll()
```

Stop any current scroll in progress, such as one started by `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#fling(int,int)` or a touch-initiated fling.

### suppressLayout

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

```
public final void suppressLayout(boolean suppress)
```

Tells this RecyclerView to suppress all layout and scroll calls until layout suppression is disabled with a later call to suppressLayout(false). When layout suppression is disabled, a requestLayout() call is sent if requestLayout() was attempted while layout was being suppressed.

In addition to the layout suppression `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollBy(int,int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollBy(int,int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#scrollToPosition(int)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#smoothScrollToPosition(int)` are dropped; TouchEvents and GenericMotionEvents are dropped; `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#onFocusSearchFailed(android.view.View,int,androidx.recyclerview.widget.RecyclerView.Recycler,androidx.recyclerview.widget.RecyclerView.State)` will not be called.

`suppressLayout(true)` does not prevent app from directly calling `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#scrollToPosition(int)`, `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.LayoutManager#smoothScrollToPosition(androidx.recyclerview.widget.RecyclerView,androidx.recyclerview.widget.RecyclerView.State,int)`.

`https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAdapter(androidx.recyclerview.widget.RecyclerView.Adapter)` and `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#swapAdapter(androidx.recyclerview.widget.RecyclerView.Adapter,boolean)` will automatically stop suppressing.

Note: Running ItemAnimator is not stopped automatically, it's caller's responsibility to call ItemAnimator.end().

| Parameters |
|---|---|
| `boolean suppress` | true to suppress layout and scroll, false to re-enable. |

### swapAdapter

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

```
public void swapAdapter(
    @Nullable RecyclerView.Adapter adapter,
    boolean removeAndRecycleExistingViews
)
```

Swaps the current adapter with the provided one. It is similar to `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAdapter(androidx.recyclerview.widget.RecyclerView.Adapter)` but assumes existing adapter and the new adapter uses the same `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.ViewHolder` and does not clear the RecycledViewPool.

Note that it still calls onAdapterChanged callbacks.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.Adapter adapter` | The new adapter to set, or null to set no adapter. |
| `boolean removeAndRecycleExistingViews` | If set to true, RecyclerView will recycle all existing Views. If adapters have stable ids and/or you want to animate the disappearing views, you may prefer to set this to false. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView#setAdapter(androidx.recyclerview.widget.RecyclerView.Adapter)` |   |

## Protected methods

### checkLayoutParams

```
protected boolean checkLayoutParams(ViewGroup.LayoutParams p)
```

### dispatchRestoreInstanceState

```
protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container)
```

Override to prevent thawing of any views created by the adapter.

### dispatchSaveInstanceState

```
protected void dispatchSaveInstanceState(SparseArray<Parcelable> container)
```

Override to prevent freezing of any views created by the adapter.

### generateDefaultLayoutParams

```
protected ViewGroup.LayoutParams generateDefaultLayoutParams()
```

### generateLayoutParams

```
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
```

### getChildDrawingOrder

```
protected int getChildDrawingOrder(int childCount, int i)
```

### onAttachedToWindow

```
protected void onAttachedToWindow()
```

### onDetachedFromWindow

```
protected void onDetachedFromWindow()
```

### onLayout

```
protected void onLayout(boolean changed, int l, int t, int r, int b)
```

### onMeasure

```
protected void onMeasure(int widthSpec, int heightSpec)
```

### onRequestFocusInDescendants

```
protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect)
```

### onRestoreInstanceState

```
protected void onRestoreInstanceState(Parcelable state)
```

### onSaveInstanceState

```
protected Parcelable onSaveInstanceState()
```

### onSizeChanged

```
protected void onSizeChanged(int w, int h, int oldw, int oldh)
```

### removeDetachedView

```
protected void removeDetachedView(View child, boolean animate)
```