AnimationUtils

class AnimationUtils(context: Context)

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
val DURATION_LONG: Long = 600
Link copied to clipboard
val DURATION_SHORT: Long = 300

Functions

Link copied to clipboard
fun applyAnimation(view: View, @AnimRes resId: Int)
fun applyAnimation(view: View, animation: Animations, duration: Long = DURATION_SHORT, startDelay: Long = 0, vararg params: Float, action: () -> Unit = {})
Link copied to clipboard
fun scale(view: View, duration: Long, startDelay: Long, fromX: Float = 1.0f, toX: Float = 1.0f, fromY: Float = 1.0f, toY: Float = 1.0f, pivotX: Float = 0.5f, pivotY: Float = 0.5f, interpolator: Interpolator? = null, action: () -> Unit)
Link copied to clipboard
fun translate(view: View, duration: Long, startDelay: Long, fromX: Float = 0.0f, toX: Float = 0.0f, fromY: Float = 0.0f, toY: Float = 0.0f, action: () -> Unit)