ViewPropertyAnimatorCompat

public final class ViewPropertyAnimatorCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.ViewPropertyAnimatorCompat


Summary

Public methods

ViewPropertyAnimatorCompat alpha(float value)

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

ViewPropertyAnimatorCompat alphaBy(float value)

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

void cancel()

Cancels all property animations that are currently running or pending.

long getDuration()

Returns the current duration of property animations.

Interpolator getInterpolator()

Returns the timing interpolator that this animation uses.

long getStartDelay()

Returns the current startDelay of property animations.

ViewPropertyAnimatorCompat rotation(float value)

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

ViewPropertyAnimatorCompat rotationBy(float value)

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

ViewPropertyAnimatorCompat rotationX(float value)

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

ViewPropertyAnimatorCompat rotationXBy(float value)

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

ViewPropertyAnimatorCompat rotationY(float value)

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

ViewPropertyAnimatorCompat rotationYBy(float value)

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

ViewPropertyAnimatorCompat scaleX(float value)

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

ViewPropertyAnimatorCompat scaleXBy(float value)

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

ViewPropertyAnimatorCompat scaleY(float value)

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

ViewPropertyAnimatorCompat scaleYBy(float value)

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

ViewPropertyAnimatorCompat setDuration(long value)

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

ViewPropertyAnimatorCompat setInterpolator(Interpolator value)

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

ViewPropertyAnimatorCompat setListener(ViewPropertyAnimatorListener listener)

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

ViewPropertyAnimatorCompat setStartDelay(long value)

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

ViewPropertyAnimatorCompat setUpdateListener(ViewPropertyAnimatorUpdateListener listener)

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

void start()

Starts the currently pending property animations immediately.

ViewPropertyAnimatorCompat translationX(float value)

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

ViewPropertyAnimatorCompat translationXBy(float value)

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

ViewPropertyAnimatorCompat translationY(float value)

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

ViewPropertyAnimatorCompat translationYBy(float value)

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

ViewPropertyAnimatorCompat translationZ(float value)

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

ViewPropertyAnimatorCompat translationZBy(float value)

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.