@H_502_0@1.Tweened Animation 渐变动画
该类提供了 旋转,移动,淡入淡出,缩放
@H_502_0@2.Frame-by-Frame Animation
和放电影一样 通过一系列的图片 按照我们制定的动作 显示出来
@H_502_0@Tweened Animation:
1.Alpha:淡入淡出效果
2.Scale:缩放效果
3.Rotate:旋转效果
4.Translate:移动效果
@H_502_0@Tweened Animation 渐变动画
@H_502_0@AlphaAmination:淡入淡出
@H_502_0@Public Constructors:
AlphaAnimation(Context context,AttributeSet attrs)
Constructor used when an AlphaAnimation is loaded from a resource.
@H_502_0@AlphaAnimation(float fromAlpha,float toAlpha)
Constructor to use when building an AlphaAnimation from code
@H_502_0@Public Methods:
willChangeBounds() :返回值boolean
Indicates whether or not this animation will affect the bounds of the animated view.
@H_502_0@willChangeTransformationMatrix() :返回值 boolean
Indicates whether or not this animation will affect the transformation matrix.
@H_502_0@Protected Methods
@H_502_0@applyTransformation(float interpolatedTime,Transformation t) 无返回值
Changes the alpha property of the supplied Transformation
使用
@H_502_0@代码方式使用该效果:
// AlphaAnimation alphaAnimation = new AlphaAnimation(0,1);
// alphaAnimation.setDuration(1000);
// arg0.startAnimation(alphaAnimation);
@H_502_0@布局形式使用该效果: arg0.startAnimation(AnimationUtils.loadAnimation(MainActivity.this,R.anim.alpha)); 布局文件: