Android 12 Developer Preview is here! Try it out, and give us your feedback!

ViewPropertyAnimatorCompat

class ViewPropertyAnimatorCompat
kotlin.Any
   ↳ androidx.core.view.ViewPropertyAnimatorCompat

Summary

Public methods
ViewPropertyAnimatorCompat!
alpha(value: Float)

This method will cause the View's alpha property to be animated to the specified value.

ViewPropertyAnimatorCompat!
alphaBy(value: Float)

This method will cause the View's alpha property to be animated by the specified value.

Unit

Cancels all property animations that are currently running or pending.

Long

Returns the current duration of property animations.

Interpolator!

Returns the timing interpolator that this animation uses.

Long

Returns the current startDelay of property animations.

ViewPropertyAnimatorCompat!
rotation(value: Float)

This method will cause the View's rotation property to be animated to the specified value.

ViewPropertyAnimatorCompat!
rotationBy(value: Float)

This method will cause the View's rotation property to be animated by the specified value.

ViewPropertyAnimatorCompat!
rotationX(value: Float)

This method will cause the View's rotationX property to be animated to the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's rotationX property to be animated by the specified value.

ViewPropertyAnimatorCompat!
rotationY(value: Float)

This method will cause the View's rotationY property to be animated to the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's rotationY property to be animated by the specified value.

ViewPropertyAnimatorCompat!
scaleX(value: Float)

This method will cause the View's scaleX property to be animated to the specified value.

ViewPropertyAnimatorCompat!
scaleXBy(value: Float)

This method will cause the View's scaleX property to be animated by the specified value.

ViewPropertyAnimatorCompat!
scaleY(value: Float)

This method will cause the View's scaleY property to be animated to the specified value.

ViewPropertyAnimatorCompat!
scaleYBy(value: Float)

This method will cause the View's scaleY property to be animated by the specified value.

ViewPropertyAnimatorCompat!
setDuration(value: Long)

Sets the duration for the underlying animator that animates the requested properties.

ViewPropertyAnimatorCompat!

Sets the interpolator for the underlying animator that animates the requested properties.

ViewPropertyAnimatorCompat!

Sets a listener for events in the underlying Animators that run the property animations.

ViewPropertyAnimatorCompat!

Sets the startDelay for the underlying animator that animates the requested properties.

ViewPropertyAnimatorCompat!

Sets a listener for update events in the underlying Animator that runs the property animations.

Unit

Starts the currently pending property animations immediately.

ViewPropertyAnimatorCompat!

This method will cause the View's translationX property to be animated to the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's translationX property to be animated by the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's translationY property to be animated to the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's translationY property to be animated by the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's translationZ property to be animated to the specified value.

ViewPropertyAnimatorCompat!

This method will cause the View's translationZ property to be animated by the specified value.

ViewPropertyAnimatorCompat!
withEndAction(runnable: Runnable!)

Specifies an action to take place when the next animation ends.

ViewPropertyAnimatorCompat!

The View associated with this ViewPropertyAnimator will have its layer type set to View#LAYER_TYPE_HARDWARE for the duration of the next animation.

ViewPropertyAnimatorCompat!

Specifies an action to take place when the next animation runs.

ViewPropertyAnimatorCompat!
x(value: Float)

This method will cause the View's x property to be animated to the specified value.

ViewPropertyAnimatorCompat!
xBy(value: Float)

This method will cause the View's x property to be animated by the specified value.

ViewPropertyAnimatorCompat!
y(value: Float)

This method will cause the View's y property to be animated to the specified value.

ViewPropertyAnimatorCompat