Since we overwritten the onBindViewHolder(ViewHolder holder, int position, List <Object> payloads), so RecyclerView will not call onBindViewHolder(ViewHolder holder, int position), onBindViewHolder(ViewHolder holder, int position) becomes an island, then we can turn it to the payloads method. This makes it easier for outside calls.
Since we overwritten the
onBindViewHolder(ViewHolder holder, int position, List <Object> payloads)
, soRecyclerView
will not callonBindViewHolder(ViewHolder holder, int position)
,onBindViewHolder(ViewHolder holder, int position)
becomes an island, then we can turn it to the payloads method. This makes it easier for outside calls.