title: Circular progress bar as Glide Placeholder
body: <p>I am showing images from server with glide.
  I want to show a circular progress bar as placeholder. I tried this method from <a href="https://stackoverflow.com/a/35306315/8176783">progress-bar-while-loading-image-using-glide</a> But it is not working.
  What am I missing ?</p>
  
  <p><strong>I am showing a recyclerview in activity. When user click onItem, image open in a fragment that contains Viewpager. I'm loading images in viewpager with glide.</strong></p>
  
  <p>Adapter Class - </p>
  
  <pre><code>public class MyViewPagerAdapter extends PagerAdapter {
  private ArrayList&lt;Object&gt; imagesList = new ArrayList&lt;&gt;();
  public MyViewPagerAdapter(ArrayList&lt;Object&gt; images) {
      this.imagesList = images;
  }
  
  @NonNull
  @SuppressLint("ClickableViewAccessibility")
  @Override
  public Object instantiateItem(@NonNull final ViewGroup container, int position) {
      Object recyclerViewItem = imagesList.get(position);
      final View view = LayoutInflater.from(container.getContext()).inflate(R.layout.util_image_fullscreen_preview, container, false);
      final TouchImageView imageViewPreview = view.findViewById(R.id.image_preview);
     CircularProgressDrawable circularProgressDrawable = 
                  new CircularProgressDrawable(container.getContext());
  circularProgressDrawable.start();
  
          Photos image = (Photos) imagesList.get(position);
          GlideApp
              .with(container.getContext())
              .asBitmap()
              .load(advertiser.getUrl())
              .placeholder(circularProgressDrawable)
              .fitCenter().diskCacheStrategy(DiskCacheStrategy.ALL)
              .into(imageViewPreview);
  
  
      container.addView(view);
      return view;
  
  }
  
  @Override
  public int getCount() {
      return imagesList.size();
  
  }
  
  
  @Override
  public boolean isViewFromObject(View view, Object obj) {
      return view.equals(obj);
  }
  
  
  @Override
  public void destroyItem(ViewGroup container, int position, Object object) {
      container.removeView((View) object);
  }
  </code></pre>
  
  <p>}</p>