Unit -04 Working with Animations



Lesson Plan: Unit - 04
Subject: P15A2AAD - Android Application Development
Topic of Study: Working with Animations
Grade/Level: Master of Computer Applications
Objective: To understand the mechanism of different kinds of Animation
Time Allotment: 55 Minutes


  • Working with Animations
    • The Android platform supports three types of graphics animation:
    • Animated GIF images
      • Animated GIFs store the animation frames within the image, and you simply include these GIFs like any other graphic drawable resource.
    • Frame-by-frame animation
      • For frame-by-frame animation, the developer must provide all graphics frames of the animation.
    • Tweened animation
      • Tweened animation, only a single graphic is needed, upon which transforms can be programmatically applied.
    • Working with Frame-by-Frame Animation:
      • Step 01: Design the XML.


      • Step 02: Write a Java Code.

    • Working with Tweened  Animation:
      • You can provide a single Drawable resource—it is a Bitmap graphic, a ShapeDrawable, a TextView, or any other type of View object.
      • Android provides tweening support for several common image transformations, including alpha, rotate, scale, and translate animations.
      • You can define tweening transformations as XML resource files or programmatically.
      • Defining Tweened Animations as XML Resources:
        • Create “anim” folder under /res directory.
        • Right click on Anim folder and select other->xml file.
        • Copy and Paste xmlns from any xml file.
      • Tween Animation – Java Code:
    • Scale Operations:
    • Exa.

    • Alpha Operations:
    • Exa.
    • Rotate Operations:
    • Exa.
    • Move Operations:
    • Exa.

Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form