Animation library for Android Studio made by daimajia

Animation Library for Android Studio by daimajia

Original YouTube Logo

Article have related YouTube video

Inspired by an iOS animation library daimajia decided to create a library like that for Android Studio and did a very good job. Even though that the animation libary have many years on its back, it still runs smoothly when creating Android apps.

07-04-2022 |

Android Studio
Library

The AndroidViewAnimations library by daimajia is pretty easy to implement and understand. The project took daimajia two days to get up and running however has been updated a couple of time since.

To implement the project, follow these steps.

Implementation with Gradle


//build.gradle
dependencies {
    implementation 'com.daimajia.androidanimations:library:2.4@aar'
}

Implementation with Maven


<dependency>
    <groupId>com.daimajia.androidanimation</<groupId>
    <artifactId>library</artifactId>
    <version>2.4</<version>
</dependency>

After implementing the animation library to your project you can begin using it. Using the YoYo class and the method .with(), you can choose between a lot of different effects/animations. The cool thing is that you can use it on every kind of views. Just find your view by id and put it into the .playOn() method.

Using animation


YoYo.with(Techniques.Pulse)
    .duration(500)
    .repeat(3)
    .playOn(findViewById(R.id.edit_area));


Like what you see?


New C# Learning Area - Free!

Our website now offers a new section on C# theory, including code examples and related video tutorials.

ZetBit

Subscribe to ZetBits Newsletter