SupportListAdapter
Core implementation for handling complex logic for Lists 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
Properties
An observer to listen for clicks on clickable items
Special dispatcher controller for custom logic handling
Get currently set animation type for recycler view holder items
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
Mapper for adapters to converting models to recycler items
Configuration for the state based footer
Assigned if the current adapter supports needs to supports action mode
Functions
Applies an animation on a SupportViewHolder when it is seen for the first time
Binds view holder by view type at position
Should provide the required view holder, this function is a substitute for androidx.recyclerview.widget.RecyclerView.Adapter.onCreateViewHolder which now has extended functionality
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.
Should return the span size for the item at position, when called from androidx.recyclerview.widget.GridLayoutManager will be the span size for the item at the position.
Used to get stable ids for androidx.recyclerview.widget.RecyclerView.Adapter but only if androidx.recyclerview.widget.RecyclerView.Adapter.setHasStableIds is set to true.
Check if ISupportAdapter ->SupportListAdapter 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
Notifies that ON_PAUSE
event occurred.
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
Initial implementation is only specific for group types of recyclers, in order to customize this an override is required.
Sets loading state
Create a ConcatAdapter with the provided SupportLoadStateAdapters
Create a ConcatAdapter with the provided SupportLoadStateAdapters
Create a ConcatAdapter with the provided SupportLoadStateAdapters