Make ObjectAnimator animation duration independent of global animator duration scale setting in developer options
问题 How can you make ObjectAnimator independent of the "Animator duration scale" developer options setting when constant and unmodifiable speed is critical? 回答1: I noticed there is no explicit answer for this. You can do this by calling the hidden API via reflection: // Get duration scale from the global settings. float durationScale = Settings.Global.getFloat(context.getContentResolver(), Settings.Global.ANIMATOR_DURATION_SCALE, 0); // If global duration scale is not 1 (default), try to override