Contact Form

Name

Email *

Message *

Cari Blog Ini

Android Background Animation Gif Animation

Android Animation APIs

Overview

Android provides different animation APIs depending on what type of animation you want. There are two main types of animations:
  • Drawable animations: These animations change the appearance of a drawable object.
  • Property animations: These animations change the properties of a view object, such as its position, size, or rotation.

Drawable Animations

Android provides two options for animating drawables:
  1. AnimationDrawable: This class allows you to create a drawable that consists of a series of frames. You can then play the animation by calling the start() method.
  2. ObjectAnimator: This class allows you to animate any property of a drawable object. You can use this class to create more complex animations, such as fading in or out a drawable.

Property Animations

Android provides two classes for creating property animations:
  1. ValueAnimator: This class allows you to animate a single property of a view object. You can use this class to create simple animations, such as moving a view object from one point to another.
  2. ObjectAnimator: This class allows you to animate multiple properties of a view object. You can use this class to create more complex animations, such as fading in and out a view object while also moving it from one point to another.


Comments