Summary
Now, we have another app-enhancing trick up our sleeves, and we have seen that animations in Android are quite straightforward. We design an animation in XML and add the file to the anim
folder. Next, we get a reference to the animation in XML with an Animation
object in our Java code.
We can then use a reference to a widget in our UI and set an animation to it using setAmimation
and passing in the Animation
object. We actually commence the animation by calling startAnimation
on the reference to the widget.
In this chapter, we also saw that we can control the timing of animations as well as listen for animation events.
Is it me or is it a little quiet around here?