Animated Vector Drawable trimPathEnd example

This example shows a trimPathEnd animation while drawing a ✔️ Check mark. It will create a simple check mark path that draws itself smoothly using trimPathEnd. 1. Create the vector drawable (res/drawable/check_mark.xml) This vector drawable path starts from (x, y) point (2, 12), draws line to point (9, 19), and draws another line to point … Read more

Object Animator and Animated Vector Drawable

ObjectAnimator It provides support for animating properties on target objects. It can be used to animate Views. Animations supported are rotation, translation, scale, and alpha. Following example shows application of rotation animation to an ImageView imageview2. 1. Create rotation ObjectAnimator file (res/animator/rotate_anim.xml) It is rotation animation from 0 degree to 360 degree in 3 seconds, … Read more

Tween animation examples

Introduction Tween Animations in android are dependent on android.view.animation and they can be used to animate Views in android The animation can be applied to any kind of View (e.g. ImageView, TextView, etc.). The XML files for the animation are placed in res/anim/ folder. The root tags for the XML file include: Examples of animation files 1. … Read more