title: Glide: How to preload Images and get confirmation that it is stored in cache?
body: <p>I have a <code>RecyclerView</code> and inside of each row I have <code>ImageView</code> where I'm using <code>Glide</code> to set an image from URL. The problem is when the first time I open and try to scroll <code>RecyclerView</code> then only that images are downloaded. Obviously it'll save to cache and next time it won't be downloaded again.</p>
  <p>I'd like images to be preloaded for the first time so that when a user will scroll he/she won't have to wait.</p>
  <p>Please see the code:</p>
  <pre><code>@Override
  public void onBindViewHolder(PostAdapter.MyViewHolder holder, int position) {
      try {
          Post post = postArrayList.get(position);
          if (checkNull(post.getDesc())) {
              setText(holder.postDesc, postArrayList.get(position).getDesc());
          } else if (checkNull(post.getUrl())) {
              setImage(holder.postImage, postArrayList.get(position).getUrl());
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
  
  }
  
  private void setImage(ImageView image1, String str) {
      image1.setVisibility(View.VISIBLE);
      Glide.with(context).load(str).
      diskCacheStrategy(DiskCacheStrategy.ALL)
              .into(image1);
  }
  </code></pre>