[注意]
VectorDrawable
坐标轴为以(0,0)为中心,X轴水平向右,Y轴水平向下。
xml用在textview中
AnimatedVectorDrawable
AnimatedVectorDrawable 的作用是给 VectorDrawable 提供动画效果。在XML文件中通过
<animated-vector
>标签来声明对 AnimatedVectorDrawable 的使用,并指定其作用的<path>
或<group>
。
Android中使用SVG
Google在Android 5.X中提供了两个新API来帮助支持SVG:
- VectorDrawable
- AnimatedVectorDrawable
参考链接:
手把手教学, android 使用 SVG