applibgroup / HarmonyOS-Knowledgebase

This repository contains code samples of HarmonyOS Training
Apache License 2.0
17 stars 6 forks source link

What is the alternative in HarmonyOS for valueAnimator.removeAllUpdateListeners() in Android OS? #18

Closed KomalKalyan closed 3 years ago

KomalKalyan commented 3 years ago

Describe the query

In Android while finishing an animation on valueAnimator, we do the following:

void end() { 
     // Code for final state of the animation
     valueAnimator.removeAllUpdateListeners(); 
} 

What is the alternative for the above code snippet in HarmonyOS?

Create the query with harmonyos tag in stackoverflow and share the link here:

https://stackoverflow.com/questions/68540112/what-is-the-alternative-in-harmonyos-for-activity-findviewbyidandroid-r-id-cont

Additional information

Developer Platform: Windows DevEco Studio version: 2.1.0.303 SDK API version: 5 SDK version: 2.1.1.21 Device: Not Required Device OS version: Not Required

Regards, Komal Kalyan.

kanaksony commented 3 years ago

Query replied and accepted on StackOverflow.