# 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)

*** ** * ** ***


```
public abstract class DynamicAnimation.ViewProperty extends FloatPropertyCompat<View>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.dynamicanimation.animation.FloatPropertyCompat](https://developer.android.com/reference/androidx/dynamicanimation/animation/FloatPropertyCompat)\<[View](https://developer.android.com/reference/android/view/View.html)\> ||
|   | ↳ | [androidx.dynamicanimation.animation.DynamicAnimation.ViewProperty](https://developer.android.com/reference/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/androidx/dynamicanimation/animation/DynamicAnimation.ViewProperty` instance, the corresponding property value of the view will be updated through this ViewProperty instance.

## Summary

### Inherited methods

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

Create a `https://developer.android.com/reference/androidx/dynamicanimation/animation/FloatPropertyCompat` wrapper for a `https://developer.android.com/reference/android/util/FloatProperty.html` object.
`abstract float` `https://developer.android.com/reference/androidx/dynamicanimation/animation/FloatPropertyCompat#getValue(T)(T object)`

Returns the current value that this property represents on the given `object`.
`abstract void` `https://developer.android.com/reference/androidx/dynamicanimation/animation/FloatPropertyCompat#setValue(T,float)(T object, float value)`

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