android.view.animation

public abstract class
Animation Class



예를 들어 아래와 같은 구현부가 있다면.

      AnimationSet set = new AnimationSet(true);
  2. Animation animation = new AlphaAnimation(0.0f, 1.0f);
      animation.setDuration(100);
      set.addAnimation(animation);
      animation = new TranslateAnimation(

      Animation.RELATIVE_TO_SELF, 0.0f,Animation.RELATIVE_TO_SELF, 0.0f,

            Animation.RELATIVE_TO_SELF, -1.0f,Animation.RELATIVE_TO_SELF, 0.0f

        );

animation.setDuration(100);        

api를 보면

2번째 라인에서 Animation클래스와 AlphaAnimation 는 다른 클래스이고 Animation 에 당연히 AlphaAnimation(,) 생성자가 없다. 보다 보니 Animation는 추상클래스 이네여;;; 그래서 다른 클래스의 객체 생성이 가능한 것이죠..

Animation 클래스의 다이렉트 서브클래스로는 : 
AlphaAnimationAnimationSetRotateAnimationScaleAnimationTranslateAnimation



또한  animation 패키지에 속한 에니메이션 관련 클래스들을 보면 단일 뷰(객체)에 대한 적용과 리스트뷰(listView)와 그리드뷰(GridView) 와 같이 Animaiton 객체 생성 후(다수 Animation 객체생성) AnimationSet 클래스로 인해 에니메이션 조합 후(멋진 에니이션 표현을 위함) 레이아웃 콘트롤러(GridLayoutAnimationController, LayoutAnimationController) 클래스들에게 다시 적용되어 각 리스트 뷰들이 적용이 가능하도록 되어있음..
이는 리스트들 하나하나에게 에니메이션을 적용하기 위한 방법임.. 흠.. 자세한 것은  API 를 좀더 자세히 본 후 설명하여야 겠음..
한 마디로 단일뷰와 리스트형식의 뷰에 에니메이션을 적용하기 위한 방법을 제공한다.

android.view.animation  구성

Interface

Animation.AnimationListener

An animation listener receives notifications from an animation. 

Interpolator

An interpolator defines the rate of change of an animation. 


Classes

AccelerateDecelerateInterpolator

An interpolator where the rate of change starts and ends slowly but accelerates through the middle. 

AccelerateInterpolator

An interpolator where the rate of change starts out slowly and and then accelerates. 

AlphaAnimation

An animation that controls the alpha level of an object. 

Animation

Abstraction for an Animation that can be applied to Views, Surfaces, or other objects. 

Animation.Description

Utility class to parse a string description of a size. 

AnimationSet

Represents a group of Animations that should be played together. 

AnimationUtils

Defines common utilities for working with animations. 

AnticipateInterpolator

An interpolator where the change starts backward then flings forward. 

AnticipateOvershootInterpolator

An interpolator where the change starts backward then flings forward and overshoots the target value and finally goes back to the final value. 

BounceInterpolator

An interpolator where the change bounces at the end. 

CycleInterpolator

Repeats the animation for a specified number of cycles. 

DecelerateInterpolator

An interpolator where the rate of change starts out quickly and and then decelerates. 

GridLayoutAnimationController

A layout animation controller is used to animated a grid layout's children. 

GridLayoutAnimationController.AnimationParameters

The set of parameters that has to be attached to each view contained in the view group animated by the grid layout animation controller. 

LayoutAnimationController

A layout animation controller is used to animated a layout's, or a view group's, children. 

LayoutAnimationController.AnimationParameters

The set of parameters that has to be attached to each view contained in the view group animated by the layout animation controller. 

LinearInterpolator

An interpolator where the rate of change is constant  

OvershootInterpolator

An interpolator where the change flings forward and overshoots the last value then comes back. 

RotateAnimation

An animation that controls the rotation of an object. 

ScaleAnimation

An animation that controls the scale of an object. 

Transformation

Defines the transformation to be applied at one point in time of an Animation. 

TranslateAnimation

An animation that controls the position of an object. 

+ Recent posts