public static abstract class RecyclerView.Adapter
extends Object

   ↳ androidx.recyclerview.widget.RecyclerView.Adapter<VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder>

Base class for an Adapter

Adapters provide a binding from an app-specific data set to views that are displayed within a RecyclerView.


Nested classes

enum RecyclerView.Adapter.StateRestorationPolicy

Defines how this Adapter wants to restore its state after a view reconstruction (e.g. 

Public constructors


Public methods

final void bindViewHolder(VH holder, int position)

This method internally calls onBindViewHolder(ViewHolder, int) to update the RecyclerView.ViewHolder contents with the item at the given position and also sets up some private fields to be used by RecyclerView.

final VH