-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support loading images from AssetManager #10
Comments
Interesting! |
It seems like in other image loading libraries, |
Good point. Currently, Coil uses We could support this by writing a new |
Created a new issue to support parsing Strings as Uris here: #24 |
Is your feature request related to a problem? Please describe.
There's a very specific type of
Uri
on Android in the form offile:///android_asset/your_asset.jpg
which, despite itsfile://
prefix, cannot be opened withContentResolver.openInputStream()
but instead must be opened usingAssetManager
.This is true for all Uris in the form of
ContentResolver.SCHEME_FILE + ":///android_asset/"
.Describe the solution you'd like
I'd like to be able to use:
And have it automatically use
AssetManager
. I'd also be fine with using theload(Uri)
version, although that would be a difference from Picasso and Glide (see examples below).Additional context
Assets are already supported by Picasso:
and Glide
The text was updated successfully, but these errors were encountered: