getAnimator

open fun <T> getAnimator(@NonNull name: String, @NonNull target: T, @NonNull property: Property<T, out Any>): ObjectAnimator

Creates and returns an ObjectAnimator that animates the given property. This can be added to an AnimatorSet to play multiple synchronized animations.

Return

An ObjectAnimator which animates the given property.

Parameters

name

Name of the property to be animated.

target

The target whose property is to be animated. See ofPropertyValuesHolder for more details.

property

The Property object being animated.