android - 无法导入创建的矢量可绘制对象

标签 android svg vector

我有一个公式图像,我将它转换为 svg 格式,然后转换为矢量可绘制格式。当我将它导入到项目中时,它显示 xml 布局中的错误

这里是矢量图

  <?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportWidth="290"
android:viewportHeight="242"
android:width="362.5dp"
android:height="302.5dp"></vector>

here is the image of the error

最佳答案

这是因为你没有在矢量中给出路径..

try this link for converting svg into vector

关于android - 无法导入创建的矢量可绘制对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42905619/

相关文章:

java - 非原子缓存

r - 在 R 中解析 SVG 路径

Android child Activity 和方向锁定

android - 使用 URL 启动应用程序

javascript - 检测 SVG 动画何时结束

css - HTML5 SVG 100% 宽度和 100% 视口(viewport)高度?

matlab - 最近元素 MATLAB

vector - 是否可以创建一个引用惰性静态值的向量?

java - 序列化 vector

android - Dagger如何注入(inject)多个构造函数