public class TransferAnimation extends Animation
DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
TransferAnimation(View view)
This animation transfers the view to another view provided by the user
through scaling and translation.
|
Modifier and Type | Method and Description |
---|---|
void |
animate()
This method animates the properties of the view specific to the Animation
object.
|
View |
getDestinationView() |
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
TransferAnimation |
setDestinationView(View destinationView) |
TransferAnimation |
setDuration(long duration) |
TransferAnimation |
setInterpolator(TimeInterpolator interpolator) |
TransferAnimation |
setListener(AnimationListener listener) |
public TransferAnimation(View view)
view
- The view to be animated.public void animate()
Animation
public View getDestinationView()
public TransferAnimation setDestinationView(View destinationView)
destinationView
- The destination view to set to transfer the original view to.public TimeInterpolator getInterpolator()
public TransferAnimation setInterpolator(TimeInterpolator interpolator)
interpolator
- The interpolator of the entire animation to set.public long getDuration()
public TransferAnimation setDuration(long duration)
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public TransferAnimation setListener(AnimationListener listener)
listener
- The listener to set for the end of the animation.