• This repository has been archived on 16/Jun/2022
  • Stars
    star
    222
  • Rank 179,123 (Top 4 %)
  • Language
    Java
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

It's a simple progress bar

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();

License