Duration: 16:11 min
Summary: In this lesson, we will continue our discussion on Android animation. Having talked about creating animations using the xml files, today, we will talk about creating animations using pure Java code. For that purpose, we will create another activity that contains a button and an image. When the user clicks on the button, we will apply a rotate animation to the image. We will create the RotateAnimation object in our code and give it the properties that we normally put in the xml file. Then, as we always do, we will create the image object and start the animation using the rotate animation object we just created.