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
Should support VectorDrawable resource id #1463
Comments
Where do you want to use VectorDrawable resource IDs? Right now, Fresco will only load bitmaps for the primary image but for placeholders, backgrounds, overlays, loading drawables and failures they should work. If you could give a small code snippet we can double check what your issue is. |
|
|
|
DraweeViews support several XML attributes that load images from resources. The best and easiest way to extend functionality would be using
instead of plain
(Optimizations welcome.) |
+1! |
@consp1racy please use ContextCompat to support getDrawable in old android versions:
|
@diegobarle For two years I've been doing a whole lot more. Check the code sample again. You may want to google what's the point of ContextCompat.getDrawable (it doesn't solve anything, it just hides an if-else check), when do you need it, and why you may want to use AppCompatResources.getDrawable instead (backport theme references and vector drawables). For example this SO question: https://stackoverflow.com/questions/43004886/resourcescompat-getdrawable-vs-appcompatresources-getdrawable |
tag need support. v21 and AppCompat already support v9 and up api level.
The text was updated successfully, but these errors were encountered: