Android - Animations Tutorial
Animation is the process of creating motion and shape change Animation in android is possible from many ways. In this chapter we will discuss one easy and widely used way of making animation called tweened animation. Tween Animation Tween Animation takes some parameters such as start value , end value, size , time duration , rotation angle e.t.c and perform the required animation on that object. It can be applied to any type of object. So in order to use this , android has provided us a class called Animation. In order to perform animation in android , we are going to call a static function loadAnimation() of the class AnimationUtils. We are going to receive the result in an instance of Animation Object. Its syntax is as follows − Animation animation = AnimationUtils . loadAnimation ( getApplicationContext (), R . anim . myanimation ); Note the second parameter. It is the name of the our animation xml file. You have to create a new folder called anim under ...