Saturday, February 11, 2012

[android-developers] Re: Android custom tween - Timer vs ScheduledThreadPoolExecutor, or alternative

momo wrote:
> I'm working on a custom tween effect targeting Android 2.2. This is
> not a straight View animation (many things are happening based on the
> progress of the tween), so the Animation classes available in 2.2
> aren't sufficient (apparently Animator does this but is not
> available).
>
> I've implemented the basic logic (porting JS and AS tweening engines
> I'd written earlier), and it seems to work fine, but is a little
> slow. For example, running an interval of 25ms in JS or AS produces a
> smooth visual effect, but seems "chunky" in the Android implementation
> - reducing the interval to 10ms seemed to help some but it certainly
> isn't as smooth as the built-in animations.
>
>

forgot to mention that built-in animations run with no delay - in
short they just call invalidate() in drawing phase in order to make
next frame of animation

pskink

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment