使ObjectAnimator动画持续时间与开发人员选项中的全局动画持续时间比例设置无关 [英] Make ObjectAnimator animation duration independent of global animator duration scale setting in developer options

查看:142
本文介绍了使ObjectAnimator动画持续时间与开发人员选项中的全局动画持续时间比例设置无关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当速度恒定且不可更改时,如何使ObjectAnimator独立于"Animator持续时间比例"开发人员选项设置?

How can you make ObjectAnimator independent of the "Animator duration scale" developer options setting when constant and unmodifiable speed is critical?

推荐答案

必须使用隐藏的API来访问 ValueAnimator 对象上的 setDurationScale 方法.

Had to use hidden API to access the setDurationScale method on the ValueAnimator object.

这篇关于使ObjectAnimator动画持续时间与开发人员选项中的全局动画持续时间比例设置无关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆