DotProgressBar
It`s a simple progress bar.
Example
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();