Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

silvestrpredko/DotProgressBarExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotProgressBar

It`s a simple progress bar.

Example

enter image description here

enter image description here

Android Arsenal

Gradle

compile 'com.github.silvestrpredko:dot-progress-bar:1.1'

Usage

XML

<com.github.silvestrpredko.dotprogressbar.DotProgressBar
  android:id="@+id/dot_progress_bar"
  android:layout_width="match_parent"
  android:layout_height="50dp"
  custom:amount="5"
  custom:duration="@android:integer/config_mediumAnimTime"
  custom:endColor="@color/light_blue_A400"
  custom:startColor="@color/light_blue_A700"
  custom:animationDirection="left"/>

Code

dotProgressBar.setStartColor(startColor);
dotProgressBar.setEndColor(endColor);
dotProgressBar.setDotAmount(amount);
dotProgressBar.setAnimationTime(time);

// or you can use builder

new DotProgressBarBuilder(this)
                .setDotAmount(5)
                .setStartColor(Color.BLACK)
                .setAnimationDirection(DotProgressBar.LEFT_DIRECTION)
                .build();

About

It's a simple progress bar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages