问题描述
背景
我已经注意到,安卓现在支持某种形式的矢量绘图,通过一类叫做VectorDrawable" (以及AnimatedVectorDrawable ,BTW)。我发现它通过看有什么新的Android-Studio
我不知道这是不必把多个文件合并多个文件夹的末尾(MDPI,华电国际,xhdpi,...)。这将是巨大的,可能会在某些情况下,最大限度地减少应用程序的大小。
的问题
我想问问关于这个新类的几个问题:
-
是否有可能把它用在较旧的Android版本,通过谷歌甚至支持库?
库可能 -
我不熟悉,它是如何工作的,但可以棒棒糖处理SVG文件?它可以做任何事情是可以实现的SVG文件?
-
有没有使用它的任何样本/教程/视频,不是我发现的文件等?
VectorDrawableCompat即将推出!
有些文章阅读有关VectorDrawables以及如何构建并使用它们:
Background
I've noticed that Android now supports some kind of vector drawing, via a class called "VectorDrawable" (and also AnimatedVectorDrawable , BTW) . I've found about it by looking at what's new on Android-Studio
I wonder if this would be the end of having to put multiple files into multiple folders (mdpi,hdpi,xhdpi,...) . That would be great and might minimize apps sizes on some cases.
The questions
I'd like to ask a few questions regarding this new class:
Is it possible to use it in older Android versions, maybe via a library of even the support library of Google?
I'm not familiar with how it works, but can Lollipop handle SVG files ? Can it do anything that is achievable on SVG files ?
Is there any sample/tutorial/video of using it, other than the documentation I've found ?
VectorDrawableCompat coming soon!
Some articles to read about VectorDrawables and how to build and use them:
这篇关于VectorDrawable - 是它可在某种程度上为pre-棒棒糖Android版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!