public static class SwipeAnimation.Builder extends Animation.Builder<SwipeAnimation,SwipeAnimation.Builder>
SwipeAnimation.duration, interpolator| Constructor and Description |
|---|
Builder()
Creates a new builder, which allows to configure and create instances of the class
SwipeAnimation. |
| Modifier and Type | Method and Description |
|---|---|
SwipeAnimation |
create()
Creates and returns the animation.
|
SwipeAnimation.Builder |
setDirection(SwipeAnimation.SwipeDirection direction)
Sets the direction of the animations, which are created by the builder.
|
SwipeAnimation.Builder |
setRelocateAnimationDuration(long relocateAnimationDuration)
Sets the duration of the animations, which are used to relocate the other tabs, when a
tab has been added or removed.
|
self, setDuration, setInterpolatorpublic Builder()
SwipeAnimation.public final SwipeAnimation.Builder setDirection(SwipeAnimation.SwipeDirection direction)
direction - The direction, which should be set, as a value of the enum SwipeAnimation.SwipeDirection. The direction may either be SwipeAnimation.SwipeDirection.LEFT_OR_TOP
or SwipeAnimation.SwipeDirection.RIGHT_OR_BOTTOMpublic final SwipeAnimation.Builder setRelocateAnimationDuration(long relocateAnimationDuration)
relocateAnimationDuration - The duration, which should be set, in milliseconds as a Long value or -1,
if the default duration should be usedpublic final SwipeAnimation create()
Animation.Buildercreate in class Animation.Builder<SwipeAnimation,SwipeAnimation.Builder>