第一步:使用chrome浏览器打开网址:

http://oss.chengxingyao.cn/svg2android/index.html

如下图:

Android SVG to VectorDrawable

第二步:

使用编辑器或者浏览器打开.svg格式的图片,

如下,基本格式应该都差不多:

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>

第三步:

全选复制上面编辑器打开的内容,粘贴到上面网站中的输入框内,会自动进行转换。

然后直接点击“download”按钮即可下载所需要的xml格式的图片了.

粘贴后,有可能转化会报错:

Android SVG to VectorDrawable

可能是浏览器的原因,更换浏览器为chrome或者用手机端的chrome打开上面的网址进行转换都是可以的.


最终转化后的结果:

Android SVG to VectorDrawable


相关文章:

  • 2022-12-23
  • 2023-02-16
  • 2021-05-10
  • 2021-09-04
  • 2021-12-25
  • 2021-09-19
  • 2021-06-22
猜你喜欢
  • 2021-05-20
  • 2021-08-14
  • 2022-01-17
  • 2021-11-02
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案