Android animation through XML


In the last days I was trying to do some animations with Android. I want to share some of the animation which can be build through defining them in your XML.

In total this tutorial will have 3 animations based on an ImageView: (1) shake, rotate, and fade.

It is actually quite easy. We will use the XML to define the behavior of the animation and some Java to create the reference and the initiation. Note that, I have created 3 buttons to start the animation. Continue reading