public class BlinkAnimation extends Animation
DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
BlinkAnimation(View view)
This animation causes the view to fade in and fade out a customizable
number of times.
|
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() |
int |
getNumOfBlinks() |
BlinkAnimation |
setDuration(long duration) |
BlinkAnimation |
setInterpolator(TimeInterpolator interpolator) |
BlinkAnimation |
setListener(AnimationListener listener) |
BlinkAnimation |
setNumOfBlinks(int numOfBlinks) |
public BlinkAnimation(View view)
view
- The view to be animated.public void animate()
Animation
public int getNumOfBlinks()
public BlinkAnimation setNumOfBlinks(int numOfBlinks)
numOfBlinks
- The number of blinks to set.public TimeInterpolator getInterpolator()
public BlinkAnimation setInterpolator(TimeInterpolator interpolator)
interpolator
- The interpolator of the entire animation to set.public long getDuration()
public BlinkAnimation setDuration(long duration)
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public BlinkAnimation setListener(AnimationListener listener)
listener
- The listener to set for the end of the animation.