title: Set ImageView`s size with Glide for each item in RecyclerView, the image size is changing
body: <p>In RecyclerView, I want to load images for each item using their original aspect ratio. The server don't return the size of image.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>@Override
  public void onBindViewHolder(K holder, int position) {
      // ....
      Glide.with(mContext)
           .load(imgUrls.get(position))
           .listener(new RequestListener&lt;String, GlideDrawable&gt;(){
              // ...
              @Override
              public boolean onResourceReady(GlideDrawable resource, String model, Target&lt;GlideDrawable&gt; target, boolean isFromMemoryCache, boolean isFirstResource){
                  int drawableWidth = resource.getIntrinsicWidth();
                  int drawableHeight = resource.getIntrinsicHeight();
                  double ratio = (drawableWidth * 1.0) / (drawableHeight * 1.0);
                  // depend on the ratio to set the imageView`s LayoutParams to change the imageView`s size.
                  .........
                  layoutParams.width = xx;
                  layoutParams.height = xx;
                  imageView.setLayoutParams(layoutParams);
                  return false;
              }
           })
           .into(imageView);
  }
  </code></pre>
  
  <p>But when I have scrolled the RecyclerView or refreshed the RecyclerView, the value of drawableWidth was changed, so the size of the imageView was changed that is not expected.</p>
  
  <p>What is the right way to set ImageView's size in RecyclerView?</p>