Skip to content
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

Glide Can't load local Vector drawable? #1532

Closed
kooeasy opened this issue Oct 19, 2016 · 3 comments
Closed

Glide Can't load local Vector drawable? #1532

kooeasy opened this issue Oct 19, 2016 · 3 comments
Labels

Comments

@kooeasy
Copy link

kooeasy commented Oct 19, 2016

Glide Can't load local Vector drawable?

Glide.with(this) .load(R.drawable.ic_1f3ad) .into(image);

this ic_1f3ad is a Vector drawable!

I use 3.7.0 or 4.0.0-SNAPSHOT can't load !

I want know this is glide can't support or my fault?

@TWiStErRob
Copy link
Collaborator

The result would be no different than image.setImageResource(R.drawable.ic_1f3ad).
This is a duplicate of #794, tracking issue is #350.
Try load(null).fallback(R.drawable.ic_1f3ad) or load("").error(R.drawable.ic_1f3ad) if you really want to use Glide.
Note: I've been able to use animated vectors as placeholders: #1261
Let me know if you need help.

@kooeasy
Copy link
Author

kooeasy commented Oct 19, 2016

Thanks !

@AndroidDeveloperLB
Copy link

Is it possible to load VectorDrawable from byte array or file outside of current app, though?
The only thing I've found is this, but it uses reflections on private API...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants