<p dir="auto">Example: I put a ImageView, set <code class="notranslate">scaletype="center"</code> (will not scale), but when I use</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(getApplicationContext()).load(url).placeholder(R.drawable.ic_default).into(imageV);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getApplicationContext</span>()).<span class="pl-en">load</span>(<span class="pl-s1">url</span>).<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">ic_default</span>).<span class="pl-en">into</span>(<span class="pl-s1">imageV</span>);</pre></div>
<p dir="auto">seem that the scaletype been changed, because I found that the placeholder icon been filled the whole imageview size.</p>
<p dir="auto">Hi</p>
<p dir="auto">I am displaying images in a recyclerview via Glide.  The images are different widths and heights and are being pulled from the server.</p>
<p dir="auto">The images all display fine until the views begin to be recycled.  The image view has <code class="notranslate">android:layout_width="wrap_content" android:layout_height="wrap_content"</code>  I have tried to sort this by setting <code class="notranslate">holder.getImageView().setImageDrawable(null);</code> in ` public void onBindViewHolder'.  This didn't work.  I have found item  public void <strong><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="65894232" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/388" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/388/hovercard" href="https://github.com/bumptech/glide/issues/388">#388</a></strong> and as that poster had a custom image view you suggested using ViewTarget and delaying size determination.  As I'm using a standard ImageView the ImageViewTarget doesn't have a get size method so Im not sure how to apply this to my case</p>
<p dir="auto">If you could offer any advice..here's my post on SO  <a href="http://stackoverflow.com/questions/33283493/recyclerview-recycled-viewholder-image-view-wrong-size" rel="nofollow">http://stackoverflow.com/questions/33283493/recyclerview-recycled-viewholder-image-view-wrong-size</a></p>
<p dir="auto">Regards,<br>
Gary</p>