android frame by frame animation example part 2

go back to android frame by frame animation example part 1

Questions Related with Android Frame by Frame Animation

  • Write an outline code to show frame by frame animation. Load 2 Bitmap
    resources and create AnimationDrawable. What is thepurpose of setOneShot()
    method.
  • Explain animation supported by Android taking suitable example
  • Explain different types of Animation in Android.
  • Differentiate Frame-by-frame Animation and Tweened Animation
  • Explain the steps involved in frame by frame animation.
  • Which methods should be used to load 2 Bitmap resources  and to start animation in case of Frame-by-Frame Animation? Which method should be used to loop continuously for animation?
    • setOneShot to false or default is contineous.
  • What is Frame-by-Frame Animation? How it is different from Tweened Animation? Explain creating frame-by-frame animation taking suitable example.
  • What is the purpose of setOneShot() and addFrame() method in Frame By Frame animation?
    • setOneShot() : If true, the animation will only run a single time and then stop.
    • addFrame() : Adds a frame to the animation
  • For what purpose animation interpolator is used? How it can be specified
    programmatically?
  • An interpolator means rate of change of an animation (mostly it is used for smooth curve). This allows the basic animation effects (alpha, scale, translate, rotate)

Location : res\layout

File: main_activity.xml

Location : src\package

File: MainActivity.java

Output 1

android frame by frame animation example

Output 2

android frame by frame animation example

Output 3

android frame by frame animation example

Download Complete Code

Download Few Popular Android Apps

  1. Bank IFSC Code : Now easily get bank ifsc code which you need while online transfer.
  2. All India PIN Code : Get all india PIN Code Numbers on 1 Android App.
  3. RTO Code : Get all India RTO Code on 1 Android App.
  4. Google 2 Step Code Speak : Now app will speak your google 2 step code, so no need to check mobile, code will reach you.
  5. All Gujarat ST Bus Stand Helpline Numbers (GSRTC Helpline Numbers)
  6. Mumbai City Bus Numbers (MSRTC Helpline Numbers)

  7. Andhra Pradesh City Bus Helpline Numbers (APSRTC Helpline Numbers)

  8. Bhavnagar Diary (Bhavnagar Business Directory)

  9. Baroda Diary (Baroda Business Directory)
  10. Surat Diary (Surat Business Directory)
  11. Ahmedabad Diary (Ahmedabad Business Directory)
  12. Rajkot Diary (Rajkot Business Directory)

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative