ObjectAnimator.ofFloat不生效
2015-09-30 10:35
351 查看
使用Android系统的属性动画时,发现ObjectAnimator.ofFloat设置后没有响应,换成nineoldandroid,一切正常。
在stackoverflow上搜索一下,发现是手机的开发者选项里面的动画时长缩放被关闭了,修改为1倍缩放即可
stackoverflow地址如下:http://stackoverflow.com/questions/25505622/androids-objectanimator-offloat-doesnt-work-properly
On the Galaxy S4, under Developer
Options, there is the option Animator
duration scale. For some wild reason, this is off by
default. After switching this to 1x,
my animations on the S4 started to work perfectly. This may be what is causing your problem.
在stackoverflow上搜索一下,发现是手机的开发者选项里面的动画时长缩放被关闭了,修改为1倍缩放即可
stackoverflow地址如下:http://stackoverflow.com/questions/25505622/androids-objectanimator-offloat-doesnt-work-properly
On the Galaxy S4, under Developer
Options, there is the option Animator
duration scale. For some wild reason, this is off by
default. After switching this to 1x,
my animations on the S4 started to work perfectly. This may be what is causing your problem.
相关文章推荐
- iOS中Objective-C与JavaScript之间相互调用的实现
- Object.wait()与Object.notify()的用法
- object-c语法小计
- iOS开发-object-c之 @[], @{}
- Effective Objective-C 2.0 学习笔记
- JSONObject 好坑啊
- 禅与 Objective-C 编程艺术(Zen and the Art of the Objective-C Craftsmanship)
- 使用字典和数组的嵌套实现通讯录
- objective-c中@property的参数分别有何作用?
- No object in the CompoundRoot has a publicly accessible property named
- Object.toString()
- 【IOS 开发学习总结-OC-23】★objective-c的反射机制
- 自定义构造方法
- 重写构造方法
- 响应有参方法
- Java中Object转化为int类型
- A different object with the same identifier value was already associated wit
- 判断对象能否响应指定的方法
- 动态类型的检测
- 传统的get和set方法