code: private Animator prepareStyle2Animation() {
          AnimatorSet animation = new AnimatorSet();
  
          ObjectAnimator progressAnimation = ObjectAnimator.ofFloat(drawable, CircularProgressDrawable.PROGRESS_PROPERTY,
                  0f, 1f);
          progressAnimation.setDuration(3600);
          progressAnimation.setInterpolator(new AccelerateDecelerateInterpolator());
  
          ObjectAnimator colorAnimator = ObjectAnimator.ofInt(drawable, CircularProgressDrawable.RING_COLOR_PROPERTY,
                  getResources().getColor(android.R.color.holo_red_dark),
                  getResources().getColor(android.R.color.holo_green_light));
          colorAnimator.setEvaluator(new ArgbEvaluator());
          colorAnimator.setDuration(3600);
  
          animation.playTogether(progressAnimation, colorAnimator);
          return animation;
      }
docs: Style 2 animation will fill the outer ring while applying a color effect from red to green
  
  @return Animation