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: 3 months ago
JSON representation
An Android component to show circle progress in percentage.
- Host: GitHub
- URL: https://github.com/eralpyucel/CircleProgressView
- Owner: eralpyucel
- Created: 2016-12-11T09:38:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T16:59:11.000Z (over 7 years ago)
- Last Synced: 2024-06-16T01:33:34.546Z (5 months ago)
- Topics: android-component, android-library, android-ui, percentage
- Language: Java
- Homepage:
- Size: 18.6 MB
- Stars: 76
- Watchers: 5
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - CircleProgressView - 显示百分比进度的安卓组件 (进度条)
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();
}
});
```