# DynamicAnimation.ViewProperty

Artifact: [androidx.dynamicanimation:dynamicanimation](https://developer.android.com/jetpack/androidx/releases/dynamicanimation) [View Source](https://cs.android.com/search?q=file:androidx/dynamicanimation/animation/DynamicAnimation.java+class:androidx.dynamicanimation.animation.DynamicAnimation.ViewProperty) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/dynamicanimation#1.0.0)

*** ** * ** ***


```
abstract class DynamicAnimation.ViewProperty : FloatPropertyCompat<View!>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.dynamicanimation.animation.FloatPropertyCompat](https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat)\<[View](https://developer.android.com/reference/android/view/View.html)!\> ||
|   | ↳ | [androidx.dynamicanimation.animation.DynamicAnimation.ViewProperty](https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/DynamicAnimation.ViewProperty) |

*** ** * ** ***

ViewProperty holds the access of a property of a `https://developer.android.com/reference/android/view/View.html`. When an animation is created with a `https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/DynamicAnimation.ViewProperty` instance, the corresponding property value of the view will be updated through this ViewProperty instance.

## Summary

### Inherited functions

From [androidx.dynamicanimation.animation.FloatPropertyCompat](https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat) `java-static https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat<T!>!` `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 24)
<T> https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat#createFloatPropertyCompat(android.util.FloatProperty<T>)(property: https://developer.android.com/reference/android/util/FloatProperty.html<T!>!)`

Create a `https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat` wrapper for a `https://developer.android.com/reference/android/util/FloatProperty.html` object.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` `https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat#getValue(T)(object: T!)`

Returns the current value that this property represents on the given `object`.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/dynamicanimation/animation/FloatPropertyCompat#setValue(T,float)(object: T!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Sets the value on `object` which this property represents.