您的位置:首页 > 移动开发 > Objective-C

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: