Ecosyste.ms: Awesome

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

https://github.com/eralpyucel/CircleProgressView

An Android component to show circle progress in percentage.
https://github.com/eralpyucel/CircleProgressView

android-component android-library android-ui percentage

Last synced: 1 day ago
JSON representation

An Android component to show circle progress in percentage.

Lists

README

        

# CircleProgressView
An Android component to show progress in percentage.

#### Screenshots:
![](https://github.com/eralpyucel/CircleProgressView/blob/master/preview.gif)

## Gradle

Add it in your root build.gradle at the end of repositories:

```
dependencies {
...
maven { url 'https://jitpack.io' }
}
```

Add the dependency:

```
dependencies {
compile 'com.github.eralpyucel:CircleProgressView:v1.1'
}
```

## Usage
### XML:
```xml

```

### Activity:
```java
mCircleProgressView = (CircleProgressView) findViewById(R.id.circle_progress_view);
mCircleProgressView.setTextEnabled(false);
mCircleProgressView.setInterpolator(new AccelerateDecelerateInterpolator());
mCircleProgressView.setStartAngle(45);
mCircleProgressView.setProgressWithAnimation(85, 2000);

mCircleProgressView.addAnimationListener(new ProgressAnimationListener() {
@Override
public void onValueChanged(float value) {

}

@Override
public void onAnimationEnd() {
Toast.makeText(MainActivity.this, "Animation of CircleProgressView done", Toast.LENGTH_SHORT).show();
}
});

```