abstract class BasePagedListAdapter<T> : PagedListAdapter<T, ViewHolder>
Base paged list adapter to standardize and simplify initialization for this component.
itemsSame
- Function called to check whether two objects represent the same item.
contentsSame
- Function called to check whether two items have the same data.
See Also
<init> |
Base paged list adapter to standardize and simplify initialization for this component. BasePagedListAdapter(itemsSame: (T, T) -> Boolean, contentsSame: (T, T) -> Boolean) |
onAttachedToRecyclerView |
Called by RecyclerView when it starts observing this Adapter. open fun onAttachedToRecyclerView(recyclerView: RecyclerView): Unit |
onCreateViewHolder |
Called when RecyclerView needs a new RecyclerView.ViewHolder of the given type to represent an item. abstract fun onCreateViewHolder(parent: ViewGroup, inflater: LayoutInflater, viewType: Int): ViewHolder open fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder |
onDetachedFromRecyclerView |
Called by RecyclerView when it stops observing this Adapter. open fun onDetachedFromRecyclerView(recyclerView: RecyclerView): Unit |
submitList |
Set the new list to be displayed. open fun submitList(pagedList: PagedList<T>?): Unit |