Hi!
I'd like to do some simple animations with drawArc, drawLine, drawCircle.
The ui.animate can only work on a drawable, but even if I create a class which inherits from it, the animate() cannot be stopped mid animation (if I understand correctly).
Is it ok to do animations with a Timer?
In the simulator I had to set the Timer to its lowest setting (50ms) for the animation to be smooth enough. It looks good enough but I don't know the impacts on a real device.
Also which one is better performance vise?:
- dc.clear() and then draw the shape in every frame, or
- draw the previous shape with background color and then draw the shape