zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

android scaleanimation动画,【Android动画九章】-RotateAnimation(旋转动画)和ScaleAnimation(尺寸动画)…[通俗易懂]

Android动画 通俗易懂 旋转 尺寸 scaleanimation 九章
2023-06-13 09:11:08 时间

【Android动画九章】-RotateAnimation(旋转动画)和ScaleAnimation(尺寸动画)

public abstract class

Animation

extends Object

implements Cloneable

java.lang.Object

↳ Android.view.animation.Animation

Known Direct Subclasses

AlphaAnimation, AnimationSet, RotateAnimation, ScaleAnimation, TranslateAnimation

同AlphaAnimation和TranslateAnimation一样,RotateAnimation和ScaleAnimation动画也都是Animation类的子类。这里一起进行介绍。

RotateAnimation

常用构造方法:

RotateAnimation(float fromDegrees, float toDegrees, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue)

fromDegrees:起始角度值

toDegrees: 结束角度值

pivotXType: 转动点X轴的转动标准,共三种,RELATIVE_TO_SELF 以自己为标准,RELATIVE_TO_PARENT以父组件为标准,ABSOLUTE表示绝对位置。……

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/183483.html原文链接:https://javaforall.cn