For Androi frame animations, GIF images can be made, and sometimes in order to dynamically generate frame animations, you need to use code to build
The Animationdrawable class uses Addframe to add frames.
Use start in the Animationdrawable class to start the animation.
Use stop in the Animationdrawable class to stop the animation.
In addition, for the understanding of the tweened animation prone to errors in the place, correct the following:
Rotateanimation ra = new Rotateanimation (fromdegrees, Todegrees, Pivotx, Pivoty)
Pivotx,pivoty The actual pixel when the value is greater than 1
Rotateanimation ra = new Rotateanimation (fromdegrees, Todegrees, Pivotxtype, Pivotxvalue, Pivotytype, PivotYValue)
Pivotx, Pivoty when a value greater than 1 represents a proportional position
Custom animations:
public class Customanimation extends Animation {@Overrideprotected void applytransformation (float interpolatedtime, Transformation T) {super.applytransformation (interpolatedtime, T); T.getmatrix (). Settranslate ((float) (Math.sin (10* Interpolatedtime) *50), 0);}}
How Android custom animations are implemented