信心比金钱更重要!

目标明确==>>>计划跟踪==>>>行动执行!
posts - 41, comments - 3, trackbacks - 0, articles - 2
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

android Animation 动画

Posted on 2012-03-19 11:17 luofeng 阅读(651) 评论(0)  编辑 收藏 引用 所属分类: Android基础

Animation
android 支持三种动画
  1. 动态GIF动画
  2. 逐帧动画
  3. 补简动画
----------------------------
 补简动画
AlphaAnimation透明度动画淡入淡出效果 (0.0 ==完全透明,不可见)
   
 
Rotate:旋转效果
 
ScaleAnimation:缩放效果
++++++++++++++++++++++++++++++

layoutAnimation有关

LayoutAnimationController
      LayoutAnimationController用于为一个Layout里面的控件或者是Viewgroup的控件设置动画效果。。
LayoutAnimationController 用来为一个layout 或是viewgroup 包含的子view添加动画效果, Layout中的每个元素
都会采用同一个动画效果,但开始时间不同。 子View动画的缺省开始时间为子View在Layout中的序号index 乘以 一个固定的时间间隔。 
LayoutAnimationController 的子类可以重载getDelayForView(android.view.View)为子View定义动画开始时间,
如GridLayoutAnimationController 根据子View的行和列来计算子View动画的开始时间。
顺序::
ORDER_NORMAL
ORDER_REVERSE
ORDER_RANDOM
====================
AnimationSet
Represents a group of Animations that should be played together.
 * The transformation of each individual animation are composed 
 * together into a single transform. 
 在Android 中用于制作混合型动画
 AnimationSet 可以包含多个Animation,但都是在同一个时间执行的,是并行,不是串行执行的。
如果AnimationSet中有一些设定,如duration,fillBefore等,它包含的子动作也设定了的,
 
  
====================
 
 Interpolator
定义了动画变化的速率或规律,其具体的实现可以使用以下子类:
 interpolator 被用来修饰动画效果,定义动画的变化率,
  可以使存在的动画效果可以 accelerated(加速),decelerated(减速),repeated(重复),bounced(弹跳)等
 
 
 =========================
 
android:layoutAnimation 属性定义在ViewGroup中,因此所有ViewGroup的子类都可以定义android:layoutAnimation。 ViewGroup可以嵌套定义,从而layout animation 也可以嵌套

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理