In onCreateViewHolder(ViewGroup parent, int viewType)
I do not understand the purpose of the parent
and viewType
parameters.
Can anyone explain with an example?
In my RecyclerView
, I am using an ImageView
and a TextView
to display an item of the RecyclerView
.