Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Dynamicanimation

Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
July 2, 2019 1.0.0 - - 1.1.0-alpha02

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:

dependencies {
    def dynamicanimation_version = "1.0.0"
    def dynamicanimation_ktx_version = "1.0.0-alpha02"

    // Java
    implementation "androidx.dynamicanimation:dynamicanimation:$dynamicanimation_version"

    // Kotlin
    implementation "androidx.dynamicanimation:dynamicanimation-ktx:$dynamicanimation_ktx_version"
}

For more information about dependencies, see Add build dependencies.

Version 1.1.0

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