title: How to use Glide to load an array of images in an Adapter?
body: <p>With my current setup, it causes the RecyclerView to lag since I have a lot of resource images. How do I use Glide to load the array of images instead of <strong>holder.item_img.setImageResource(INF.getImage_id());</strong> in my ViewHolder?</p>
  
  <pre><code>ArrayList&lt;Information&gt; information = new ArrayList&lt;Information&gt;();
  Context ctx;
  
  public InformationAdapter(ArrayList&lt;Information&gt; information, Context ctx)
  {
      this.information = information;
      this.ctx = ctx;
  }
  
  @Override
  public InformationViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_view_layout,parent,false);
      InformationViewHolder informationViewHolder = new InformationViewHolder(view,ctx,information);
      return informationViewHolder;
  }
  
  @Override
  public void onBindViewHolder(InformationViewHolder holder, int position) {
      Information INF = information.get(position);
      holder.item_img.setImageResource(INF.getImage_id());
      holder.item_name.setText(INF.getName());
      holder.item_location.setText(INF.getLocation());
  
  }
  
  ...
  </code></pre>