question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does Coil load into Drawable?

See original GitHub issue

I currently have the issue that I need to render html with images into TextViews. This is possible with the Html.ImageGetter. However when I load the html the images are not loaded yet, so I display a placeholder as image and want to load the images by triggering coil. I can do this by using a drawable that first displayes a placeholder and then render into that drawable later with the image loaded by coil. What I’ve seen so far is that people created their own DrawablePlaceholder where an arbitrary image loading mechanism could render the image into: https://gist.github.com/rajeefmk/beb1b79363c12041da7fd540bcf27765

However I wonder if Coil already has such a Drawable placeholder?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
theScrabicommented, Mar 30, 2020

😄 thank you Same goes to you guys 😃

2reactions
Jawnnypoocommented, Mar 25, 2020

BTW @theScrabi , big fan of your work on NewPipe 😄 Here is an implementation of an Html.Getter that I created and am using in a few projects:

https://github.com/Commit451/coil-imagegetter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading local drawables with Coil Compose - android
You don't need coil to load local resources. You can use system painterResource : Image ...
Read more >
Getting Started - Coil
All requests should set data (i.e. url, uri, file, drawable resource, etc.). This is what the ImageLoader will use to decide where to...
Read more >
Taking a look at Coil.. An image loading library for Kotlin on…
Well, according to their documentation Coil stands for Coroutine Image Loader and it is an image loading library backed by Kotlin Coroutines.
Read more >
How to Use COIL Image Loader Library in Android Apps?
COIL is an acronym for Coroutine Image Loader. COIL is one of the famous image loading libraries from URLs in Android.
Read more >
Image Processing with Coil in Android
Coil supports three main sources of images. A load() method is used to display the images. This is an extension function that extends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found