NumberProgressBar

by daimajia

A beautiful, slim Android ProgressBar.

5.8K Stars 1.4K Forks Last release: about 6 years ago (v1.2) MIT License 61 Commits 4 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Android NumberProgressBar Build Status

Insight.io

The NumberProgressBar is a bar, slim and sexy (every man wants! ).

I decided to do this because I was really tired of android original progress bar. So, I made some change, added more color style for this.

And also you can contribute more color style, or new idea to me.

BTW. My friends also made some other platform's NumberProgressBar:


Demo

NumberProgressBar

Download Demo

Usage


Gradle

dependencies {
   compile 'com.daimajia.numberprogressbar:library:[email protected]'
}

Maven

    com.daimajia.numberprogressbar
    library
    1.4
    apklib

Use it in your own code:

    

I made some predesign style. You can use them via

style
property.

Preset color

Use the preset style just like below:

    

In the above picture, the style is :

NumberProgressBar_Default
NumberProgressBar_Passing_Green
NumberProgressBar_Relax_Blue
NumberProgressBar_Grace_Yellow
NumberProgressBar_Warning_Red
NumberProgressBar_Funny_Orange
NumberProgressBar_Beauty_Red
NumberProgressBar_Twinkle_Night

You can get more beautiful color from kular, and you can also contribute your color style to NumberProgressBar!

Build

run

./gradlew assembleDebug
(Mac/Linux)

or

run

gradlew.bat assembleDebug
(Windows)

Attributes

There are several attributes you can set:

The reached area and unreached area:

  • color
  • height

The text area:

  • color
  • text size
  • visibility
  • distance between reached area and unreached area

The bar:

  • max progress
  • current progress

for example, the default style:

    

About me:

A student in China mainland, I like Google, like Android, like open source, like doing something interesting. :)

If you have some new idea or internship opportunity, please email me !

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.