# Animatable

Artifact: [androidx.constraintlayout:constraintlayout](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/motion/widget/Animatable.java+class:androidx.constraintlayout.motion.widget.Animatable) Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

*** ** * ** ***


```
public interface Animatable
```

<br />

Known direct subclasses [MotionHelperInterface](https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionHelperInterface)

|---|---|
| `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionHelperInterface` | This defined the interface for MotionLayout helpers Helpers can be used to draw motion effects or modify motions |

Known indirect subclasses [Carousel](https://developer.android.com/reference/androidx/constraintlayout/helper/widget/Carousel), [MotionEffect](https://developer.android.com/reference/androidx/constraintlayout/helper/widget/MotionEffect), [MotionHelper](https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionHelper)

|---|---|
| `https://developer.android.com/reference/androidx/constraintlayout/helper/widget/Carousel` | Carousel works within a MotionLayout to provide a simple recycler like pattern. |
| `https://developer.android.com/reference/androidx/constraintlayout/helper/widget/MotionEffect` | MotionHelper that automatically inserts keyframes for views moving in a given direction, out of: |
| `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionHelper` |   |

*** ** * ** ***

A helper interface allowing MotionLayout to directly drive custom views

## Summary

| ### Public methods |
|---|---|
| `abstract float` | `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/Animatable#getProgress()()` get the progress |
| `abstract void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/Animatable#setProgress(float)(float progress)` Set the progress |

## Public methods

### getProgress

Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

```
abstract float getProgress()
```

get the progress

| Returns |
|---|---|
| `float` |   |

### setProgress

Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

```
abstract void setProgress(float progress)
```

Set the progress

| Parameters |
|---|---|
| `float progress` |   |