Package com.tomtom.sdk.common.ui.animation

Types

Link copied to clipboard
interface AnimationProvider

Interface to provide the show/hide animation of the UI component. Implementation of this interface must be used with VisibilityAnimator.

Link copied to clipboard
data class AnimatorConfiguration(    val hideAnimationDuration: Duration = Duration.ofMilliseconds(DEFAULT_HIDE_DURATION),     val hideAnimationDelay: Duration = Duration.ofMilliseconds(DEFAULT_HIDE_DELAY),     val showAnimationDuration: Duration = Duration.ofMilliseconds(DEFAULT_SHOW_DURATION),     val showAnimationDelay: Duration = Duration.ZERO)

Provides animation configuration.

Link copied to clipboard
class CollapseAndHideAnimationProvider(target: View, configuration: AnimatorConfiguration = AnimatorConfiguration()) : AnimationProvider

Describes an animation of the target when alpha and scale are changed gradually and simultaneously - view is collapsing and disappearing.

Link copied to clipboard
class VisibilityAnimator(animationProvider: AnimationProvider)

Controls animation provided with animationProvider.