Lab Progress Layout

Additional

Language
Java
Version
N/A
Created
Jan 1, 2019
Updated
Jan 2, 2019
Owner
Musaddiq Durrani (durranilab)
Contributors
Musaddiq Durrani (durranilab)
tuxads
2
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

LabProgressLayout

Quite simple effective Progress Bar Layout

Simple,Colorful and Rounded(optional) Progress Bar Layout for Android.

Min API 16

Usage

in your build.gradle (Module)

implementation 'com.durranilab:LabProgress:1.0'

in your .xml

 <com.durranilab.labprogresslayout.LabProgressLayout
                android:id="@+id/labProgressLayout"
                android:layout_width="match_parent"
                android:layout_height="10dp"
                app:autoProgress="true"
                app:cornerRadius="10"
                app:emptyColor="#e8f5e9"
                app:loadedColor="#81c784"
                app:maxProgress="100" />

Change emptyColor and loadedColor as needed.

in your activity

//Declare
LabProgressLayout labProgressLayout;

//Define
labProgressLayout = findViewById(R.id.labProgressLayout);

//Usage
labProgressLayout.setCurrentProgress(100);

// Optional Functions
// Max Progress
labProgressLayout.setMaxProgress(100);

// AutoProgress
labProgressLayout.setAutoProgress(true);

//Callback Listeners

labProgressLayout.setProgressLayoutListener(new LabProgressLayoutListener() {
                                      @Override
                                      public void onProgressCompleted() {

                                      }

                                      @Override
                                      public void onProgressChanged(int seconds) {

                                      }
                                  });


for support please email contact@durranilab.com

Thank You