Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nex3z/expandablecircleview
A circular progress indicator that expands or shrinks the circle to the given progress.
https://github.com/nex3z/expandablecircleview
Last synced: 3 days ago
JSON representation
A circular progress indicator that expands or shrinks the circle to the given progress.
- Host: GitHub
- URL: https://github.com/nex3z/expandablecircleview
- Owner: nex3z
- License: apache-2.0
- Created: 2016-06-19T09:41:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-11T14:32:28.000Z (almost 4 years ago)
- Last Synced: 2023-09-07T08:10:33.208Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 2.24 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ExpandableCircleView
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)
A circular progress indicator that expands or shrinks the inner circle to the given progress.
![expand](images/sample.gif)
## Gradle
```
dependencies {
compile 'com.nex3z:expandable-circle-view:0.1.2'
}
```## Usage
```xml
```
Use `setProgress(int progress)` or `setProgress(int progress, boolean animate)` to expand the inner circle according to the specified progress.
```java
mCircle = (ExpandableCircleView) findViewById(R.id.circle);
mCircle.setProgress(50, true);
```## Customization
The `ExpandableCircleView` can be customized with the following attributes.
| Attribute | Format | Description |
|-----------------------------|-----------|-----------------------------------------------------------------------------------|
| app:innerColor | color | The color of inner circle. |
| app:outerColor | color | The color of outer circle. |
| app:max | integer | The upper limit of this progress bar's range. |
| app:showProgressText | boolean | Whether the progress text is shown in the center of the circle. Default is false. |
| app:progressTextSize | dimension | The size of progress text. |
| app:progressTextColor | color | The color of progress text. |
| app:progressTextSuffix | string | The suffix string to be appended to the progress text. |
| app:expandAnimationDuration | integer | The animation duration in millisecond for the inner circle to expand. |