Class SubsamplingScaleImageView.AnimationBuilder
-
- All Implemented Interfaces:
public final class SubsamplingScaleImageView.AnimationBuilder
Builder class used to set additional options for a scale animation. Create an instance using animateScale, then set your options and call start.
-
-
Method Summary
Modifier and Type Method Description SubsamplingScaleImageView.AnimationBuilder
withDuration(long duration)
Desired duration of the anim in milliseconds. SubsamplingScaleImageView.AnimationBuilder
withInterruptible(boolean interruptible)
Whether the animation can be interrupted with a touch. SubsamplingScaleImageView.AnimationBuilder
withEasing(int easing)
Set the easing style. SubsamplingScaleImageView.AnimationBuilder
withOnAnimationEventListener(SubsamplingScaleImageView.OnAnimationEventListener listener)
Add an animation event listener. void
start()
Starts the animation. -
-
Method Detail
-
withDuration
SubsamplingScaleImageView.AnimationBuilder withDuration(long duration)
Desired duration of the anim in milliseconds. Default is 500.
- Parameters:
duration
- duration in milliseconds.- Returns:
this builder for method chaining.
-
withInterruptible
SubsamplingScaleImageView.AnimationBuilder withInterruptible(boolean interruptible)
Whether the animation can be interrupted with a touch. Default is true.
- Parameters:
interruptible
- interruptible flag.- Returns:
this builder for method chaining.
-
withEasing
SubsamplingScaleImageView.AnimationBuilder withEasing(int easing)
Set the easing style. See static fields. EASE_IN_OUT_QUAD is recommended, and the default.
- Parameters:
easing
- easing style.- Returns:
this builder for method chaining.
-
withOnAnimationEventListener
SubsamplingScaleImageView.AnimationBuilder withOnAnimationEventListener(SubsamplingScaleImageView.OnAnimationEventListener listener)
Add an animation event listener.
- Parameters:
listener
- The listener.- Returns:
this builder for method chaining.
-
start
void start()
Starts the animation.
-
-
-
-