I am creating a custom component in HarmonyOS using Java SDK. Where I have to work on Animation for animate component. I have to animates component between int values. For that I need the instance of AnimatorValue(In Android ValueAnimator).
In Android we can create instance of ValueAnimator and pass int values like this:
ValueAnimator finalPositionAnimator = ValueAnimator.ofInt(10, 100);
but, In HMOS I am able to create instance of AnimatorValue using below code:
AnimatorValue finalPositionAnimator = new AnimatorValue();
but, I am not able to set int values.