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.

Inheritors

Constructors

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

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.