public class BlindAnimation extends Animation
View.INVISIBLE
.DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
BlindAnimation(View view)
This animation hides the view by scaling its Y property to mimic the
"pulling of blinds".
|
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() |
BlindAnimation |
setDuration(long duration) |
BlindAnimation |
setInterpolator(TimeInterpolator interpolator) |
BlindAnimation |
setListener(AnimationListener listener) |
public BlindAnimation(View view)
View.INVISIBLE
.view
- The view to be animated.public void animate()
Animation
public TimeInterpolator getInterpolator()
public BlindAnimation setInterpolator(TimeInterpolator interpolator)
interpolator
- The interpolator of the entire animation to set.public long getDuration()
public BlindAnimation setDuration(long duration)
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public BlindAnimation setListener(AnimationListener listener)
listener
- The listener to set for the end of the animation.