Skip to content

Commit 2fa5062

Browse files
committed
update
1 parent 9917f1f commit 2fa5062

File tree

29 files changed

+289
-8
lines changed

29 files changed

+289
-8
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: java
2+
jdk: oraclejdk7
3+
env:
4+
matrix:
5+
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
6+
7+
before_install:
8+
# Install base Android SDK
9+
- sudo apt-get update -qq
10+
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi
11+
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
12+
- tar xzf android-sdk_r22.3-linux.tgz
13+
- export ANDROID_HOME=$PWD/android-sdk-linux
14+
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
15+
16+
# Gradle
17+
- wget http://services.gradle.org/distributions/gradle-1.9-bin.zip
18+
- unzip gradle-1.9-bin.zip
19+
- export GRADLE_HOME=$PWD/gradle-1.9
20+
- export PATH=$GRADLE_HOME/bin:$PATH
21+
22+
# Install required components
23+
# For a full list, run `android list sdk -a --extended`
24+
# Note that sysimg-19 downloads only ARM, because only the first license query is accepted.
25+
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
26+
- echo yes | android update sdk --all --filter build-tools-19.0.3 --no-ui --force > /dev/null
27+
- echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null
28+
- echo yes | android update sdk --filter sysimg-19 --no-ui --force > /dev/null
29+
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
30+
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
31+
32+
install:
33+
- ./gradlew assemble

README.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Android View Animations [![Build Status](https://travis-ci.org/daimajia/AndroidAnimations)](https://travis-ci.org/daimajia/AndroidAnimations)
2+
3+
One day, I saw [an iOS library](https://github.com/ArtFeel/AFViewShaker), which is a view shaker, it's very beautiful. I think Android also need one, and should be better.
4+
5+
So, I started to collect animation effects... and in two days, this project born.
6+
7+
# Demo
8+
9+
![](http://ww3.sinaimg.cn/mw690/610dc034jw1ehnv2r93jpg20bx0kokjl.gif)
10+
11+
# Usage
12+
13+
## Step 1
14+
15+
```groovy
16+
dependencies {
17+
compile 'com.nineoldandroids:library:2.4.0'
18+
compile 'com.daimajia.androidanimations:library:1.0.0@aar'
19+
}
20+
```
21+
or Maven
22+
23+
```xml
24+
<dependency>
25+
<groupId>com.nineoldandroids</groupId>
26+
<artifactId>library</artifactId>
27+
<version>2.4.0</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>com.daimajia.androidanimation</groupId>
31+
<artifactId>library</artifactId>
32+
<version>1.0.0</version>
33+
<type>apklib</type>
34+
</dependency>
35+
```
36+
37+
## Step2
38+
39+
Just like play Yo-yo.
40+
41+
```java
42+
YoYo.play(YoYo.Techniques.Shake,findViewById(R.id.eidtor));
43+
```
44+
45+
### Effects
46+
#### attension
47+
`Flash`, `Pulse`, `RubberBand`, `Shake`, `Swing`, `Wobble`, `Bounce`, `Tada`
48+
49+
#### Special
50+
`Hinge`, `RollIn`, `RollOut`
51+
52+
#### Bounce
53+
`BounceIn`, `BounceInDown`, `BounceInLeft`, `BounceInRight`, `BounceInUp`
54+
55+
#### Fade
56+
`FadeIn`, `FadeInDown`, `FadeInLeft`, `FadeInRight`
57+
`FadeOut`, `FadeOutDown`, `FadeOutLeft`, `FadeOutRight`, `FadeOutUp`
58+
59+
#### Flip
60+
`FlipInX`, `FlipOutX`, `FlipOutY`
61+
62+
#### Rotate
63+
`RotateIn`, `RotateInDownLeft`, `RotateInDownRight`, `RotateInUpLeft`, `RotateInUpRight`
64+
`RotateOut`, `RotateOutDownLeft`, `RotateOutDownRight`, `RotateOutUpLeft`, `RotateOutUpRight`
65+
66+
#### Slide
67+
`SlideInLeft`, `SlideInRight`, `SlideInUp`, `SlideInDown`
68+
`SlideOutLeft`, `SlideOutRight`, `SlideOutUp`, `SlideOutDown`
69+
70+
#### Zoom
71+
`ZoomIn`, `ZoomInDown`, `ZoomInLeft`, `ZoomInRight`, `ZoomInUp`
72+
`ZoomOut`, `ZoomOutDown`, `ZoomOutLeft`, `ZoomOutRight`, `ZoomOutUp`
73+
74+
Welcome contribute your amazing animation effect. :-D
75+
76+
#About me
77+
78+
A student in mainland China.
79+
80+
Welcome to [offer me an internship](mailto:[email protected]).
81+
If you have any new idea about this project, feel free to [contact me](mailto:[email protected]).

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:0.11.+'
9-
9+
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
1212
}
File renamed without changes.

app/build.gradle renamed to demo/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apply plugin: 'android-sdk-manager'
12
apply plugin: 'android'
23

34
android {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)