Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ifyun/progressbar
Android CircleProgressBar and ProgressButton.
https://github.com/ifyun/progressbar
android-custom-view cirlce-progressbar progressbar progressbutton
Last synced: 29 days ago
JSON representation
Android CircleProgressBar and ProgressButton.
- Host: GitHub
- URL: https://github.com/ifyun/progressbar
- Owner: ifyun
- License: mit
- Created: 2018-10-27T05:52:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T07:11:22.000Z (over 4 years ago)
- Last Synced: 2023-08-28T02:06:32.367Z (over 1 year ago)
- Topics: android-custom-view, cirlce-progressbar, progressbar, progressbutton
- Language: Java
- Homepage:
- Size: 70.3 KB
- Stars: 51
- Watchers: 1
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ProgressBar
![last commit](https://img.shields.io/github/last-commit/imcloudfloating/ProgressBar)
![stars](https://img.shields.io/github/stars/imcloudfloating/ProgressBar)
![forks](https://img.shields.io/github/forks/imcloudfloating/ProgressBar)
![license](https://img.shields.io/github/license/imcloudfloating/ProgressBar)### Contains CircleProgressBar and ProgressButton.
Cirlce ProgressBar|Progress Button|
------------------|---------------|
![Circle ProgressBar](https://github.com/imcloudfloating/Images/blob/master/circle_progress_bar.gif?raw=true)|![Progress Button](https://github.com/imcloudfloating/Images/blob/master/progress_button.gif?raw=true)## Gradle:
Add it in your root build.gradle at the end of repositories:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```Add the dependency
```gradle
dependencies {
implementation 'com.github.imcloudfloating:ProgressBar:1.1'
}
```## Use Cirlce ProgressBar
```xml
```
If you want a fanshaped progress bar, let progressWidth >= min(layout_width, layout_height)
```java
cirlceProgressBar.setMinProgress(-100) //minProgress can be negative, default is 0
circleProgressBar.setMaxProgress(100) //default value is 100
circleProgressBar.setProgress(20)
```## Use Progress Button
```xml
```
```java
cirlceProgressBar.setMinProgress(-100) //minProgress can be negative, default is 0
circleProgressBar.setMaxProgress(100) //default value is 100
circleProgressBar.setProgress(20)
```