ItemGenerator

interface ItemGenerator<T>(source)

List uses this to create each item it displays. The generator provides a mapping between some item T and the View that will represent it in the List.

Functions

Link copied to clipboard
abstract operator fun invoke(list: List<T, *>, item: T, index: Int, current: View? = null): View

Provides a mapping between an item T in the list at index and the View that should be used to render its item.