Glide: Glide Can't load local Vector drawable?

Created on 19 Oct 2016  Â·  3Comments  Â·  Source: bumptech/glide

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?

question

Most helpful comment

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.

All 3 comments

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.

Thanks !

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...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  3Comments

technoir42 picture technoir42  Â·  3Comments

mttmllns picture mttmllns  Â·  3Comments

StefMa picture StefMa  Â·  3Comments

FooBarBacon picture FooBarBacon  Â·  3Comments