Skip to content

ratty3697/android-smart-animation-library

Repository files navigation

android-smart-animation-library

this library is extended from -> http://www.github.com/JakeWharton/NineOldAndroids && https://github.com/daimajia/AnimationEasingFunctions && https://github.com/daimajia/AndroidViewAnimations

If you like this library then plz hit the star at the top right corner ;)

For any query or suggestion mail me at --> [email protected]

You can also watch video tutorial for this library --> https://www.youtube.com/watch?v=mtlGofEvOgo&list=PLgzxqIWMp5vZBrZDs2T2XThSPa8eNcF_a



You can Download sample app from google play store -->https://play.google.com/store/apps/details?id=com.podcopic.animationlib.androidsimplifiedanimation&hl=en

**This Library Contains 64 beautiful different Animations for android

This is android library for adding smart animation in any view of android(i.e. TextView , EditText ,LinearLayout etc...and everything ;) )

Features -->
1.)You can select any animation listed below on any view of android.
2.)you can set delay in ms to any animation acording to your need .
3.)for moving animation(i.e. Sliding from one point to other). you can set sliding length acording to you by default it is 1000 dp ;)
4.)you can set duration of animation in ms.
5.)you can control fading effect in animation using boolean variable.
6.)animation are already in diffrent thread so you dont have to add threads ...just simply add a single line of code and animation is done :D

How to Import this Library in Your Android studio Project?

step1 -->
click on FIRST(project's gradle file) gradle file (build.gradle) highlighted in yellow.


In this file ,You will see "alprojects" block where "jcenter()" is included
add this line of code just below "jcenter()"-->

maven { url "https://jitpack.io" }

It should look like this -->


step2 --> click on second(app's gradle file) gradle file(gradle.build) highlighted in yellow.

now in this file add this code in dependencies block

compile 'com.github.ratty3697:android-smart-animation-library:1.6'

it should look like this -->


NOTE--> In this file

1.)"compileSdkVersion" should be greater than or equals to 23
2.)"buildToolsVersion" should be greater than or equals to 23.0.1
3.)"minSdkVersion" should be greater than or equal to 10
4.)"targetSdkVersion" should be greater than or equal to 23

Now build your Project
if build successfull appeared then everything is done ;)

How to use this library

Now this is SIMPLIEST part
You can animate anything like --> textview , edittext ,linearlayout ,relativelayout ..etc and everything present in android
all you have to do is get its "id"
suppose my LinearLayout id is "layout21"
then to animate this LinearLayout simply add this code when you want to animate-->

StartSmartAnimation.startAnimation( findViewById(R.id.layout21) , AnimationType.BounceInDown , 2000 , 0 , true );


where -->
1st parameter is view to whom we want to animate
2nd paramenter is defining animation (you can get list of different animation at the bottom of page)
3rd parameter is animation duration in mili secind
4th parameter is delay before animation in mili second
5th parameter is boolean variable to enable/disable fading effect in animation.


"BounceInDown" refers animation should be of bounce in down type You can use any type of animation code listed below.

You can also change the slide length of the animation for those animation who also have slide effects(i.e. sliding from 1 position of screen to others ) you can adjust its sliding length(by default length is set to 1000 dp).
for this just add another int variable for slide length(in dp)

it will look like this -->

StartSmartAnimation.startAnimation( findViewById(R.id.layout21) , AnimationType.BounceInDown , 2000 , 0 , true , 300 );
where 300 is 300 dp sliding length for animation.

How to change animation type>

you can replace "BounceInDown" given in the code with these animation-->

e.g. --> StartSmartAnimation.startAnimation( findViewById(R.id.layout21) , AnimationType.ShakeBand , 2000 , 0 , true );

NON - sliding animation
1.)ShakeBand
2.)TakingOff
3.)Flash
4.)Pulse
5.)RubberBand
6.)Landing
7.)Shake
8.)Swing
9.)Wobble
10.)Bounce
11.)Tada
12.)StandUp
13.)Wave
14.)Hinge
15.)BounceIn
16.)FadeIn
17.)FadeOut
18.)FlipInX
19.)FlipInY
20.)FlipOutX
21.)FlipOutY
22.)RotateIn
23.)RotateInDownLeft
24.)RotateInDownRight
25.)RotateInUpLeft
26.)RotateInUpRight
27.)RotateOut
28.)RotateOutDownLeft
29.)RotateOutDownRight
30.)RotateOutUpLeft
31.)RotateOutUpRight
32.)ZoomIn
33.)ZoomInRubberBand
34.)ZoomOut

Sliding type animation
1.)DropOut
2.)RollIn
3.)RollOut
4.)BounceInDown
5.)BounceInUp
5.)BounceInLeft
6.)BounceInRight
7.)FadeInUp
8.)FadeInDown
9.)FadeInRight
10.)FadeInLeft
11.)FadeOutUp
12.)FadeOutDown
13.)FadeOutRight
14.)FadeOutLeft
15.)SlideInLeft
16.)SlideInUp
17.)SlideInDown
18.)SlideInRight
19.)SlideOutLeft
20.)SlideOutUp
21.)SlideOutDown
22.)SlideOutRight
23.)ZoomInDown
24.)ZoomInLeft
25.)ZoomInRight
26.)ZoomInUp
27.)ZoomOutDown
28.)ZoomOutLeft
29.)ZoomOutRight
30.)ZoomOutUp