Hi
i'm displaying 20 views at same time in the screen. They are inside a
layout, and i'm moving them from top of the screen to the bottom with an
ObjectAnimator.
Each time one view has reached the bottom, the animation is restarted.
The problem is that when 10-15 minutes have passed, the screen starts
decreasing the frame rate, with some jumps in the animations. Why? there
are allways the same objects, and the same animations... why it is
decreasing the framerate progresively?
Some of my code:
fall = ObjectAnimator.ofFloat(view, "y",-height, sh);
fall.setDuration(fallTime);
fall.setInterpolator(null);
fall.setRepeatCount(ValueAnimator.INFINITE);
fall.setRepeatMode(ValueAnimator.RESTART);
fall.addListener(new AnimatorListener() {
@Override
public void onAnimationCancel(Animator animation) {}
@Override
public void onAnimationEnd(Animator animation) {
freeBurger();
}
@Override
public void onAnimationRepeat(Animator animation) {}
@Override
public void onAnimationStart(Animator animation) {}
});
fall.start();
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.