private void animateForegroundColor(@ColorInt final int targetColor) { | |
ObjectAnimator animator = | |
ObjectAnimator.ofInt(YOUR_VIEW, FOREGROUND_COLOR, Color.TRANSPARENT, targetColor); | |
animator.setEvaluator(new ArgbEvaluator()); | |
animator.setStartDelay(DELAY_COLOR_CHANGE); | |
animator.start(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment