ListItemViewHolder

A flexible ViewHolder provides utility methods for binding a ListItemLayout based on an item count and position. ListItemViewHolder expects a ListItemLayout as the root itemView, or as a direct child of the itemView.

Constructors

Link copied to clipboard
constructor(@NonNull itemView: View)

Functions

Link copied to clipboard
open fun bind()
Binds the corresponding ListItemLayout to the adapter position by calling updateAppearance.
open fun bind(position: Int)
Binds the corresponding ListItemLayout according to the given .
open fun bind(position: Int, itemCount: Int)
Binds the corresponding ListItemLayout according given position and item count.