android-view-animations-java
Introduction: Awesome library to use the view animation system to perform tweened animations such as Attention, Bounce, Fade, Flip, Rotate, Slide and Zoom on Views.
Tags:

Get
Gradle
- Add this to
build.gradleof project gradle dependency
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add this to
build.gradleof app gradle dependency
dependencies {
implementation 'com.github.gayanvoice:android-animations:1.0.2'
}
Or
Maven
- Add this to
build.gradleof project gradle dependency
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
- Add this to
build.gradleof module gradle dependency
<dependency>
<groupId>com.github.gayanvoice</groupId>
<artifactId>android-animations</artifactId>
<version>1.0.2</version>
</dependency>
Usage
Import render animations
import render.animations.*;
Start animation
// Declare TextView
TextView AppleText = findViewById(R.id.TextView);
// Create Render Class
Render render = new Render(MainActivity.this);
// Set Animation
render.setAnimation(Attention.Wobble(AppleText));
render.start();
Animations
To animate the view, add the class name and specific animation method namesetAnimation to an view. You can include the method setDuration to specify duration of animation. Default value for duration is 1000 Milliseconds. Finally you need to add one of the following classes to the view:
| Class Name | ||||||
|---|---|---|---|---|---|---|
Attention |
Bounce |
Fade |
Flip |
Rotate |
Slide |
Zoom |
Attention
Attention |
|||
|---|---|---|---|
Bounce |
![]() |
Flash |
![]() |
Pulse |
![]() |
Ruberband |
![]() |
Shake |
![]() |
Standup |
![]() |
Swing |
![]() |
Tada |
![]() |
Wave |
![]() |
Wobble |
![]() |
Bounce
Bounce |
|||
|---|---|---|---|
InDown |
![]() |
InUp |
![]() |
InLeft |
![]() |
InRight |
![]() |
In |
![]() |
Fade
Fade |
|||
|---|---|---|---|
InDown |
![]() |
InUp |
![]() |
InLeft |
![]() |
InRight |
![]() |
OutDown |
![]() |
OutUp |
![]() |
OutLeft |
![]() |
OutRight |
![]() |
In |
![]() |
Out |
![]() |
Flip
Flip |
|||
|---|---|---|---|
InX |
![]() |
InY |
![]() |
OutX |
![]() |
OutY |
![]() |
Rotate
Rotate |
|||
|---|---|---|---|
InDownLeft |
![]() |
InDownRight |
![]() |
InUpLeft |
![]() |
InUpRight |
![]() |
OutDownLeft |
![]() |
OutDownRight |
![]() |
OutUpLeft |
![]() |
OutUpRight |
![]() |
In |
![]() |
Out |
![]() |
Slide
Slide |
|||
|---|---|---|---|
InDown |
![]() |
InUp |
![]() |
InLeft |
![]() |
InRight |
![]() |
OutDown |
![]() |
OutUp |
![]() |
OutLeft |
![]() |
OutRight |
![]() |
Zoom
Zoom |
|||
|---|---|---|---|
InDown |
![]() |
InUp |
![]() |
InLeft |
![]() |
InRight |
![]() |
OutDown |
![]() |
OutUp |
![]() |
OutLeft |
![]() |
OutRight |
![]() |
In |
![]() |
Out |
![]() |
Develop the library
- Select
GitfromCheck out project from Version Controlin your Android Studio - Paste the repository url and click
Clonebutton - Click
Yesto open the repository Buildusing the latestGradleversion
Go to https://github.com/gayanvoice/android-vpn-client-ics-openvpn#develop see the steps
Thanks
This library is based on https://github.com/daimajia/AndroidViewAnimations and the Kotlin version of this library is available in https://github.com/gayanvoice/android-view-animations-kotlin

























































