onCreateViewHolder
Implementation of Adapter.onCreateViewHolder(ViewGroup, int) that determines if the list item is a group or a child and calls through to the appropriate implementation of either onCreateGroupViewHolder or onCreateChildViewHolder}.
Return
Either a new GroupViewHolder or a new ChildViewHolder that holds a android.view.View of the given view type.
Parameters
parent
The ViewGroup into which the new android.view.View will be added after it is bound to an adapter position.
viewType
The view type of the new android.view.View.