https://github.com/jakob-grabner/Circle-Progress-View
Animated circular progress view for Android
https://github.com/jakob-grabner/Circle-Progress-View
android circle progress-bar view
Last synced: 7 months ago
JSON representation
Animated circular progress view for Android
- Host: GitHub
- URL: https://github.com/jakob-grabner/Circle-Progress-View
- Owner: jakob-grabner
- License: mit
- Created: 2015-02-13T07:42:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T05:19:58.000Z (over 2 years ago)
- Last Synced: 2024-10-10T16:42:27.096Z (about 1 year ago)
- Topics: android, circle, progress-bar, view
- Language: Java
- Homepage:
- Size: 9.31 MB
- Stars: 1,322
- Watchers: 44
- Forks: 243
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - CircleView - 动画环形视图 (进度条)
README
# CircleView
An animated circle view. Can be used in 'value mode' or 'spinning mode'. Nice transitions between spinning and value. Can be used as a loading indicator and to show progress or values in a circular manner. In seek mode, it can also be used to set a value.

Try it out [here](https://play.google.com/store/apps/details?id=at.grabner.example.circleprogressview).
## Fully animated:

- Animated set value.
- Spinning mode.
- Transition from spinning mode to value mode.
## Fully customizable:

All parts come with a customizable color and thickness. Set the size of a part to 0 to hide it.
## Text sizes
Per default, the texts size is automatically calculated to fit in the circle.
## Colors
The spin bar color can consist of a single color or a gradient from up to 4 colors.

## Block Mode
- Via XML
```java
CircleProgressView:cpv_blockCount="18"
CircleProgressView:cpv_blockScale="0.9"
```
## Seek Mode
Set value on touch input. Enable it:
- Via Code:
```java
circleview.setSeekModeEnabled(true);
```
- Via XML:
```java
CircleProgressView:cpv_seekMode="true"
```
For more examples take a look at the example app.
## Add it to your project:
Get the latest release from https://jitpack.io/#jakob-grabner/Circle-Progress-View
```groovy
allprojects {
repositories {
// ...
maven { url "https://jitpack.io" }
}
}
dependencies {
// ...
implementation 'com.github.jakob-grabner:Circle-Progress-View:1.4'
}
```
## JavaDoc
Get it [here](https://jitpack.io/com/github/jakob-grabner/Circle-Progress-View/1.4/javadoc/).