Recycler View Manager
class RecyclerViewManager<VH : RecyclerView.ViewHolder, T>(val adapter: RecyclerView.Adapter<VH>, itemComparator: ItemComparator<T>, itemContentComparator: ItemContentComparator<T>)
Utility class to simplify recycler view notifications when content changes. This class detects changes between provided lists of data and notifies the adapter accordingly so that proper animations are drawn to add, remove or move items.
Parameters
VH
type of view holder used by the adapter.
T
type of data held by the adapter.
Constructors
Link copied to clipboard
constructor(adapter: RecyclerView.Adapter<VH>, itemComparator: ItemComparator<T>, itemContentComparator: ItemContentComparator<T>)