Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2359media/EasyAndroidAnimations
https://github.com/2359media/EasyAndroidAnimations
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/2359media/EasyAndroidAnimations
- Owner: 2359media
- License: apache-2.0
- Created: 2014-07-16T10:02:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T05:09:07.000Z (over 3 years ago)
- Last Synced: 2024-10-15T23:45:50.779Z (3 months ago)
- Language: HTML
- Size: 5.97 MB
- Stars: 1,386
- Watchers: 101
- Forks: 313
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- -awesome-android-ui - EasyAndroidAnimations - 2.0) | <img src="/art/EasyAndroidAnimations.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - EasyAndroidAnimations - 2.0) | <img src="/art/EasyAndroidAnimations.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - EasyAndroidAnimations - 2.0) | <img src="/art/EasyAndroidAnimations.gif" width="49%"> (Index)
- awesome-android-ui - https://github.com/2359media/EasyAndroidAnimations
- awesome-android-ui - https://github.com/2359media/EasyAndroidAnimations
README
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](https://raw.githubusercontent.com/2359media/EasyAndroidAnimations/master/demo.png)](http://www.youtube.com/watch?v=qb63BYjTebU)
Demo Video
----------[![ScreenShot](https://raw.githubusercontent.com/2359media/EasyAndroidAnimations/master/youtube.png)](http://www.youtube.com/watch?v=qb63BYjTebU)
[Download Demo APK](https://github.com/2359media/EasyAndroidAnimations/raw/master/Animation_demo/EasyAndroidAnimationsDemo.apk)
Usage:
======Including In Your Project
-------------------------You can include the library directly in your Gradle project:
- Add the following to your `build.gradle`:
```gradle
repositories {
maven { url "https://jitpack.io" }
}dependencies {
compile 'com.github.2359media:EasyAndroidAnimations:0.8'
}
```You can [download this jar file](https://raw.githubusercontent.com/2359media/EasyAndroidAnimations/master/easyandroidanimationslibrary-v0.5.jar) 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();
```2. If you wanted to use your own parameters instead of the default ones,
```
new BounceAnimation(yourView)
.setBounceDistance(50)
.setBounces(5)
.setDuration(500)
.animate();
```3. 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();
```4. 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](http://sg.linkedin.com/in/umairvatao), [Nee Si Yao](http://sg.linkedin.com/pub/si-yao-nee/7a/a62/203/), [Phu Tang]([email protected])