android vector矢量图
来源:互联网 发布:数据保护线缠绕方法 编辑:程序博客网 时间:2024/06/05 07:33
常用属性
- android:name 定义该 path 的名字,这样在其他地方可以通过名字来引用这个路径
- android:pathData 和 SVG 中 d 元素一样的路径信息。
- android:fillColor 定义填充路径的颜色,如果没有定义则不填充路径
- android:strokeColor 定义如何绘制路径边框,如果没有定义则不显示边框
- android:strokeWidth 定义路径边框的粗细尺寸
- android:strokeAlpha 定义路径边框的透明度
- android:fillAlpha 定义填充路径颜色的透明度
- android:trimPathStart 从路径起始位置截断路径的比率,取值范围从 0 到1
- android:trimPathEnd 从路径结束位置截断路径的比率,取值范围从 0 到1
- android:trimPathOffset 设置路径截取的范围 Shift trim region (allows showed region to include the start and end), in the range from 0 to 1.
- android:strokeLineCap 设置路径线帽的形状,取值为 butt, round, square.
- android:strokeLineJoin 设置路径交界处的连接方式,取值为 miter,round,bevel.
- android:strokeMiterLimit 设置斜角的上限,Sets the Miter limit for a stroked path.
位置改变动画
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" android:duration="1000" android:repeatMode="reverse" android:repeatCount="infinite" android:propertyName="translateX" android:valueFrom="10" android:valueTo="0" android:valueType="floatType"></objectAnimator>
颜色改变动画
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" android:duration="5000" android:repeatMode="reverse" android:repeatCount="infinite" android:propertyName="fillColor" android:valueFrom="@android:color/holo_red_dark" android:valueTo="@android:color/holo_orange_dark" android:valueType="intType"></objectAnimator>
轨迹绘制:
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" android:duration="5000" android:repeatMode="reverse" android:repeatCount="infinite" android:propertyName="trimPathStart" android:valueFrom="1" android:valueTo="0" android:valueType="floatType"></objectAnimator>
阅读全文
0 0
- Android---矢量图(Vector)使用方法
- Android 矢量图 vector 制作
- android vector矢量图
- android vector矢量图画图详解
- Android的Vector矢量图绘制
- Android Vector Drawable | SVG 矢量图
- Android中的矢量图Vector Drawable
- android vector矢量图的简单使用教程
- Android studio使用vector创建矢量图并加载
- vector构造SVG矢量图
- Android矢量图
- Android使用SVG矢量图打造酷炫动效! 以及用ps生成vector
- 安卓开发之Android Studio在drawable目录下添加矢量图vector XML文件
- android 矢量图的打造
- Android 项目使用矢量图
- android绘制矢量图
- Android 矢量图使用
- Android 使用SVG矢量图
- Common Clock Framework系统结构
- 238 Product of Array Except Self
- angular js----javascript 模块化require.js
- Fragment嵌套Fragment
- linux下mysql的root密码
- android vector矢量图
- Java基础学习
- Ubuntu下将文本文件转成PDF文件
- Linux中如何产生core文件?
- IPlImage的width和widthStep
- 处理百万级以上的数据提高查询速度的方法
- 【Keras】张量的阶数
- PHP学习笔记:1.1 PHP安装
- 王爽.汇编.第三版.实验12.答案