解决方法
您可以将文本颜色从标准颜色设置为透明,然后再返回
ObjectAnimator colorAnim = ObjectAnimator.ofInt(myButton,"textColor",Color.RED,Color.TRANSPARENT); colorAnim.setDuration(1000); colorAnim.setEvaluator(new ArgbEvaluator()); colorAnim.setRepeatCount(ValueAnimator.INFINITE); colorAnim.setRepeatMode(ValueAnimator.REVERSE); colorAnim.start();