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, setInterpolator
public Builder()
SwipeAnimation
.@NonNull public final SwipeAnimation.Builder setDirection(@NonNull 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_BOTTOM
@NonNull public 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 used@NonNull public final SwipeAnimation create()
Animation.Builder
create
in class Animation.Builder<SwipeAnimation,SwipeAnimation.Builder>