Package com.tomtom.tools.android.core.animation.view

Types

Link copied to clipboard
class BothSideDismissalStrategy(context: Context, dismissViewWidthThreshold: Float) : DismissalStrategy
Link copied to clipboard
class BottomSideSpringAnimation(view: View, transitionType: BottomSideSpringAnimation.TransitionType, fadingEnabled: Boolean) : Animation

A custom Android animation to perform bottom side animated enter and exit of a view on the screen.

Link copied to clipboard
abstract class DismissalStrategy(context: Context, dismissViewWidthThreshold: Float)

Define dismissal behavior of an animation.

Link copied to clipboard
class DraggedViewPositionUpdater(view: View, fadingEnabled: Boolean)

A DraggedViewPositionUpdater updates horizontal view translation.

Link copied to clipboard
class HorizontalDirectionTracker

A HorizontalDirectionTracker tracks the direction of horizontal movement.

Link copied to clipboard
class HorizontalMovementSpringAnimation(view: View, fadingEnabled: Boolean) : MovementSpringAnimation
Link copied to clipboard
class LeftSideDismissalStrategy(context: Context, dismissViewWidthThreshold: Float) : DismissalStrategy
Link copied to clipboard
class LeftSideSpringAnimation(view: View, transitionType: LeftSideSpringAnimation.TransitionType, fadingEnabled: Boolean) : Animation

A custom Android animation to perform left side animated enter and exit of a view on the screen.

Link copied to clipboard
open class MovementSpringAnimation(view: View, direction: MovementSpringAnimation.Direction, fadingEnabled: Boolean)

A custom animation to perform movement of a view on the screen.

Link copied to clipboard
class RightSideDismissalStrategy(context: Context, dismissViewWidthThreshold: Float) : DismissalStrategy
Link copied to clipboard
class SpringAnimationConfiguration(context: Context)
Link copied to clipboard
class VerticalMoveAnimation(view: View, finalPositionPx: Int, fadingEnabled: Boolean) : Animation

A custom Android animation to perform animated movement of a view on the screen.

Link copied to clipboard
class VerticalMovementSpringAnimation(view: View, fadingEnabled: Boolean) : MovementSpringAnimation

Functions

Link copied to clipboard
fun View.applyDefaultStateListAnimatorIfNeeded()

Sets a StateListAnimator for click feedback to this if the user can interact with it by clicking it. This requires the view to have a click listener. Exceptions include EditTexts (the default animator is not wanted there) and views that have explicitly set a StateListAnimator.

Link copied to clipboard
fun keepAnimatorsInViewTreeInSync(view: View)

Applies StateListAnimators to the entire view hierarchy of view, ensuring that their look and feel are consistent. After calling this method, new child views introduced to the view hierarchy will automatically have their animators set as well if needed. This method is expected to be called by the system UI upon its initialisation.