SVG转换成VectorDrawable xml资源;

1.打开android studio 选中drawable文件;
android studio如何将SVG转换成VectorDrawable xml资源
2.鼠标右击选中new->vector asset;
android studio如何将SVG转换成VectorDrawable xml资源
android studio如何将SVG转换成VectorDrawable xml资源
3.导入svg图片;
android studio如何将SVG转换成VectorDrawable xml资源
4.点击next->finsh就会生成ic_right.xml
android studio如何将SVG转换成VectorDrawable xml资源
5.我们点击打开查看一下它的代码:
android studio如何将SVG转换成VectorDrawable xml资源
最终在代码直接引用即可;

相关文章:

  • 2021-05-10
  • 2022-12-23
  • 2021-05-08
  • 2021-08-09
  • 2021-10-12
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2021-05-24
  • 2021-11-27
  • 2022-01-17
  • 2022-02-05
  • 2021-06-22
  • 2022-12-23
相关资源
相似解决方案