Exchange

How to Load Image From Url into Adapter ImageView with Glide - Android Studio

 



@Override
protected void onBindViewHolder(@NonNull myViewholder holder, int position, @NonNull ProductModel model) {


Glide.with(mContext).load(model.getImage()).placeholder(R.drawable.ic_image).into(holder.pImage);


}


in build.gradle(:app)


implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

Post a Comment

0 Comments