nealsanche / DotProgressBarExample

It's a simple progress bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

link

About

It's a simple progress bar

License:MIT License


Languages

Language:Java 100.0%