Created
December 28, 2018 12:03
-
-
Save codingpizza/c8df3f949a412cde4d12142541f4e9d7 to your computer and use it in GitHub Desktop.
Glide version of onBindViewHolder method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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