是否已经的android原生* *支持SVG图像绘制资源(图标)?图标、图像、资源、android

由网友(看你和她拥抱)分享简介:我在读书和看UI教程。他们都说说,你需要知道在不同的设备大小和分辨率的事实。因此,你的图标导出到几个大小来支持不同的屏幕密度。SVG是一种开放式标准(W3C),应该是使用,以解决这类问题。所以,我可以在本机使用SVG文件作为绘制了我的图标?I'm reading and watching UI tutorial....

我在读书和看UI教程。他们都说说,你需要知道在不同的设备大小和分辨率的事实。因此,你的图标导出到几个大小来支持不同的屏幕密度。 SVG是一种开放式标准(W3C),应该是使用,以解决这类问题。所以,我可以在本机使用SVG文件作为绘制了我的图标?

I'm reading and watching UI tutorial. They all talk about the fact that you need to be aware of different devices size and resolution. Therefore export your icons into several size to support different screen density. SVG is an open standard (W3C) that should be use to tackle this kind of problem. So can I natively use SVG file as drawable for my icons ?

注:我不是在谈论浏览器支持

N.B.: I'm NOT talking about browser support.

推荐答案

Android不支持SVG光栅化。看看 libsvg-的Andr​​oid 或的 svg4mobile 。它解决了这个问题。

Android does not support SVG rasterization. Look at libsvg-android or svg4mobile. It solves that problem.

阅读全文

相关推荐

最新文章