分享一款自定义 ProgressBar

2,130 阅读1分钟

The wharehouse of weights.

1. JuProgressbar

a little good progressbar like this:

pic

This progressbar provide some new properties:

* loadingText:the text of the loadingTextView
* colorNum:the amount of colors
* color1:first color
* color2:second color
* color3:third color
* color4:forth color

You can use this progressbar like this:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:
```java
allprojects {
      repositories {
        ...
        maven { url "https://jitpack.io" }
      }
  }
```

Step 2. Add the dependency

```java
dependencies {
        compile 'com.github.qiaoyunrui:JuWidgets:1.1'
  }
```

Step 3. Add this view to your XML

```html

  
 

```

2 .loading....