MovementSpringAnimation
open class MovementSpringAnimation(view: View, direction: MovementSpringAnimation.Direction, fadingEnabled: Boolean)
Content copied to clipboard
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)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun animateToPosition(positionPx: Float, velocityPxPerSec: Float? = null, animationRange: ClosedFloatingPointRange<Float>? = null, endListener: (canceled: Boolean) -> Unit? = null)
Content copied to clipboard
Performs an animation to move a view to positionPx with velocityPxPerSec.