@ Override public void onBindViewHolder ( RecyclerView . ViewHolder holder , int position , List < Object > payloads ) { //we do not want the binding to happen twice (the legacyBindViewMode if ( ! mLegacyBindViewMode ) { if ( mVerbose ) Log . v ( TAG , "onBindViewHolder: " + position + "/" + holder . getItemViewType ( ) + " isLegacy: false" ) ; //set the R.id.fastadapter_item_adapter tag to the adapter so we always have the proper bound adapter available holder . itemView . setTag ( R . id . fastadapter_item_adapter , this ) ; //now we bind the item to this viewHolder mOnBindViewHolderListener . onBindViewHolder ( holder , position , payloads ) ; } super . onBindViewHolder ( holder , position , payloads ) ; }
Binds the data to the created ViewHolder and sets the listeners to the holder . itemView