Skip to content

Commit

Permalink
更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yxping committed Feb 21, 2016
1 parent 8645416 commit f19fe94
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 108 deletions.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# CoolAndroidAnim
CoolAndroidAnim
一个酷炫的android loading效果,想法来源于Google的nexus机子6.0系统的开机动画,也是对于它的一个模仿:从四个小球的
不同的组合动画(包括了缩放,旋转,移动,变色等)演变成loading字样的效果.

# 效果
![](https://github.com/TomWithJerry/CoolAndroidAnim/raw/master/pic1.gif)
![](https://github.com/TomWithJerry/CoolAndroidAnim/raw/master/pic2.gif)

# api
CoolAnimView.java
``` java
/**
* 调用该方法可以使动画进入结束动画的阶段,而具体结束动画的时间,需要通过接口回调来获得
*/
void stopAnim();

/**
* 设置结束动画的监听
*/
void setOnCoolAnimViewListener(OnCoolAnimViewListener onCoolAnimViewListener);
```

# 使用方法
1.通过XML设置
``` xml
<com.tomandjerry.coolanim.lib.CoolAnimView
android:id="@+id/cool_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
```
2.通过java代码引入
``` java
layout.addView(new CoolAnimView(MainActivity.this), params);
```

# 结构
![](https://github.com/TomWithJerry/CoolAndroidAnim/raw/master/struc.jpeg)

# 作者
@Yellow5A5,@yxping

# TODO
该库还未提供自由更改大小的能力

1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions app/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions app/proguard-rules.pro

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/AndroidManifest.xml

This file was deleted.

Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
6 changes: 0 additions & 6 deletions app/src/main/res/values/colors.xml

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/res/values/strings.xml

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/res/values/styles.xml

This file was deleted.

This file was deleted.

Binary file added pic1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added struc.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f19fe94

Please sign in to comment.