Skip to content

Instantly share code, notes, and snippets.

@codingpizza
Created December 28, 2018 12:03
Show Gist options
  • Save codingpizza/c8df3f949a412cde4d12142541f4e9d7 to your computer and use it in GitHub Desktop.
Save codingpizza/c8df3f949a412cde4d12142541f4e9d7 to your computer and use it in GitHub Desktop.
Glide version of onBindViewHolder method
@Override
public void onBindViewHolder(MyViewHolder holder, int position) {
holder.mPizzaName.setText(mNameList.get(position).getName());
holder.mPizzaDescription.setText(mNameList.get(position).getDescription());
Glide.with(holder.itemView)
.load(mNameList.get(position).getImage())
.into(holder.mPizzaImage);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment