Code Monkey home page Code Monkey logo

android-smart-animation-library's Introduction

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

android-smart-animation-library's People

Contributors

ratty3697 avatar

Watchers

James Cloos avatar Paresh Kanani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.