ViewPropertyAnimatorCompat
class ViewPropertyAnimatorCompat
kotlin.Any | |
↳ | androidx.core.view.ViewPropertyAnimatorCompat |
Summary
Public methods | |
---|---|
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
Unit |
cancel() 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! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
rotationBy(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
rotationXBy(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
rotationYBy(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
setDuration(value: Long) Sets the duration for the underlying animator that animates the requested properties. |
ViewPropertyAnimatorCompat! |
setInterpolator(value: Interpolator!) Sets the interpolator for the underlying animator that animates the requested properties. |
ViewPropertyAnimatorCompat! |
setListener(listener: ViewPropertyAnimatorListener!) Sets a listener for events in the underlying Animators that run the property animations. |
ViewPropertyAnimatorCompat! |
setStartDelay(value: Long) Sets the startDelay for the underlying animator that animates the requested properties. |
ViewPropertyAnimatorCompat! |
setUpdateListener(listener: ViewPropertyAnimatorUpdateListener!) Sets a listener for update events in the underlying Animator that runs the property animations. |
Unit |
start() Starts the currently pending property animations immediately. |
ViewPropertyAnimatorCompat! |
translationX(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
translationXBy(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
translationY(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
translationYBy(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
translationZ(value: Float) This method will cause the View's |
ViewPropertyAnimatorCompat! |
translationZBy(value: Float) This method will cause the View's |
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 |
ViewPropertyAnimatorCompat! |
withStartAction(runnable: Runnable!) Specifies an action to take place when the next animation runs. |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
ViewPropertyAnimatorCompat! |
This method will cause the View's |
Public methods
alpha
fun alpha(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's alpha
property to be animated to the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The value to be animated to. |
Return | |
---|---|
ViewPropertyAnimatorCompat! |
This object, allowing calls to methods in this class to be chained. |
alphaBy
fun alphaBy(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's alpha
property to be animated by the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The amount to be animated by, as an offset from the current value. |
Return | |
---|---|
ViewPropertyAnimatorCompat! |
This object, allowing calls to methods in this class to be chained. |
getDuration
fun getDuration(): Long
Returns the current duration of property animations. If the duration was set on this object, that value is returned. Otherwise, the default value of the underlying Animator is returned.
Return | |
---|---|
Long |
The duration of animations, in milliseconds. |
See Also
getInterpolator
fun getInterpolator(): Interpolator!
Returns the timing interpolator that this animation uses.
Return | |
---|---|
Interpolator! |
The timing interpolator for this animation. |
getStartDelay
fun getStartDelay(): Long
Returns the current startDelay of property animations. If the startDelay was set on this object, that value is returned. Otherwise, the default value of the underlying Animator is returned.
Return | |
---|---|
Long |
The startDelay of animations, in milliseconds. |
See Also
rotation
fun rotation(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's rotation
property to be animated to the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The value to be animated to. |
Return | |
---|---|
ViewPropertyAnimatorCompat! |
This object, allowing calls to methods in this class to be chained. |
rotationBy
fun rotationBy(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's rotation
property to be animated by the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The amount to be animated by, as an offset from the current value. |
Return | |
---|---|
ViewPropertyAnimatorCompat! |
This object, allowing calls to methods in this class to be chained. |
rotationX
fun rotationX(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's rotationX
property to be animated to the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The value to be animated to. |
Return | |
---|---|
ViewPropertyAnimatorCompat! |
This object, allowing calls to methods in this class to be chained. |
rotationXBy
fun rotationXBy(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's rotationX
property to be animated by the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The amount to be animated by, as an offset from the current value. |
Return | |
---|---|
ViewPropertyAnimatorCompat! |
This object, allowing calls to methods in this class to be chained. |
rotationY
fun rotationY(value: Float): ViewPropertyAnimatorCompat!
This method will cause the View's rotationY
property to be animated to the specified value. Animations already running on the property will be canceled.
Parameters | |
---|---|
value |
Float: The value to be animated to. |