Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

AnimatorInflater.loadAnimator incorrect evaulator with color values #46

Open
jjjcheetah opened this issue May 9, 2013 · 0 comments
Open

Comments

@jjjcheetah
Copy link

AnimatorInflater.loadAnimator() does not appear to properly set the TypeEvaluator to ArgbEvaluator if valueFrom or valueTo is set to a color. This is due to the fact that ValueAnimator.setEvaulator() does nothing if no values have been set.

So if in AnimatorInflater.loadAnimator() these lines are uncommented as in the orignial framework code:

//TypeEvaluator evaluator = null;
//if (evaluator != null) {
//    anim.setEvaluator(evaluator);
//}

and

anim.setEvaluator(new ArgbEvaluator());

is changed to

evaluator = new ArgbEvaluator();

it should work properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant