Dynamicanimation

Create smooth animations with a physics-based animation API.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
December 4, 2019 1.0.0 - - 1.1.0-alpha03

Declaring dependencies

To add a dependency on DynamicAnimation, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    // Java language implementation
    implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"

    // Kotlin
    implementation "androidx.dynamicanimation:dynamicanimation-ktx:1.1.0-alpha03"
}

Kotlin

dependencies {
    // Java language implementation
    implementation("androidx.dynamicanimation:dynamicanimation:1.0.0")

    // Kotlin
    implementation("androidx.dynamicanimation:dynamicanimation-ktx:1.1.0-alpha03")
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.1.0

Version 1.1.0-alpha03

December 4, 2019

androidx.dynamicanimation:dynamicanimation:1.1.0-alpha03 is released with no notable public changes since 1.1.0-alpha02. Version 1.1.0-alpha03 contains these commits.

Version 1.1.0-alpha02

July 2, 2019

androidx.dynamicanimation:dynamicanimation:1.1.0-alpha02 is released. The commits included in this version can be found here.

Bug fixes

  • Fixed a bug in the handling of pending position when canceled (aosp/978170)

Version 1.1.0-alpha01

April 3, 2019

androidx.dynamicanimation:dynamicanimation:1.1.0-alpha01 is released. The commits included in this version can be found here.

Dynamicanimation-Ktx Version 1.0.0

DynamicAnimation-Ktx Version 1.0.0-alpha03

December 4, 2019

androidx.dynamicanimation:dynamicanimation-ktx:1.0.0-alpha03 is released with no notable public changes since 1.0.0-alpha02. Version 1.0.0-alpha03 contains these commits.

DynamicAnimation-Ktx Version 1.0.0-alpha02

April 3, 2019

androidx.dynamicanimation:dynamicanimation-ktx:1.0.0-alpha02 is released. The commits included in this version can be found here.

API changes

  • Changed springAnimationOfand flingAnimationOf to take in a setter and a getter instead of a target and a FloatPropertyCompat to instantiate a SpringAnimation and a FlingAnimation respectively.

Dynamicanimation-Ktx Version 1.0.0-alpha01

February 7, 2019

androidx.dynamicanimation:dynamicanimation-ktx:1.0.0-alpha01 is released. This is the first release of dynamic-animation-ktx.

New features

  • New Kotlin API for creating SpringAnimations and FlingAnimations