belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
RecyclerView.Adapter
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> |
![]() |
Base class for an Adapter
Adapters provide a binding from an app-specific data set to views that are displayed
within a RecyclerView
.
Summary
Public constructors | |
---|---|
RecyclerView.Adapter()
|
Public methods | |
---|---|
final
void
|
bindViewHolder(VH holder, int position)
This method internally calls |
final
VH
|
createViewHolder(ViewGroup parent, int viewType)
This method calls |
abstract
int
|
getItemCount()
Returns the total number of items in the data set held by the adapter. |
long
|
getItemId(int position)
Return the stable ID for the item at |
int
|
getItemViewType(int position)
Return the view type of the item at |
final
boolean
|
hasObservers()
Returns true if one or more observers are attached to this adapter. |
final
boolean
|
hasStableIds()
Returns true if this adapter publishes a unique |
final
void
|
notifyDataSetChanged()
Notify any registered observers that the data set has changed. |
final
void
|
notifyItemChanged(int position, Object payload)
Notify any registered observers that the item at |
final
void
|
notifyItemChanged(int position)
Notify any registered observers that th |