<p dir="auto">I want to reuse the previous version image for place holder how can i achieve this?</p>
<p dir="auto">I have one ImageView and a button which, when pressed, loads new image (from disk, not from network) into the same ImageView. Unfortunately it causes the first image to disappear for a second (showing white background) and then it loads the new image. How can I avoid that?<br>
I tried:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(this).load(photoToLoad.getPath()).dontAnimate().dontTransform().into(imageView);"><pre class="notranslate"><code class="notranslate">Glide.with(this).load(photoToLoad.getPath()).dontAnimate().dontTransform().into(imageView);
</code></pre></div>
<p dir="auto">But the "blinking" still exists.<br>
The only solution I can think of is using two ImageViews with load listeners and showing/hiding them once the new image is loaded.</p>
<p dir="auto">Is there any better way to do this?</p>