Rename RGBEvaluator to ArgbEvaluator
Change-Id: I43cf6c9824b012424de1ef2a340ee9dde20af4a7
This commit is contained in:
@@ -69,7 +69,7 @@ public class BouncingBalls extends Activity {
|
|||||||
// every frame of the animation.
|
// every frame of the animation.
|
||||||
ValueAnimator colorAnim = ObjectAnimator.ofInt(this, "backgroundColor", RED, BLUE);
|
ValueAnimator colorAnim = ObjectAnimator.ofInt(this, "backgroundColor", RED, BLUE);
|
||||||
colorAnim.setDuration(3000);
|
colorAnim.setDuration(3000);
|
||||||
colorAnim.setEvaluator(new RGBEvaluator());
|
colorAnim.setEvaluator(new ArgbEvaluator());
|
||||||
colorAnim.setRepeatCount(ValueAnimator.INFINITE);
|
colorAnim.setRepeatCount(ValueAnimator.INFINITE);
|
||||||
colorAnim.setRepeatMode(ValueAnimator.REVERSE);
|
colorAnim.setRepeatMode(ValueAnimator.REVERSE);
|
||||||
colorAnim.start();
|
colorAnim.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user