There are two animations commonly used in Android, one is Tween Animation and the other is Frame Animation. The tween animation is realized by using a picture; the definition gives two key frames, and the given attribute value is gradually changed between the two key frames within a given time by some algorithms, which is a frame animation. Generally, the two animations are written as follows :
1. Tween Animation
Mainly divided into: gradient alpha
rotate rotate
translate translate
zoom scale
res/anim/XXXX.xml ---> root node <set>
three elements: start state, end state, animation duration
General writing:
1. Realize by using xml document + Java code