onCreateViewHolder

open fun onCreateViewHolder(layoutInflater: LayoutInflater, parent: ViewGroup): ViewBinding?

Inflate custom view here using view binding. It's mapped with RecyclerView.Adapter#onCreateViewHolder.

Return

ViewBinding of the custom view.

Parameters

layoutInflater

for inflating layout.

parent

the parent of the generated hierarchy.