MovementSpringAnimation

open class MovementSpringAnimation(view: View, direction: MovementSpringAnimation.Direction, fadingEnabled: Boolean)

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

Parameters

view

View to animate.

direction

Direction to move. For more details refer to Direction.

fadingEnabled

Whether fading effect is enabled.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
fun animateToPosition(positionPx: Float, velocityPxPerSec: Float? = null, animationRange: ClosedFloatingPointRange<Float>? = null, endListener: (canceled: Boolean) -> Unit? = null)

Performs an animation to move a view to positionPx with velocityPxPerSec.

Inheritors

Link copied to clipboard
Link copied to clipboard