Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wuyr/rippleanimation
仿酷安客户端的主题切换动画效果
https://github.com/wuyr/rippleanimation
Last synced: 4 days ago
JSON representation
仿酷安客户端的主题切换动画效果
- Host: GitHub
- URL: https://github.com/wuyr/rippleanimation
- Owner: wuyr
- License: apache-2.0
- Created: 2018-03-16T06:38:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T17:13:34.000Z (almost 6 years ago)
- Last Synced: 2023-11-07T18:05:30.168Z (about 1 year ago)
- Language: Java
- Size: 12.1 MB
- Stars: 389
- Watchers: 7
- Forks: 55
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 仿酷安客户端的主题切换动画效果
### 博客详情: http://blog.csdn.net/u011387817/article/details/79604418### 使用方式:
#### 添加依赖:
```
implementation 'com.wuyr:rippleanimation:1.0.0'
```### APIs:
|Method|Description|
|------|-----------|
|create(View onClickView)|创建动画对象(静态方法)|
|setDuration(long duration)|设置动画时长|
|setOnAnimationEndListener(Listener listener)|动画播放完毕监听器|
|start()|开始播放动画|### 使用示例:
```java
public void onClick(View view) {RippleAnimation.create(view).setDuration(duration).start();
//在这里切换你的主题
}```
## Demo下载: [app-debug.apk](https://github.com/wuyr/RippleAnimation/raw/master/app-debug.apk)
### 库源码地址: https://github.com/Ifxcyr/RippleAnimation## 效果图: (左边:酷安, 右边:RippleAnimation)
### 注意: RippleAnimation本身不提供主题切换, 只负责动画.![preview](https://github.com/wuyr/RippleAnimation/raw/master/previews/preview1.gif)![preview](https://github.com/wuyr/RippleAnimation/raw/master/previews/preview2.gif)