@NonNull open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): ViewHolder
the method based on view type to render a view and associate the view with respective view holder
parent
- ViewGroup: view group to hold current item view
viewType
- Int: type of layout to be rendered for current view
Return
ViewHolder: ViewHolder that associated with created view
See Also
#getItemViewType(int)