So, I've got a combination of Keyframe
, PropertyValuesHolder
and ValueAnimator
. Both Keyframe
and ValueAnimator
have interpolators.
Code looks like:
Keyframe frame =
Keyframe.ofFloat(1f, someValue);
frame.setInterpolator(interpolator1);
PropertyValuesHolder holder =
PropertyValuesHolder.ofKeyframe("myProperty", frame);
ValueAnimator animator =
ValueAnimator.ofPropertyValuesHolder(holder);
animator.setInterpolator(interpolator2);
animator.start();
The question is am I getting double interpolation or just a single one? What is the formula?
I've looked through ValueAnimator
and KeyframeSet
sources. It seems that firstly fraction is interpolated in ValueAnimator
and then also in KeyframeSet