-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
43 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
该库还未提供自由更改大小的能力 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/src/androidTest/java/com/tomandjerry/coolandroidanim/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
app/src/test/java/com/tomandjerry/coolandroidanim/ExampleUnitTest.java
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.