CardAdapter

abstract class CardAdapter

Adapter contract for customising the Recycler View adapter.

Author

Umang Chamaria Date: 28/04/20

Since

10.1.00

Constructors

CardAdapter
Link copied to clipboard
fun CardAdapter()

Functions

getItemViewType
Link copied to clipboard
abstract fun getItemViewType(position: Int, card: Card): Int

Called when RecyclerView.Adapter.getItemViewType is invoked by the actual adapter.

onBindViewHolder
Link copied to clipboard
abstract fun onBindViewHolder(viewHolder: ViewHolder, position: Int, card: Card, cardListAdapter: CardListAdapter)

Called when RecyclerView.Adapter.onBindViewHolder is invoked by the actual adapter.

onCreateViewHolder
Link copied to clipboard
abstract fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): ViewHolder

Called when RecyclerView.Adapter.onCreateViewHolder is invoked by the the actual adapter.

Inheritors

DefaultCardAdapter
Link copied to clipboard