onCreateViewHolder

open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): UsersAdapter.UserViewHolder

Creates and returns a new UserViewHolder instance for the RecyclerView.

Return

A new UserViewHolder instance.

Parameters

parent

The parent ViewGroup in which the ViewHolder will be displayed.

viewType

The type of view to be created (not used in this implementation).