on Create View Holder

abstract override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): DevItemViewHolder<Data>

Method to declare View Holder, if you use more than one ViewType, declare desired View Holder based on ViewType in this method

Return

View Holder of desired item

Parameters

parent

ViewGroup of item

viewType

ViewType of item

Sources

Link copied to clipboard