Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daimajia/numberprogressbar
A beautiful, slim Android ProgressBar.
https://github.com/daimajia/numberprogressbar
android numberprogressbar prgressbar
Last synced: 4 days ago
JSON representation
A beautiful, slim Android ProgressBar.
- Host: GitHub
- URL: https://github.com/daimajia/numberprogressbar
- Owner: daimajia
- License: mit
- Created: 2014-05-01T08:54:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T09:09:15.000Z (about 4 years ago)
- Last Synced: 2024-10-29T15:29:34.195Z (about 2 months ago)
- Topics: android, numberprogressbar, prgressbar
- Language: Java
- Homepage:
- Size: 154 KB
- Stars: 6,069
- Watchers: 228
- Forks: 1,397
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Android NumberProgressBar [![Build Status](https://travis-ci.org/daimajia/NumberProgressBar.png?branch=master)](https://travis-ci.org/daimajia/NumberProgressBar)
[![Insight.io](https://insight.io/repoBadge/github.com/daimajia/NumberProgressBar)](https://insight.io/github.com/daimajia/NumberProgressBar)
-----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:
- [Web-Front](https://github.com/kalasoo/NumberProgressBar) by [kalasoo](https://github.com/kalasoo/NumberProgressBar)
- [iOS](https://github.com/Ming-Zhe/NumberProgressBar) by [Ming-Zhe](https://github.com/Ming-Zhe/NumberProgressBar)
- [Windows Phone](https://github.com/s2003zy/NumberProgressBar) by [s2003zy](https://github.com/s2003zy)---
### Demo
![NumberProgressBar](http://ww3.sinaimg.cn/mw690/610dc034jw1efyrd8n7i7g20cz02mq5f.gif)
[Download Demo](https://github.com/daimajia/NumberProgressBar/releases/download/v1.0/NumberProgressBar-Demo-v1.0.apk)
### Usage
----#### Gradle
```groovy
dependencies {
compile 'com.daimajia.numberprogressbar:library:1.4@aar'
}
```#### Maven
```xml
com.daimajia.numberprogressbar
library
1.4
apklib```
Use it in your own code:
```java
```I made some predesign style. You can use them via `style` property.
![Preset color](http://ww1.sinaimg.cn/mw690/610dc034jw1efyslmn5itj20f30k074r.jpg)
Use the preset style just like below:
```java
```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](https://kuler.adobe.com), 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:
![](http://ww2.sinaimg.cn/mw690/610dc034jw1efyttukr1zj20eg04bmx9.jpg)
The **reached area** and **unreached area**:
* color
* heightThe **text area**:
* color
* text size
* visibility
* distance between **reached area** and **unreached area**The **bar**:
* max progress
* current progressfor example, the default style:
```java
```### 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](mailto:[email protected]) !