https://github.com/faultaddr/dynamiccircleview
Dynamic Circle View for Android
https://github.com/faultaddr/dynamiccircleview
Last synced: 17 days ago
JSON representation
Dynamic Circle View for Android
- Host: GitHub
- URL: https://github.com/faultaddr/dynamiccircleview
- Owner: faultaddr
- Created: 2022-05-04T11:27:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T09:03:00.000Z (about 4 years ago)
- Last Synced: 2025-03-21T22:42:24.229Z (about 1 year ago)
- Language: Java
- Size: 161 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DynamicCircleView
[](https://jitpack.io/#faultaddr/DynamicCircleView)
[](https://github.com/996icu/996.ICU/blob/master/LICENSE)
[](https://996.icu)
Dynamic Circle View for Android, XIAOMI Sport old version main page View.
### Display of results
### How to Use
in project build.gradle
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
in module build.gradle
```gradle
dependencies {
implementation 'com.github.faultaddr:DynamicCircleView:0.1.0'
}
```
#### Using DynamicCircleView in xml
```xml
```
#### Using DynamicCircleView in Java
```java
DynamicCircleView.ViewConfig config = new DynamicCircleView.ViewConfig();
DynamicCircleView dynamicCircleView =
config.startColor(Color.parseColor("#fffff1"))
.endColor(Color.parseColor("#c2ffec"))
.circleCount(1)
.lineColor(Color.parseColor("#c7ffec"))
.bgPic(R.drawable.main_pic)
.config(this);
// start the animation
dynamicCircleView.startScan();
```
### Attributes:
- bgColor: background color
- bgPic: background picture
- circleCount: the circle count in the view
- startColor&endColor: gradient color
- lineColor: the color of line
- count: the text in the middle of the view
## Maintainers
[@faultaddr](https://github.com/faultaddr)。
## Star History
[](https://star-history.com/#bytebase/star-history&Date)
## Contributing
Feel free to dive in! [open an issue](https://github.com/faultaddr/DynamicCircleView/issues/new) or submit PRs.
DynamicCircleView follows the [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) Code of Conduct.
## License