Does Coil load into Drawable?
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😄 thank you Same goes to you guys 😃
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