In a recyclerView where you need to load images from an array of drawables, which is better for smoother scrolling?
@Override
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
holder.iconImageView.setImageDrawable(drawables[position]);
}
or
@Override
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
Glide.with(mContext).load(drawables[position]).into(holder.iconImageView);
}
I don't understand how or what Glide is, from what I've read it's this magical thing that makes scrolling smoother. Is it true in this case? And is the Glide code I'm using above sufficient?