Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TomWithJerry/CoolAndroidAnim
CoolAndroidAnim - Android 6.0 Marshmallow Boot Animation.
https://github.com/TomWithJerry/CoolAndroidAnim
Last synced: 3 months ago
JSON representation
CoolAndroidAnim - Android 6.0 Marshmallow Boot Animation.
- Host: GitHub
- URL: https://github.com/TomWithJerry/CoolAndroidAnim
- Owner: TomWithJerry
- License: apache-2.0
- Created: 2016-01-18T12:30:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T02:58:27.000Z (over 8 years ago)
- Last Synced: 2024-06-16T01:33:22.146Z (5 months ago)
- Language: Java
- Homepage:
- Size: 1.37 MB
- Stars: 489
- Watchers: 17
- Forks: 77
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - CoolAndroidAnim - 酷炫的android loading效果 (进度条)
README
# CoolAndroidAnim
一个酷炫的android loading效果,想法来源于Google的nexus机子6.0系统的开机动画,也是对于它的一个模仿:从四个小球的
不同的组合动画(包括了缩放,旋转,移动,变色等)演变成loading字样的效果.# 效果
动画分为两部分:
- 循环变化的动画效果
- 调用结束API时从循环动画切换到结束动画![](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```
2.通过java代码引入
``` java
layout.addView(new CoolAnimView(MainActivity.this), params);
```# 结构
![](https://github.com/TomWithJerry/CoolAndroidAnim/raw/master/struc.jpeg)# 作者
[@Yellow5A5](https://github.com/Yellow5A5),[@yxping](https://github.com/yxping)# TODO
该库还未提供自由更改大小的能力