public class PuffInAnimation extends Animation
DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
PuffInAnimation(View view)
This animation scales down and fades in the view.
|
Modifier and Type | Method and Description |
---|---|
void |
animate()
This method animates the properties of the view specific to the Animation
object.
|
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
PuffInAnimation |
setDuration(long duration) |
PuffInAnimation |
setInterpolator(TimeInterpolator interpolator) |
PuffInAnimation |
setListener(AnimationListener listener) |
public PuffInAnimation(View view)
view
- The view to be animated.public void animate()
Animation
public TimeInterpolator getInterpolator()
public PuffInAnimation setInterpolator(TimeInterpolator interpolator)
interpolator
- The interpolator of the entire animation to set.public long getDuration()
public PuffInAnimation setDuration(long duration)
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public PuffInAnimation setListener(AnimationListener listener)
listener
- The listener to set for the end of the animation.