CardAdapter

abstract class CardAdapter

Adapter contract for customising the Recycler View adapter.

Author

Umang Chamaria

Since

1.0.0

Constructors

Link copied to clipboard
constructor()

Functions

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

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

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.

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

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