# RecyclerView.Adapter

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#)  

# RecyclerView.Adapter

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

`
public
static

abstract
class
RecyclerView.Adapter
`  
`

extends Object


``


`

|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| java.lang.Object                                                                                                                                                                                              ||
| ↳ | android.support.v7.widget.RecyclerView.Adapter\<VH extends[android.support.v7.widget.RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)\> |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#)Known Direct Subclasses [ItemBridgeAdapter](https://developer.android.com/reference/android/support/v17/leanback/widget/ItemBridgeAdapter),[LeanbackListPreferenceDialogFragment.AdapterMulti](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.AdapterMulti),[LeanbackListPreferenceDialogFragment.AdapterSingle](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.AdapterSingle),[ListAdapter](https://developer.android.com/reference/android/support/v7/recyclerview/extensions/ListAdapter)\<T, VH extends[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)\> |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ItemBridgeAdapter](https://developer.android.com/reference/android/support/v17/leanback/widget/ItemBridgeAdapter)                                                                                                                                 | Bridge from[Presenter](https://developer.android.com/reference/android/support/v17/leanback/widget/Presenter)to[RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter).                                                                                        | | [LeanbackListPreferenceDialogFragment.AdapterMulti](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.AdapterMulti)                                                                      |                                                                                                                                                                                                                                                                                                                       | | [LeanbackListPreferenceDialogFragment.AdapterSingle](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.AdapterSingle)                                                                    |                                                                                                                                                                                                                                                                                                                       | | [ListAdapter](https://developer.android.com/reference/android/support/v7/recyclerview/extensions/ListAdapter)\<T, VH extends[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)\> | [RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter)base class for presenting List data in a[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView), including computing diffs between Lists on a background thread. | |

<br />

*** ** * ** ***

Base class for an Adapter

Adapters provide a binding from an app-specific data set to views that are displayed within a[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView).

<br />

## Summary

|                                                             ### Public constructors                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#RecyclerView.Adapter())`() ` |

|                                                                                                                                                                                                                                                                                                                                    ### Public methods                                                                                                                                                                                                                                                                                                                                     ||
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` final void`    | ` `[bindViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#bindViewHolder(VH, int))`(VH holder, int position) ` This method internally calls[onBindViewHolder(ViewHolder, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int))to update the[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)contents with the item at the given position and also sets up some private fields to be used by RecyclerView.                                                                         |
| ` final VH`      | ` `[createViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#createViewHolder(android.view.ViewGroup, int))`(`[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` parent, int viewType) ` This method calls[onCreateViewHolder(ViewGroup, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onCreateViewHolder(android.view.ViewGroup, int))to create a new[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)and initializes some private fields to be used by RecyclerView. |
| ` abstract int`  | ` `[getItemCount](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#getItemCount())`() ` Returns the total number of items in the data set held by the adapter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` long`          | ` `[getItemId](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#getItemId(int))`(int position) ` Return the stable ID for the item at`position`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` int`           | ` `[getItemViewType](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#getItemViewType(int))`(int position) ` Return the view type of the item at`position`for the purposes of view recycling.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` final boolean` | ` `[hasObservers](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#hasObservers())`() ` Returns true if one or more observers are attached to this adapter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` final boolean` | ` `[hasStableIds](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#hasStableIds())`() ` Returns true if this adapter publishes a unique`long`value that can act as a key for the item at a given position in the data set.                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` final void`    | ` `[notifyDataSetChanged](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyDataSetChanged())`() ` Notify any registered observers that the data set has changed.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` final void`    | ` `[notifyItemChanged](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemChanged(int, java.lang.Object))`(int position, Object payload) ` Notify any registered observers that the item at`position`has changed with an optional payload object.                                                                                                                                                                                                                                                                                                                                                                         |
| ` final void`    | ` `[notifyItemChanged](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemChanged(int))`(int position) ` Notify any registered observers that the item at`position`has changed.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` final void`    | ` `[notifyItemInserted](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemInserted(int))`(int position) ` Notify any registered observers that the item reflected at`position`has been newly inserted.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` final void`    | ` `[notifyItemMoved](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemMoved(int, int))`(int fromPosition, int toPosition) ` Notify any registered observers that the item reflected at`fromPosition`has been moved to`toPosition`.                                                                                                                                                                                                                                                                                                                                                                                      |
| ` final void`    | ` `[notifyItemRangeChanged](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeChanged(int, int, java.lang.Object))`(int positionStart, int itemCount, Object payload) ` Notify any registered observers that the`itemCount`items starting at position`positionStart`have changed.                                                                                                                                                                                                                                                                                                                                   |
| ` final void`    | ` `[notifyItemRangeChanged](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeChanged(int, int))`(int positionStart, int itemCount) ` Notify any registered observers that the`itemCount`items starting at position`positionStart`have changed.                                                                                                                                                                                                                                                                                                                                                                     |
| ` final void`    | ` `[notifyItemRangeInserted](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeInserted(int, int))`(int positionStart, int itemCount) ` Notify any registered observers that the currently reflected`itemCount`items starting at`positionStart`have been newly inserted.                                                                                                                                                                                                                                                                                                                                            |
| ` final void`    | ` `[notifyItemRangeRemoved](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeRemoved(int, int))`(int positionStart, int itemCount) ` Notify any registered observers that the`itemCount`items previously located at`positionStart`have been removed from the data set.                                                                                                                                                                                                                                                                                                                                             |
| ` final void`    | ` `[notifyItemRemoved](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRemoved(int))`(int position) ` Notify any registered observers that the item previously located at`position`has been removed from the data set.                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` void`          | ` `[onAttachedToRecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onAttachedToRecyclerView(android.support.v7.widget.RecyclerView))`(`[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)` recyclerView) ` Called by RecyclerView when it starts observing this Adapter.                                                                                                                                                                                                                                                                                                  |
| ` abstract void` | ` `[onBindViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int))`(VH holder, int position) ` Called by RecyclerView to display the data at the specified position.                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` void`          | ` `[onBindViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>))`(VH holder, int position, List<Object> payloads) ` Called by RecyclerView to display the data at the specified position.                                                                                                                                                                                                                                                                                                                                                                      |
| ` abstract VH`   | ` `[onCreateViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onCreateViewHolder(android.view.ViewGroup, int))`(`[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` parent, int viewType) ` Called when RecyclerView needs a new[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)of the given type to represent an item.                                                                                                                                                                                             |
| ` void`          | ` `[onDetachedFromRecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onDetachedFromRecyclerView(android.support.v7.widget.RecyclerView))`(`[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)` recyclerView) ` Called by RecyclerView when it stops observing this Adapter.                                                                                                                                                                                                                                                                                               |
| ` boolean`       | ` `[onFailedToRecycleView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onFailedToRecycleView(VH))`(VH holder) ` Called by the RecyclerView if a ViewHolder created by this Adapter cannot be recycled due to its transient state.                                                                                                                                                                                                                                                                                                                                                                                            |
| ` void`          | ` `[onViewAttachedToWindow](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onViewAttachedToWindow(VH))`(VH holder) ` Called when a view created by this adapter has been attached to a window.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` void`          | ` `[onViewDetachedFromWindow](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onViewDetachedFromWindow(VH))`(VH holder) ` Called when a view created by this adapter has been detached from its window.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` void`          | ` `[onViewRecycled](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onViewRecycled(VH))`(VH holder) ` Called when a view created by this adapter has been recycled.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` void`          | ` `[registerAdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#registerAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver))`(`[RecyclerView.AdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.AdapterDataObserver)` observer) ` Register a new observer to listen for data changes.                                                                                                                                                                                                                                              |
| ` void`          | ` `[setHasStableIds](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#setHasStableIds(boolean))`(boolean hasStableIds) ` Indicates whether each item in the data set can be represented with a unique identifier of type[Long](https://developer.android.com/reference/java/lang/Long).                                                                                                                                                                                                                                                                                                                                           |
| ` void`          | ` `[unregisterAdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#unregisterAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver))`(`[RecyclerView.AdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.AdapterDataObserver)` observer) ` Unregister an observer currently listening for data changes.                                                                                                                                                                                                                                 |

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

## Public constructors

### RecyclerView.Adapter

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

```
RecyclerView.Adapter ()
```

<br />

<br />

## Public methods

### bindViewHolder

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

```
void bindViewHolder (VH holder, 
                int position)
```

This method internally calls[onBindViewHolder(ViewHolder, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int))to update the[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)contents with the item at the given position and also sets up some private fields to be used by RecyclerView.

<br />

|        Parameters        ||
|------------|--------------|
| `holder`   | `VH` <br />  |
| `position` | `int` <br /> |

**See also:**

- [onBindViewHolder(ViewHolder, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int))  

### createViewHolder

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

```
VH createViewHolder (ViewGroup parent, 
                int viewType)
```

This method calls[onCreateViewHolder(ViewGroup, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onCreateViewHolder(android.view.ViewGroup, int))to create a new[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)and initializes some private fields to be used by RecyclerView.

<br />

|           Parameters           ||
|------------|--------------------|
| `parent`   | `ViewGroup` <br /> |
| `viewType` | `int` <br />       |

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

**See also:**

- [onCreateViewHolder(ViewGroup, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onCreateViewHolder(android.view.ViewGroup, int))  

### getItemCount

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

```
int getItemCount ()
```

Returns the total number of items in the data set held by the adapter.

<br />

|                         Returns                          ||
|-------|---------------------------------------------------|
| `int` | The total number of items in this adapter. <br /> |

### getItemId

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

```
long getItemId (int position)
```

Return the stable ID for the item at`position`. If[hasStableIds()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#hasStableIds())would return false this method should return[NO_ID](https://developer.android.com/reference/android/support/v7/widget/RecyclerView#NO_ID). The default implementation of this method returns[NO_ID](https://developer.android.com/reference/android/support/v7/widget/RecyclerView#NO_ID).

<br />

|                     Parameters                      ||
|------------|-----------------------------------------|
| `position` | `int`: Adapter position to query <br /> |

|                       Returns                        ||
|--------|----------------------------------------------|
| `long` | the stable ID of the item at position <br /> |

### getItemViewType

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

```
int getItemViewType (int position)
```

Return the view type of the item at`position`for the purposes of view recycling.

The default implementation of this method returns 0, making the assumption of a single view type for the adapter. Unlike ListView adapters, types need not be contiguous. Consider using id resources to uniquely identify item view types.

<br />

|                 Parameters                  ||
|------------|---------------------------------|
| `position` | `int`: position to query <br /> |

|                                                                  Returns                                                                   ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------|
| `int` | integer value identifying the type of the view needed to represent the item at`position`. Type codes need not be contiguous. <br /> |

### hasObservers

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

```
boolean hasObservers ()
```

Returns true if one or more observers are attached to this adapter.

<br />

|                       Returns                        ||
|-----------|-------------------------------------------|
| `boolean` | true if this adapter has observers <br /> |

### hasStableIds

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

```
boolean hasStableIds ()
```

Returns true if this adapter publishes a unique`long`value that can act as a key for the item at a given position in the data set. If that item is relocated in the data set, the ID returned for that item should be the same.

<br />

|                            Returns                             ||
|-----------|-----------------------------------------------------|
| `boolean` | true if this adapter's items have stable IDs <br /> |

### notifyDataSetChanged

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

```
void notifyDataSetChanged ()
```

Notify any registered observers that the data set has changed.

There are two different classes of data change events, item changes and structural changes. Item changes are when a single item has its data updated but no positional changes have occurred. Structural changes are when items are inserted, removed or moved within the data set.

This event does not specify what about the data set has changed, forcing any observers to assume that all existing items and structure may no longer be valid. LayoutManagers will be forced to fully rebind and relayout all visible views.

`RecyclerView`will attempt to synthesize visible structural change events for adapters that report that they have[stable IDs](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#hasStableIds())when this method is used. This can help for the purposes of animation and visual object persistence but individual item views will still need to be rebound and relaid out.

If you are writing an adapter it will always be more efficient to use the more specific change events if you can. Rely on`notifyDataSetChanged()`as a last resort.

<br />

<br />

**See also:**

- [notifyItemChanged(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemChanged(int))
- [notifyItemInserted(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemInserted(int))
- [notifyItemRemoved(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRemoved(int))
- [notifyItemRangeChanged(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeChanged(int, int))
- [notifyItemRangeInserted(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeInserted(int, int))
- [notifyItemRangeRemoved(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeRemoved(int, int))  

### notifyItemChanged

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

```
void notifyItemChanged (int position, 
                Object payload)
```

Notify any registered observers that the item at`position`has changed with an optional payload object.

This is an item change event, not a structural change event. It indicates that any reflection of the data at`position`is out of date and should be updated. The item at`position`retains the same identity.

Client can optionally pass a payload for partial change. These payloads will be merged and may be passed to adapter's[onBindViewHolder(ViewHolder, int, List)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>))if the item is already represented by a ViewHolder and it will be rebound to the same ViewHolder. A notifyItemRangeChanged() with null payload will clear all existing payloads on that item and prevent future payload until[onBindViewHolder(ViewHolder, int, List)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>))is called. Adapter should not assume that the payload will always be passed to onBindViewHolder(), e.g. when the view is not attached, the payload will be simply dropped.

<br />

|                                      Parameters                                       ||
|------------|---------------------------------------------------------------------------|
| `position` | `int`: Position of the item that has changed <br />                       |
| `payload`  | `Object`: Optional parameter, use null to identify a "full" update <br /> |

**See also:**

- [notifyItemRangeChanged(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeChanged(int, int))  

### notifyItemChanged

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

```
void notifyItemChanged (int position)
```

Notify any registered observers that the item at`position`has changed. Equivalent to calling`notifyItemChanged(position, null);`.

This is an item change event, not a structural change event. It indicates that any reflection of the data at`position`is out of date and should be updated. The item at`position`retains the same identity.

<br />

<br />

|                           Parameters                            ||
|------------|-----------------------------------------------------|
| `position` | `int`: Position of the item that has changed <br /> |

**See also:**

- [notifyItemRangeChanged(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeChanged(int, int))  

### notifyItemInserted

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

```
void notifyItemInserted (int position)
```

Notify any registered observers that the item reflected at`position`has been newly inserted. The item previously at`position`is now at position`position + 1`.

This is a structural change event. Representations of other existing items in the data set are still considered up to date and will not be rebound, though their positions may be altered.

<br />

<br />

|                                  Parameters                                   ||
|------------|-------------------------------------------------------------------|
| `position` | `int`: Position of the newly inserted item in the data set <br /> |

**See also:**

- [notifyItemRangeInserted(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeInserted(int, int))  

### notifyItemMoved

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

```
void notifyItemMoved (int fromPosition, 
                int toPosition)
```

Notify any registered observers that the item reflected at`fromPosition`has been moved to`toPosition`.

This is a structural change event. Representations of other existing items in the data set are still considered up to date and will not be rebound, though their positions may be altered.

<br />

<br />

|                          Parameters                          ||
|----------------|----------------------------------------------|
| `fromPosition` | `int`: Previous position of the item. <br /> |
| `toPosition`   | `int`: New position of the item. <br />      |

### notifyItemRangeChanged

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

```
void notifyItemRangeChanged (int positionStart, 
                int itemCount, 
                Object payload)
```

Notify any registered observers that the`itemCount`items starting at position`positionStart`have changed. An optional payload can be passed to each changed item.

This is an item change event, not a structural change event. It indicates that any reflection of the data in the given position range is out of date and should be updated. The items in the given range retain the same identity.

Client can optionally pass a payload for partial change. These payloads will be merged and may be passed to adapter's[onBindViewHolder(ViewHolder, int, List)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>))if the item is already represented by a ViewHolder and it will be rebound to the same ViewHolder. A notifyItemRangeChanged() with null payload will clear all existing payloads on that item and prevent future payload until[onBindViewHolder(ViewHolder, int, List)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>))is called. Adapter should not assume that the payload will always be passed to onBindViewHolder(), e.g. when the view is not attached, the payload will be simply dropped.

<br />

|                                         Parameters                                         ||
|-----------------|---------------------------------------------------------------------------|
| `positionStart` | `int`: Position of the first item that has changed <br />                 |
| `itemCount`     | `int`: Number of items that have changed <br />                           |
| `payload`       | `Object`: Optional parameter, use null to identify a "full" update <br /> |

**See also:**

- [notifyItemChanged(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemChanged(int))  

### notifyItemRangeChanged

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

```
void notifyItemRangeChanged (int positionStart, 
                int itemCount)
```

Notify any registered observers that the`itemCount`items starting at position`positionStart`have changed. Equivalent to calling`notifyItemRangeChanged(position, itemCount, null);`.

This is an item change event, not a structural change event. It indicates that any reflection of the data in the given position range is out of date and should be updated. The items in the given range retain the same identity.

<br />

<br />

|                                 Parameters                                 ||
|-----------------|-----------------------------------------------------------|
| `positionStart` | `int`: Position of the first item that has changed <br /> |
| `itemCount`     | `int`: Number of items that have changed <br />           |

**See also:**

- [notifyItemChanged(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemChanged(int))  

### notifyItemRangeInserted

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

```
void notifyItemRangeInserted (int positionStart, 
                int itemCount)
```

Notify any registered observers that the currently reflected`itemCount`items starting at`positionStart`have been newly inserted. The items previously located at`positionStart`and beyond can now be found starting at position`positionStart + itemCount`.

This is a structural change event. Representations of other existing items in the data set are still considered up to date and will not be rebound, though their positions may be altered.

<br />

<br />

|                                 Parameters                                  ||
|-----------------|------------------------------------------------------------|
| `positionStart` | `int`: Position of the first item that was inserted <br /> |
| `itemCount`     | `int`: Number of items inserted <br />                     |

**See also:**

- [notifyItemInserted(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemInserted(int))  

### notifyItemRangeRemoved

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

```
void notifyItemRangeRemoved (int positionStart, 
                int itemCount)
```

Notify any registered observers that the`itemCount`items previously located at`positionStart`have been removed from the data set. The items previously located at and after`positionStart + itemCount`may now be found at`oldPosition - itemCount`.

This is a structural change event. Representations of other existing items in the data set are still considered up to date and will not be rebound, though their positions may be altered.

<br />

<br />

|                                     Parameters                                      ||
|-----------------|--------------------------------------------------------------------|
| `positionStart` | `int`: Previous position of the first item that was removed <br /> |
| `itemCount`     | `int`: Number of items removed from the data set <br />            |

### notifyItemRemoved

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

```
void notifyItemRemoved (int position)
```

Notify any registered observers that the item previously located at`position`has been removed from the data set. The items previously located at and after`position`may now be found at`oldPosition - 1`.

This is a structural change event. Representations of other existing items in the data set are still considered up to date and will not be rebound, though their positions may be altered.

<br />

<br />

|                                Parameters                                ||
|------------|--------------------------------------------------------------|
| `position` | `int`: Position of the item that has now been removed <br /> |

**See also:**

- [notifyItemRangeRemoved(int, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeRemoved(int, int))  

### onAttachedToRecyclerView

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

```
void onAttachedToRecyclerView (RecyclerView recyclerView)
```

Called by RecyclerView when it starts observing this Adapter.

Keep in mind that same adapter may be observed by multiple RecyclerViews.

<br />

|                                               Parameters                                               ||
|----------------|----------------------------------------------------------------------------------------|
| `recyclerView` | `RecyclerView`: The RecyclerView instance which started observing this adapter. <br /> |

**See also:**

- [onDetachedFromRecyclerView(RecyclerView)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onDetachedFromRecyclerView(android.support.v7.widget.RecyclerView))  

### onBindViewHolder

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

```
void onBindViewHolder (VH holder, 
                int position)
```

Called by RecyclerView to display the data at the specified position. This method should update the contents of the[itemView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder#itemView)to reflect the item at the given position.

Note that unlike[ListView](https://developer.android.com/reference/android/widget/ListView.html), RecyclerView will not call this method again if the position of the item changes in the data set unless the item itself is invalidated or the new position cannot be determined. For this reason, you should only use the`position`parameter while acquiring the related data item inside this method and should not keep a copy of it. If you need the position of an item later on (e.g. in a click listener), use[getAdapterPosition()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder#getAdapterPosition())which will have the updated adapter position. Override[onBindViewHolder(ViewHolder, int, List)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>))instead if Adapter can handle efficient partial bind.

<br />

|                                                                  Parameters                                                                  ||
|------------|----------------------------------------------------------------------------------------------------------------------------------|
| `holder`   | `VH`: The ViewHolder which should be updated to represent the contents of the item at the given position in the data set. <br /> |
| `position` | `int`: The position of the item within the adapter's data set. <br />                                                            |

### onBindViewHolder

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

```
void onBindViewHolder (VH holder, 
                int position, 
                List<Object> payloads)
```

Called by RecyclerView to display the data at the specified position. This method should update the contents of the[itemView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder#itemView)to reflect the item at the given position.

Note that unlike[ListView](https://developer.android.com/reference/android/widget/ListView.html), RecyclerView will not call this method again if the position of the item changes in the data set unless the item itself is invalidated or the new position cannot be determined. For this reason, you should only use the`position`parameter while acquiring the related data item inside this method and should not keep a copy of it. If you need the position of an item later on (e.g. in a click listener), use[getAdapterPosition()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder#getAdapterPosition())which will have the updated adapter position.

Partial bind vs full bind:

The payloads parameter is a merge list from[notifyItemChanged(int, Object)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemChanged(int, java.lang.Object))or[notifyItemRangeChanged(int, int, Object)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#notifyItemRangeChanged(int, int, java.lang.Object)). If the payloads list is not empty, the ViewHolder is currently bound to old data and Adapter may run an efficient partial update using the payload info. If the payload is empty, Adapter must run a full bind. Adapter should not assume that the payload passed in notify methods will be received by onBindViewHolder(). For example when the view is not attached to the screen, the payload in notifyItemChange() will be simply dropped.

<br />

|                                                                  Parameters                                                                  ||
|------------|----------------------------------------------------------------------------------------------------------------------------------|
| `holder`   | `VH`: The ViewHolder which should be updated to represent the contents of the item at the given position in the data set. <br /> |
| `position` | `int`: The position of the item within the adapter's data set. <br />                                                            |
| `payloads` | `List`: A non-null list of merged payloads. Can be empty list if requires full update. <br />                                    |

### onCreateViewHolder

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

```
VH onCreateViewHolder (ViewGroup parent, 
                int viewType)
```

Called when RecyclerView needs a new[RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)of the given type to represent an item.

This new ViewHolder should be constructed with a new View that can represent the items of the given type. You can either create a new View manually or inflate it from an XML layout file.

The new ViewHolder will be used to display items of the adapter using[onBindViewHolder(ViewHolder, int, List)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int, java.util.List<java.lang.Object>)). Since it will be re-used to display different items in the data set, it is a good idea to cache references to sub views of the View to avoid unnecessary[findViewById(int)](https://developer.android.com/reference/android/view/View.html#findViewById(int))calls.

<br />

|                                                          Parameters                                                           ||
|------------|-------------------------------------------------------------------------------------------------------------------|
| `parent`   | `ViewGroup`: The ViewGroup into which the new View will be added after it is bound to an adapter position. <br /> |
| `viewType` | `int`: The view type of the new View. <br />                                                                      |

|                                 Returns                                 ||
|------|-------------------------------------------------------------------|
| `VH` | A new ViewHolder that holds a View of the given view type. <br /> |

**See also:**

- [getItemViewType(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#getItemViewType(int))
- [onBindViewHolder(ViewHolder, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int))  

### onDetachedFromRecyclerView

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

```
void onDetachedFromRecyclerView (RecyclerView recyclerView)
```

Called by RecyclerView when it stops observing this Adapter.

<br />

|                                               Parameters                                               ||
|----------------|----------------------------------------------------------------------------------------|
| `recyclerView` | `RecyclerView`: The RecyclerView instance which stopped observing this adapter. <br /> |

**See also:**

- [onAttachedToRecyclerView(RecyclerView)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onAttachedToRecyclerView(android.support.v7.widget.RecyclerView))  

### onFailedToRecycleView

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

```
boolean onFailedToRecycleView (VH holder)
```

Called by the RecyclerView if a ViewHolder created by this Adapter cannot be recycled due to its transient state. Upon receiving this callback, Adapter can clear the animation(s) that effect the View's transient state and return`true`so that the View can be recycled. Keep in mind that the View in question is already removed from the RecyclerView.

In some cases, it is acceptable to recycle a View although it has transient state. Most of the time, this is a case where the transient state will be cleared in[onBindViewHolder(ViewHolder, int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onBindViewHolder(VH, int))call when View is rebound to a new position. For this reason, RecyclerView leaves the decision to the Adapter and uses the return value of this method to decide whether the View should be recycled or not.

Note that when all animations are created by[RecyclerView.ItemAnimator](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator), you should never receive this callback because RecyclerView keeps those Views as children until their animations are complete. This callback is useful when children of the item views create animations which may not be easy to implement using an[RecyclerView.ItemAnimator](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator).

You should*never* fix this issue by calling`holder.itemView.setHasTransientState(false);`unless you've previously called`holder.itemView.setHasTransientState(true);`. Each`View.setHasTransientState(true)`call must be matched by a`View.setHasTransientState(false)`call, otherwise, the state of the View may become inconsistent. You should always prefer to end or cancel animations that are triggering the transient state instead of handling it manually.

<br />

|                                                    Parameters                                                    ||
|----------|--------------------------------------------------------------------------------------------------------|
| `holder` | `VH`: The ViewHolder containing the View that could not be recycled due to its transient state. <br /> |

|                                                                                                                                                                              Returns                                                                                                                                                                               ||
|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | True if the View should be recycled, false otherwise. Note that if this method returns`true`, RecyclerView*will ignore* the transient state of the View and recycle it regardless. If this method returns`false`, RecyclerView will check the View's transient state again before giving a final decision. Default implementation returns false. <br /> |

### onViewAttachedToWindow

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

```
void onViewAttachedToWindow (VH holder)
```

Called when a view created by this adapter has been attached to a window.

This can be used as a reasonable signal that the view is about to be seen by the user. If the adapter previously freed any resources in[onViewDetachedFromWindow](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#onViewDetachedFromWindow(VH))those resources should be restored here.

<br />

<br />

|                        Parameters                        ||
|----------|------------------------------------------------|
| `holder` | `VH`: Holder of the view being attached <br /> |

### onViewDetachedFromWindow

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

```
void onViewDetachedFromWindow (VH holder)
```

Called when a view created by this adapter has been detached from its window.

Becoming detached from the window is not necessarily a permanent condition; the consumer of an Adapter's views may choose to cache views offscreen while they are not visible, attaching and detaching them as appropriate.

<br />

<br />

|                        Parameters                        ||
|----------|------------------------------------------------|
| `holder` | `VH`: Holder of the view being detached <br /> |

### onViewRecycled

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

```
void onViewRecycled (VH holder)
```

Called when a view created by this adapter has been recycled.

A view is recycled when a[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)decides that it no longer needs to be attached to its parent[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView). This can be because it has fallen out of visibility or a set of cached views represented by views still attached to the parent RecyclerView. If an item view has large or expensive data bound to it such as large bitmaps, this may be a good place to release those resources.

RecyclerView calls this method right before clearing ViewHolder's internal data and sending it to RecycledViewPool. This way, if ViewHolder was holding valid information before being recycled, you can call[getAdapterPosition()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder#getAdapterPosition())to get its adapter position.

<br />

|                            Parameters                             ||
|----------|---------------------------------------------------------|
| `holder` | `VH`: The ViewHolder for the view being recycled <br /> |

### registerAdapterDataObserver

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

```
void registerAdapterDataObserver (RecyclerView.AdapterDataObserver observer)
```

Register a new observer to listen for data changes.

The adapter may publish a variety of events describing specific changes. Not all adapters may support all change types and some may fall back to a generic["something changed"](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.AdapterDataObserver#onChanged())event if more specific data is not available.

Components registering observers with an adapter are responsible for[unregistering](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#unregisterAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver))those observers when finished.

<br />

<br />

|                                 Parameters                                  ||
|------------|-----------------------------------------------------------------|
| `observer` | `RecyclerView.AdapterDataObserver`: Observer to register <br /> |

**See also:**

- [unregisterAdapterDataObserver(RecyclerView.AdapterDataObserver)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#unregisterAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver))  

### setHasStableIds

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

```
void setHasStableIds (boolean hasStableIds)
```

Indicates whether each item in the data set can be represented with a unique identifier of type[Long](https://developer.android.com/reference/java/lang/Long).

<br />

|                                         Parameters                                          ||
|----------------|-----------------------------------------------------------------------------|
| `hasStableIds` | `boolean`: Whether items in data set have unique identifiers or not. <br /> |

**See also:**

- [hasStableIds()](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#hasStableIds())
- [getItemId(int)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#getItemId(int))  

### unregisterAdapterDataObserver

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

```
void unregisterAdapterDataObserver (RecyclerView.AdapterDataObserver observer)
```

Unregister an observer currently listening for data changes.

The unregistered observer will no longer receive events about changes to the adapter.

<br />

<br />

|                                  Parameters                                   ||
|------------|-------------------------------------------------------------------|
| `observer` | `RecyclerView.AdapterDataObserver`: Observer to unregister <br /> |

**See also:**

- [registerAdapterDataObserver(RecyclerView.AdapterDataObserver)](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter#registerAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver))  
-

  ## Annotations

  - [RecyclerView.EdgeEffectFactory.EdgeDirection](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.EdgeEffectFactory.EdgeDirection)
  - [RecyclerView.ItemAnimator.AdapterChanges](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.AdapterChanges)
-

  ## Interfaces

  - [ActionMenuView.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView.OnMenuItemClickListener)
  - [PopupMenu.OnDismissListener](https://developer.android.com/reference/android/support/v7/widget/PopupMenu.OnDismissListener)
  - [PopupMenu.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/PopupMenu.OnMenuItemClickListener)
  - [RecyclerView.ChildDrawingOrderCallback](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ChildDrawingOrderCallback)
  - [RecyclerView.ItemAnimator.ItemAnimatorFinishedListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.ItemAnimatorFinishedListener)
  - [RecyclerView.LayoutManager.LayoutPrefetchRegistry](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.LayoutPrefetchRegistry)
  - [RecyclerView.OnChildAttachStateChangeListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnChildAttachStateChangeListener)
  - [RecyclerView.OnItemTouchListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnItemTouchListener)
  - [RecyclerView.RecyclerListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecyclerListener)
  - [RecyclerView.SmoothScroller.ScrollVectorProvider](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.ScrollVectorProvider)
  - [SearchView.OnCloseListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnCloseListener)
  - [SearchView.OnQueryTextListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnQueryTextListener)
  - [SearchView.OnSuggestionListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnSuggestionListener)
  - [ShareActionProvider.OnShareTargetSelectedListener](https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider.OnShareTargetSelectedListener)
  - [ThemedSpinnerAdapter](https://developer.android.com/reference/android/support/v7/widget/ThemedSpinnerAdapter)
  - [Toolbar.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/Toolbar.OnMenuItemClickListener)
-

  ## Classes

  - [ActionMenuView](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView)
  - [ActionMenuView.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView.LayoutParams)
  - [AppCompatAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatAutoCompleteTextView)
  - [AppCompatButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatButton)
  - [AppCompatCheckBox](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox)
  - [AppCompatCheckedTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckedTextView)
  - [AppCompatEditText](https://developer.android.com/reference/android/support/v7/widget/AppCompatEditText)
  - [AppCompatImageButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageButton)
  - [AppCompatImageView](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView)
  - [AppCompatMultiAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatMultiAutoCompleteTextView)
  - [AppCompatRadioButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatRadioButton)
  - [AppCompatRatingBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatRatingBar)
  - [AppCompatSeekBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatSeekBar)
  - [AppCompatSpinner](https://developer.android.com/reference/android/support/v7/widget/AppCompatSpinner)
  - [AppCompatTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatTextView)
  - [CardView](https://developer.android.com/reference/android/support/v7/widget/CardView)
  - [DefaultItemAnimator](https://developer.android.com/reference/android/support/v7/widget/DefaultItemAnimator)
  - [DividerItemDecoration](https://developer.android.com/reference/android/support/v7/widget/DividerItemDecoration)
  - [GridLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout)
  - [GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)
  - [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams)
  - [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)
  - [GridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager)
  - [GridLayoutManager.DefaultSpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.DefaultSpanSizeLookup)
  - [GridLayoutManager.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.LayoutParams)
  - [GridLayoutManager.SpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.SpanSizeLookup)
  - [LinearLayoutCompat](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutCompat)
  - [LinearLayoutCompat.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutCompat.LayoutParams)
  - [LinearLayoutManager](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager)
  - [LinearLayoutManager.LayoutChunkResult](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.LayoutChunkResult)
  - [LinearSmoothScroller](https://developer.android.com/reference/android/support/v7/widget/LinearSmoothScroller)
  - [LinearSnapHelper](https://developer.android.com/reference/android/support/v7/widget/LinearSnapHelper)
  - [ListPopupWindow](https://developer.android.com/reference/android/support/v7/widget/ListPopupWindow)
  - [OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper)
  - [PagerSnapHelper](https://developer.android.com/reference/android/support/v7/widget/PagerSnapHelper)
  - [PopupMenu](https://developer.android.com/reference/android/support/v7/widget/PopupMenu)
  - [RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)
  - [RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter)
  - [RecyclerView.AdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.AdapterDataObserver)
  - [RecyclerView.EdgeEffectFactory](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.EdgeEffectFactory)
  - [RecyclerView.ItemAnimator](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator)
  - [RecyclerView.ItemAnimator.ItemHolderInfo](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.ItemHolderInfo)
  - [RecyclerView.ItemDecoration](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemDecoration)
  - [RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)
  - [RecyclerView.LayoutManager.Properties](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.Properties)
  - [RecyclerView.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutParams)
  - [RecyclerView.OnFlingListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnFlingListener)
  - [RecyclerView.OnScrollListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnScrollListener)
  - [RecyclerView.RecycledViewPool](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecycledViewPool)
  - [RecyclerView.Recycler](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Recycler)
  - [RecyclerView.SimpleOnItemTouchListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SimpleOnItemTouchListener)
  - [RecyclerView.SmoothScroller](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller)
  - [RecyclerView.SmoothScroller.Action](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.Action)
  - [RecyclerView.State](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.State)
  - [RecyclerView.ViewCacheExtension](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewCacheExtension)
  - [RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)
  - [RecyclerViewAccessibilityDelegate](https://developer.android.com/reference/android/support/v7/widget/RecyclerViewAccessibilityDelegate)
  - [RecyclerViewAccessibilityDelegate.ItemDelegate](https://developer.android.com/reference/android/support/v7/widget/RecyclerViewAccessibilityDelegate.ItemDelegate)
  - [SearchView](https://developer.android.com/reference/android/support/v7/widget/SearchView)
  - [ShareActionProvider](https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider)
  - [SimpleItemAnimator](https://developer.android.com/reference/android/support/v7/widget/SimpleItemAnimator)
  - [SnapHelper](https://developer.android.com/reference/android/support/v7/widget/SnapHelper)
  - [StaggeredGridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager)
  - [StaggeredGridLayoutManager.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager.LayoutParams)
  - [SwitchCompat](https://developer.android.com/reference/android/support/v7/widget/SwitchCompat)
  - [ThemedSpinnerAdapter.Helper](https://developer.android.com/reference/android/support/v7/widget/ThemedSpinnerAdapter.Helper)
  - [Toolbar](https://developer.android.com/reference/android/support/v7/widget/Toolbar)
  - [Toolbar.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/Toolbar.LayoutParams)
  - [Toolbar.SavedState](https://developer.android.com/reference/android/support/v7/widget/Toolbar.SavedState)
  - [TooltipCompat](https://developer.android.com/reference/android/support/v7/widget/TooltipCompat)