animation in android

There are three kinds of animations in Android: frame animation, tweening animation, and attribute animation
(1) The tweening animation just draws the View at the specified position, and its own layout attributes do not change;
(2) The essence of the realization mechanism of attribute animation is to constantly modify the target
(3) The ValueAnimator animation does not see any interface effects when running, mainly relying on the listener to get the changed attribute value to dynamically set it to a specific object

(4) ObjectAnimator animation may be the class that we are exposed to the most, it can directly animate any property of any object,

           For example, the alpha of View, for example: ObjectAnimator animator = ObjectAnimator.ofFloat(textview, "alpha", 1f, 0f, 1f); you can see it at a glance

(5) Tween animation and property animation can be implemented either through code or through xml files. The xml file implementation can be reused, but the name of the folder created in the res/ directory is different. The tweened animation creates anim Folder, property animation creates animator folder

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326059519&siteId=291194637