Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Airsaid/DiffuseView
This is a circle on the proliferation of Android custom view.
https://github.com/Airsaid/DiffuseView
Last synced: 3 months ago
JSON representation
This is a circle on the proliferation of Android custom view.
- Host: GitHub
- URL: https://github.com/Airsaid/DiffuseView
- Owner: Airsaid
- Created: 2016-09-27T09:32:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T09:48:56.000Z (over 7 years ago)
- Last Synced: 2024-06-16T06:34:34.004Z (5 months ago)
- Language: Java
- Size: 515 KB
- Stars: 118
- Watchers: 4
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - DiffuseView - 自定义的圆形扩散View (Wave)
README
# DiffuseView
This is a circle on the proliferation of Android custom view.(这是Android平台上一个自定义的圆形扩散View。)# 实现效果
![](https://github.com/Airsaid/DiffuseView/blob/master/DiffuseView.gif)# 使用
XML中:
``````
代码中:
```
DiffuseView mDiffuseView = (DiffuseView) findViewById(R.id.diffuseView);
mDiffuseView.start(); // 开始扩散
mDiffuseView.stop();// 停止扩散
```# 属性&方法
| 属性名|java方法| 作用 |
|------------|-----------|--------|
| diffuse_color| setColor(int colorId)|设置扩散圆颜色 |
| diffuse_coreColor| setCoreColor(int colorId)|设置中心圆颜色 |
| diffuse_coreImage| setCoreImage(int imageId)|设置中心圆图片 |
| diffuse_coreRadius| setCoreRadius(int radius)|设置中心圆半径 |
| diffuse_maxWidth| setMaxWidth(int maxWidth)|设置最大扩散宽度 |
| diffuse_width| setDiffuseWidth(int width)|设置扩散圆宽度,值越小越宽 |
| diffuse_speed| setDiffuseSpeed(int speed)|设置扩散速度 |# 联系我
[我的博客](http://blog.csdn.net/airsaid "http://blog.csdn.net/airsaid")# 感谢
> http://www.kancloud.cn/digest/liuguilin/120373