Git Product home page Git Product logo

easyandroidanimations's Introduction

EasyAndroidAnimations

Easy Android Animations is an animation library that aims to make android animations easier, with 50+ builtin animations, it allows you to introduce many complex animation effects in your application with one or two lines of code.

Demo

Demo Video

ScreenShot

Download Demo APK

Usage:

Including In Your Project

You can include the library directly in your Gradle project:

  • Add the following to your build.gradle:
repositories {
       maven { url "https://jitpack.io" }
}

dependencies {
       compile 'com.github.2359media:EasyAndroidAnimations:0.8'
}

You can download this jar file and include it in your project, otherwise you can download the source code and customize it according to your need.

Code Samples

See Animation_demo/ folder for a working implementation of this library.

  1. For example, if you wanted a view to mimic the bounce animation with the default parameters,
  new BounceAnimation(yourView).animate();
  1. If you wanted to use your own parameters instead of the default ones,
  new BounceAnimation(yourView)
    .setBounceDistance(50)
    .setBounces(5)
    .setDuration(500)
    .animate();
  1. Here's another example of mimicking the explode animation with your own parameters as well as the addition of an animation listener.
  new ExplodeAnimation(yourView)
    .setExplodeMatrix(ExplodeAnimation.MATRIX_2X2)
    .setInterpolator(new DecelerateInterpolator())
    .setDuration(500)
    .setListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        *perform your own functions here when animation ends*
      }
    })
    .animate();
  1. It is also possible to play several animations in parallel using the ParallelAnimator class. The following example scales in a view and flips it horizontally at the same time.
  new ParallelAnimator()
    .add(new ScaleInAnimation(yourView))
    .add(new FlipHorizontalAnimation(yourView))
    .setDuration(500)
    .animate();

Coding Robos

Umair Vatao, Nee Si Yao, Phu Tang

easyandroidanimations's People

Contributors

umairvatao avatar jitpack-io avatar neesiyao avatar pgq10240817 avatar yapdianhao 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.