Skip to content

qiaoyunrui/JuWidgets

Repository files navigation

JuProgressbar

a little good progressbar like this:

Add it to your Project

Preview

How to use

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:
    allprojects {
		  repositories {
			...
			maven { url "https://jitpack.io" }
		  }
	  }

Step 2. Add the dependency

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

Step 3. Add this view to your XML

    
      <com.juhezi.juprogressbar.View.JuProgressbar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:visibility="visible"
        juhezi:color1="@color/blue"x
        juhezi:color2="@color/red"
        juhezi:color3="@color/yellow"
        juhezi:color4="@color/green"
        juhezi:loadingText=""
        juhezi:colorNum="4">
     </com.juhezi.juprogressbar.View.JuProgressbar>