Interpolator Animation Android

This example will show you how to use different interpolators provided by android. This example, will show you both the way to use interpolator via XML or java. An interpolator defines the rate of change of an animation. This allows the basic animation effects (alpha, scale, translate, rotate) to be accelerated, decelerated, repeated, overshoot, cycle, bounce, etc. Main code:- (Using XML) <? xml version= "1.0" encoding= "utf-8" ?> < set xmlns: android = "http://schemas.android.com/apk/res/android" android :duration= "1500" android :interpolator= "@android:anim/bounce_interpolator" > // set Interpolator < translate android :fromXDelta= "0%p" android :toXDelta= "0%p" android :fromYDelta= "0%p" android :toYDelta= "80%p" /> </ set> Interpolator Animation using java:- 1) Create an animation file. up_to_down_animation.xml <? xml version="1.0...