IContent Cards View Binding Handler
An interface to define how the cards display in the ContentCardsFragment. The methods here closely mirror those of RecyclerView.Adapter and are called as part of those methods in the ContentCardAdapter.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onBindViewHolder(context: Context, cards: List<Card>, viewHolder: ContentCardViewHolder, adapterPosition: Int)
Called to display the data at the specified adapter position. This method should update the contents of the ContentCardViewHolder.itemView to reflect the item at the given adapter position.
Link copied to clipboard
abstract fun onCreateViewHolder(context: Context, cards: List<Card>, viewGroup: ViewGroup, viewType: Int): ContentCardViewHolder
Creates an ContentCardViewHolder of the given type to represent an item in the ContentCards. You can create a new View manually or inflate it from an XML layout file.
Link copied to clipboard