<p dir="auto">Is there a way to run code when the picture is finished loading? Please help. Thanks</p>
<p dir="auto">Please don't close this issue until I get this working, as this is my third time having to ask the same question.</p>
<p dir="auto">I cannot get this to work. I have followed this tutorial (<a href="https://futurestud.io/tutorials/glide-callbacks-simpletarget-and-viewtarget-for-custom-view-classes" rel="nofollow">https://futurestud.io/tutorials/glide-callbacks-simpletarget-and-viewtarget-for-custom-view-classes</a>), but it still does not work. Maybe the tutorial isn't updated for Glide v4. I cannot find .asBitmap(), which is required for this to work according to the tutorial. Also, with the .into(target), I am getting an error message, as shown in the picture below. Please help as I need this working in order to release my app. Thank you.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15038444/29533926-0a83d5aa-8682-11e7-9802-901ba0036857.png"><img width="736" alt="screen shot 2017-08-21 at 3 03 28 pm" src="https://user-images.githubusercontent.com/15038444/29533926-0a83d5aa-8682-11e7-9802-901ba0036857.png" style="max-width: 100%;"></a></p>
<p dir="auto">This is the code I have right now:<br>
`val target = object : SimpleTarget() {</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="                    override fun onResourceReady(resource: Bitmap?, transition: Transition&lt;in Bitmap&gt;?) {
                        //Image Loaded

                        img_Post.setImageBitmap(resource)
                        view_Loading.hide()
                    }
                }"><pre class="notranslate"><code class="notranslate">                    override fun onResourceReady(resource: Bitmap?, transition: Transition&lt;in Bitmap&gt;?) {
                        //Image Loaded

                        img_Post.setImageBitmap(resource)
                        view_Loading.hide()
                    }
                }
</code></pre></div>
<p dir="auto">Glide.with(layout).load(url).into(target)`</p>