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

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getItemViewType
Link copied to clipboard
abstract fun getItemViewType(position: Int, card: Card): Int
Called when RecyclerView.Adapter.getItemViewType is invoked by the actual adapter.
hashCode
Link copied to clipboard
open fun hashCode(): Int
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.
toString
Link copied to clipboard
open fun toString(): String

Inheritors

DefaultCardAdapter
Link copied to clipboard