Skip to content

open-sourcepad/multiprogressbar

Repository files navigation

MultiProgressbar

Tri-colored customizable circular progressbar

Set progressbar width

  multiProgressbar.setWidth(width:Float)

Set color for each progressbar

  multiProgressbar.setColor(colorRes1:Int, colorRes2:Int, colorRes3:Int)

Set current progress, use -1 value if no changes required or just use the named parameters to specify which progress to change

  multiProgressbar.setProgress(progress1:Float,progress2:Float,progress3:Float)
  multiProgressbar.setProgress(progress1=60f)

Via XML

<com.sourcepad.core.multiprogressbar.MultiProgressBar
    app:progress1Color="@color/yellow"
    app:progress2Color="@color/blue"
    app:progress3Color="@color/red"
    app:progressWidth="10dp"/>

Usage

In your build.gradle, add the following:

  dependencies{
    implementation 'com.sourcepad.opensource:multiprogressbar:0.1@aar'
  }
  
  repositories {
    maven{
        url  "https://sourcepad.bintray.com/opensource"
    }
  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages