ObjectAnimator 可以实现颜色的渐变 具体
ObjectAnimator android.animation.ObjectAnimator.ofFloat(Object target, String propertyName, float... values)
//控件横向来回抖动
ObjectAnimator anim = ObjectAnimator.ofFloat(mLtWord, "translationX", -20,20,-10,10,-5,5,0);
anim.setDuration(1000);
anim.start();
anim.setDuration(1000);
anim.start();
//实现控件颜色渐变
ObjectAnimator anim = ObjectAnimator.ofObject(myAnimView, "color", new ColorEvaluator(), "#0000FF", "#FF0000");
anim.setDuration(5000);
anim.start();