[android-developers] Animation not start immediately when the target view is out of window

2010-06-15 Thread funnything
Hi. When I apply some animation to the view, which is out of window, the animation not start immediately. And then, I scroll the screen to show the animation target view, the animation will start. I hope to the animation will start immediately when it apply. Any ideas? Bellow is sample code. Thank

Re: [android-developers] Animation not start immediately when the target view is out of window

2010-06-15 Thread Romain Guy
When you set the animation on your View, set the start time of the Animation to AnimationUtils.currentAnimationTimeMillis(). Otherwise, the start time will be the first time your View is drawn, which is the first time your View appears on screen. On Thu, Jun 10, 2010 at 6:55 AM, funnything