是否已经的android原生* *支持SVG图像绘制资源(图标)? [英] Does android have *native* support SVG image as drawable resources (icons)?

查看:123
本文介绍了是否已经的android原生* *支持SVG图像绘制资源(图标)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在读书和看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.

这篇关于是否已经的android原生* *支持SVG图像绘制资源(图标)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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