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
fun MovementSpringAnimation(view: View, direction: MovementSpringAnimation.Direction, fadingEnabled: Boolean)
Types
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.