Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victorkp/roundprogressview
A simple circular progress indicator, with parametric animations for indeterminate length operations
https://github.com/victorkp/roundprogressview
Last synced: 1 day ago
JSON representation
A simple circular progress indicator, with parametric animations for indeterminate length operations
- Host: GitHub
- URL: https://github.com/victorkp/roundprogressview
- Owner: victorkp
- License: gpl-2.0
- Created: 2014-03-28T22:30:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-30T17:53:28.000Z (over 10 years ago)
- Last Synced: 2025-01-04T01:04:22.102Z (5 days ago)
- Language: Java
- Homepage:
- Size: 2.17 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RoundProgressView
=================## About ##
An elegant way to indicate progress. For Android, but intended for Google Glass GDK.
## Usage ##
### Including In Your Project ###
Simply put `RoundProgressView.java` in with the rest of your source. The package currently defined in it is `com.kaiser.pendergrast.view`, but you can simply edit that to be whatever you want.### Basic Usage ###
Put a RoundProgressView in your UI in whichever way you prefer, whether it be in XML or Java.Call `setProgress(double progress)` to set the RoundProgressView's progress level, where progress is from 0 to 1.
If you would like progress to advance automatically, you can use `startAnimatingProgress(long duration, boolean loop)` where `duration` is how long one it should take to go from 0 to 1 progress level. `loop` allows you to create show indeterminant progress, and have the RoundProgressView animate indefinetely. You can stop the RoundProgressView by calling `stopAnimatingProgress()`.
### More Advanced Usage ###
`setReversed(boolean reversed)` allows the RoundProgressView to switch between animating from empty to full, to animating from full to empty.`ProgressListener` is an interface that can be implemented that has callbacks for when the RoundProgressView is animating and
* Finishes Animating: `onCompleted()`
* Loops Animating: `onLooped()`
* Updates Progress during an Animation: `onUpdate(double progress)`