SVG到Android形状 [英] SVG to Android Shape

查看:97
本文介绍了SVG到Android形状的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何在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.

这篇关于SVG到Android形状的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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