关于属性动画的 (日记)
2015-12-17 11:34
232 查看
在使用属性动画的时候 如果想一直重复的执行动画记得用 setRepeatCount(-1)不是setRepeatMode(),//ps可是从名字上看明明是setRepeatMode()比较合理,坑爹啊~~
<pre name="code" class="java"> final ObjectAnimator animator = ObjectAnimator.ofFloat(imageview, "rotation", 0,360); animator.setDuration(1000); animator.setRepeatCount(ValueAnimator.INFINITE);//ValueAnimator.INFINITE==-1 animator.start();
相关文章推荐
- 网络原理,以及对VMware Workstation虚拟网络VMnet0、VMnet1、VMnet8的图解
- Redis的常用命令及高级应用
- 解决Tomcat catalina.out 不断成长导致档案过大的问题
- 【mysql】 mysql 子查询、联合查询、模糊查询、排序、聚合函数、分组----------语法
- mysql中and和or
- 如何获取和修改URL
- 性能调优之Java系统级性能监控及优化
- android的样式(style)与主题(theme)
- oracle executing oracle import utility,please wait终极解决方案
- 双十二最大赢家 乐视手机成发展最快国产品牌
- 性能调优之MYSQL高并发优化
- powercmd有内存泄漏
- Maven构建SSM架构,并分离层次,使用Maven 组织多项目
- 嵌入式文件系统——Cramfs、JFFS2和YAFFS2概述
- Undefined exploded archive location myeclipse无法发布web工程
- 不能出现第三个中间变量,字符串的交换.
- 双十二最大赢家 乐视手机成发展最快国产品牌
- MYSQL性能优化
- gcc -fomit-frame-pointer选项,-fno-dwarf2-cfi-asm 选项
- 【jQuery】使用remove()和empty()方法删除元素