views:

157

answers:

1

I have created a custom component in my program by extending a ViewGroup. This component listens to touch events and are supposed to start animations when the user has move their finger past some certain points.

I'm able to start animations while the user is touching the screen. But I'm not able to start animations if the user doesn't move their finger. It's probably that the phone thinks it doesn't have to update the screen if the user isn't moving their finger.

I added some logs and according to them the animation starts and ends but it doesn't draw on the screen. I have the same problems when starting an animation with a timer.

I use AlphaAnimations and TranslateAnimations on ImageViews. I have tried to use invalidate() both on the component and the ImageView but it doesn't help.

Anyone who has an idea how to solve this?

A: 

When I had the same problem I found that it worked if the animation was started in the UI thread, but didn't in other cases - could this be the issue?

Adrian
That could very well have been my problem. Anyway I "solved" it by removing all time delayed animation..
BenIOs