You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.
I have the following code :
AnimatorSet set = new AnimatorSet ( );
ObjectAnimator oax = ObjectAnimator.ofFloat ( layout, "scaleX", scalingSt, scalingEn );
ObjectAnimator oay = ObjectAnimator.ofFloat ( layout, "scaleY", scalingSt, scalingEn );
set.playTogether ( oax, oay );
set.setDuration ( 800 );
set.setStartDelay ( waitMilis );
set.start ( );
set.addListener ( listener );
For some reason the registered set's listener would not call OnAnimationStart. I guess the problem is that the set do not call it as OnAnimationEnd is being called properly. What I did to bypass the problem was to register listener to oax. Hope this would save somebody little time
The text was updated successfully, but these errors were encountered:
You need to set the listener before the animation. The problem here is the animation has already started before the listener is added, whereas listener is already present when the animation ends.
I have the following code :
AnimatorSet set = new AnimatorSet ( );
ObjectAnimator oax = ObjectAnimator.ofFloat ( layout, "scaleX", scalingSt, scalingEn );
ObjectAnimator oay = ObjectAnimator.ofFloat ( layout, "scaleY", scalingSt, scalingEn );
set.playTogether ( oax, oay );
set.setDuration ( 800 );
set.setStartDelay ( waitMilis );
set.start ( );
set.addListener ( listener );
For some reason the registered set's listener would not call OnAnimationStart. I guess the problem is that the set do not call it as OnAnimationEnd is being called properly. What I did to bypass the problem was to register listener to oax. Hope this would save somebody little time
The text was updated successfully, but these errors were encountered: