SVG到Android形状形状、SVG、Android

2023-09-12 06:52:53 作者:你纵容的任性。

我不知道如何在Android的矢量绘图与图形类可能类似于另一个向量绘图标准。

I'm wondering how vector drawing in Android with the Shape class may resemble another vector drawing standard.

由于图形绘制对象,以及可绘制通常被定义为XML,这听起来很像矢量在SVG绘图命令。

Since Shape is a Drawable, and Drawables are usually defined as XML, it sounds a lot like the vector drawing commands in SVG.

我的问题是:有没有人创造了一个XSLT转换,或其它机构,用于将SVG绘制描述成机器人形状

My question is this: Has anybody created an XSLT transformation, or other mechanism, for converting an SVG drawing description into Android Shapes?

推荐答案

这是我能找到的最接近的事是的 svg4mobile 。

The closest thing that I could find was svg4mobile.

虽然我不相信它转换为可绘XML,它读取的SVG和进行相应的调用绘制对象类。

While I don't believe that it does transformations to Drawables XML, it does read the svg and make the appropriate calls to the Drawable classes.