Popularity
2.0
Growing
Activity
0.0
-
67
2
7

Programming language: Java

N-SidedProgressBar alternatives and similar packages

Based on the "Progressbar/Progress View Widget" category

Do you think we are missing an alternative of N-SidedProgressBar or a related project?

Add another 'Progressbar/Progress View Widget' Package

README

N-SidedProgressBar

Platform GitHub GitHub

Progress Bar in the shape of regular polygon.

1 3 2

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 :-

...
<com.iitr.kaishu.nsidedprogressbar.NSidedProgressBar
        android:id="@+id/NSidedProgressBar"
        android:layout_width="75dp"
        android:layout_height="75dp"
        android:layout_gravity="center"
        app:nsidedProg_baseSpeed="5"
        app:nsidedProg_sideCount="3"
        app:nsidedProg_clockwise="true"
        />
...

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

Or in 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).


*Note that all licence references and agreements mentioned in the N-SidedProgressBar README section above are relevant to that project's source code only.