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

https://github.com/k415hu/n-sidedprogressbar

Progress Bar in the shape of regular polygon.
https://github.com/k415hu/n-sidedprogressbar

progress-bar progress-view

Last synced: 7 months ago
JSON representation

Progress Bar in the shape of regular polygon.

Awesome Lists containing this project

README

          

# N-SidedProgressBar

[![Platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)
![GitHub](https://img.shields.io/badge/status-Under%20development-yellow.svg)

Progress Bar in the shape of regular polygon.

![1](/gifs/1.gif)
![3](/gifs/3.gif)
![2](/gifs/2.gif)

## Download
The library is available on jcenter. Just add the dependency to your ```build.gradle``` file.
```
repositories {
jcenter()
}
```
```
implementation 'com.kaishu.nspb:nsidedprogressbar:1.0.2'
```
## Usage
To create NSidedProgressBar in xml :-
```xml
...

...
```
Don't forget to add ```xmlns:app="http://schemas.android.com/apk/res-auto"```

Or in Java
```java
....
NSidedProgressBar nSidedProgressBar = new NSidedProgressBar(this, 3);
nSidedProgressBar.setBaseSpeed(5);
...
```
### Properties
Properties which can be set from xml:-
* ```nsidedProg_sideCount```: set the number of sides.
* ```nsidedProg_primaryColor```: set the color of unmovable part.
* ```nsidedProg_secondaryColor```: set the colot of movable part.
* ```nsidedProg_baseSpeed```: set the speed(constant) of unaccelerated end.
* ```nsidedProg_refreshRate```: set the fps of animation.
* ```nsidedProg_primaryRimWidth```: set the width of unmovable part.
* ```nsidedProg_secondaryRimWidth```: set the width of movable part.
* ```nsidedProg_clockwise```: set the nature of rotation.
* ```nsidedProg_determinate```: set the nature of progress bar.
* ```nsidedProg_startSide```: set the starting point of determinate progress bar.

## License
N-sidedProgressBar is licensed under MIT license. View [license](LICENSE).