SupportPagedListAdapter
Core implementation for handling complex logic for androidx.paging.PagedListAdapter and androidx.recyclerview.widget.RecyclerView.ViewHolder binding logic
Since
v1.2.0
Parameters
Callback for calculating the diff between two non-null items in a list.
Sets PagedListAdapter.setHasStableIds which is defaulted to true
See also
Properties
Internal use only indicator for checking against the use of a concat adapter for headers and footers, which is in turn used to figure out how to get the view holder id
Functions
Return the stable ID for the item at position. If hasStableIds would return false this method should return RecyclerView.NO_ID.
Return the view type of the item at position for the purposes of view recycling.
Check if ISupportAdapter ->PagedListAdapter contains any list items
Informs view adapter of changes related to it's view holder
Called by RecyclerView when it starts observing this Adapter.
Calls the the recycler view holder to perform view binding, and selection mode decorations are set up
Overridden implementation createDefaultViewHolder calls to resolve the view holder type
Called when a view created by this adapter has been attached to a window.
Called when a view created by this adapter has been detached from its window.
Calls the the recycler view holder impl to perform view recycling
Returns the non-nullable item for this adapter