Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)
```