daimajia/NumberProgressBar
daimajia/NumberProgressBar has 6,088 GitHub stars and 1,382 forks. GitHot measured +1 in 7 days. Last checked 2026-11-09 04:00 UTC. Last push 2020-09-27.
A beautiful, slim Android ProgressBar.
측정된 스타 증가
- in 24h
- 업데이트 지연
- in 7 days
- +1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAndroid 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:
Demo

Usage
Gradle
dependencies {
compile 'com.daimajia.numberprogressbar:library:1.4@aar'
}
Maven
<dependency>
<groupId>com.daimajia.numberprogressbar</groupId>
<artifactId>library</artifactId>
<version>1.4</version>
<type>apklib</type>
</dependency>
Use it in your own code:
<com.daimajia.numberprogressbar.NumberProgressBar
android:id="@+id/number_progress_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
```
I made some predesign style. You can use them via `style` property.

Use the preset style just like below:
```java
<com.daimajia.numberprogressbar.NumberProgressBar
android:id="@+id/number_progress_bar"
style="@style/NumberProgressBar_Default"
/>
```
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:

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:
```java
<com.daimajia.numberprogressbar.NumberProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
custom:progress_unreached_color="#CCCCCC"
custom:progress_reached_color="#3498DB"
custom:progress_unreached_bar_height="0.75dp"
custom:progress_reached_bar_height="1.5dp"
custom:progress_text_size="10sp"
custom:progress_text_color="#3498DB"
custom:progress_text_offset="1dp"
custom:progress_text_visibility="visible"
custom:progress_max="100"
custom:progress_current="80"
/>
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 !