VectorDrawable - 是它可在某种程度上为pre-棒棒糖Android版本? [英] VectorDrawable - is it available somehow to pre-Lollipop versions of Android?

查看:235
本文介绍了VectorDrawable - 是它可在某种程度上为pre-棒棒糖Android版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景

我已经注意到,安卓现在支持某种形式的矢量绘图,通过一类叫做<一href="http://developer.android.com/reference/android/graphics/drawable/VectorDrawable.html">VectorDrawable" (以及<一href="https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html">AnimatedVectorDrawable ,BTW)。我发现它通过看有什么新的<一个href="https://sites.google.com/a/android.com/tools/recent/androidstudio0814released">Android-Studio

我不知道这是不必把多个文件合并多个文件夹的末尾(MDPI,华电国际,xhdpi,...)。这将是巨大的,可能会在某些情况下,最大限度地减少应用程序的大小。

的问题

我想问问关于这个新类的几个问题:

  1. 是否有可能把它用在较旧的Andr​​oid版本,通过谷歌甚至支持库?

  2. 库可能
  3. 我不熟悉,它是如何工作的,但可以棒棒糖处理SVG文件?它可以做任何事情是可以实现的SVG文件?

  4. 有没有使用它的任何样本/教程/视频,不是我发现的文件等?

解决方案

<一个href="https://android.googlesource.com/platform/frameworks/support/+/master/v7/vectordrawable/">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:

  1. Is it possible to use it in older Android versions, maybe via a library of even the support library of Google?

  2. I'm not familiar with how it works, but can Lollipop handle SVG files ? Can it do anything that is achievable on SVG files ?

  3. 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版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆