0

I am porting one open sources library from Android to HarmonyOS where I have to set ACCELERATE interpolator for AnimatorValue object. The same thing in android using ValueAnimator object is done as below

ValueAnimator animator = new ValueAnimator();
animator.setInterpolator(new AccelerateInterpolator());

How do I do this in harmonyOS?

General Grievance
  • 4,555
  • 31
  • 31
  • 45

1 Answers1

1

CurveTypes are Harmony alternatives for Android Interpolators. Example Usage,

    AnimatorValue animator = new AnimatorValue();
    animator.setCurveType(Animator.CurveType.ACCELERATE);
Gowtham GS
  • 478
  • 2
  • 5