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.
- Host: GitHub
- URL: https://github.com/k415hu/n-sidedprogressbar
- Owner: k415hu
- License: mit
- Created: 2018-08-26T09:37:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-26T09:13:32.000Z (about 7 years ago)
- Last Synced: 2025-04-13T22:41:09.175Z (10 months ago)
- Topics: progress-bar, progress-view
- Language: Java
- Homepage:
- Size: 3.4 MB
- Stars: 69
- Watchers: 3
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# N-SidedProgressBar
[](https://www.android.com)


Progress Bar in the shape of regular polygon.



## 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).