{"id":13396303,"url":"https://github.com/daimajia/NumberProgressBar","last_synced_at":"2025-03-13T22:32:08.879Z","repository":{"id":16585741,"uuid":"19340009","full_name":"daimajia/NumberProgressBar","owner":"daimajia","description":"A beautiful, slim Android ProgressBar.","archived":false,"fork":false,"pushed_at":"2020-09-27T09:09:15.000Z","size":158,"stargazers_count":6065,"open_issues_count":29,"forks_count":1397,"subscribers_count":228,"default_branch":"master","last_synced_at":"2024-10-21T11:47:19.762Z","etag":null,"topics":["android","numberprogressbar","prgressbar"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daimajia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-01T08:54:25.000Z","updated_at":"2024-10-19T17:12:02.000Z","dependencies_parsed_at":"2022-07-12T05:30:36.431Z","dependency_job_id":null,"html_url":"https://github.com/daimajia/NumberProgressBar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FNumberProgressBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FNumberProgressBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FNumberProgressBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FNumberProgressBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daimajia","download_url":"https://codeload.github.com/daimajia/NumberProgressBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221417390,"owners_count":16816876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","numberprogressbar","prgressbar"],"created_at":"2024-07-30T18:00:44.326Z","updated_at":"2024-10-25T10:32:06.478Z","avatar_url":"https://github.com/daimajia.png","language":"Java","readme":"## Android NumberProgressBar [![Build Status](https://travis-ci.org/daimajia/NumberProgressBar.png?branch=master)](https://travis-ci.org/daimajia/NumberProgressBar)\n\n[![Insight.io](https://insight.io/repoBadge/github.com/daimajia/NumberProgressBar)](https://insight.io/github.com/daimajia/NumberProgressBar)\n-----\n\nThe NumberProgressBar is a bar, slim and sexy (every man wants! ). \n\nI 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.\n\nAnd also you can contribute more color style, or new idea to me.\n\nBTW. My friends also made some other platform's NumberProgressBar：\n\n- [Web-Front](https://github.com/kalasoo/NumberProgressBar) by [kalasoo](https://github.com/kalasoo/NumberProgressBar)\n- [iOS](https://github.com/Ming-Zhe/NumberProgressBar) by [Ming-Zhe](https://github.com/Ming-Zhe/NumberProgressBar)\n- [Windows Phone](https://github.com/s2003zy/NumberProgressBar) by [s2003zy](https://github.com/s2003zy)\n\n---\n\n### Demo\n\n![NumberProgressBar](http://ww3.sinaimg.cn/mw690/610dc034jw1efyrd8n7i7g20cz02mq5f.gif)\n\n\n[Download Demo](https://github.com/daimajia/NumberProgressBar/releases/download/v1.0/NumberProgressBar-Demo-v1.0.apk)\n\n\n### Usage\n----\n\n#### Gradle\n\n```groovy\ndependencies {\n   compile 'com.daimajia.numberprogressbar:library:1.4@aar'\n}\n```\n\n#### Maven \n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.daimajia.numberprogressbar\u003c/groupId\u003e\n    \u003cartifactId\u003elibrary\u003c/artifactId\u003e\n    \u003cversion\u003e1.4\u003c/version\u003e\n    \u003ctype\u003eapklib\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nUse it in your own code:\n\n```java\n\t\u003ccom.daimajia.numberprogressbar.NumberProgressBar\n\t\tandroid:id=\"@+id/number_progress_bar\"\n\t\tandroid:layout_width=\"wrap_content\"\n\t\tandroid:layout_height=\"wrap_content\"\n\t/\u003e\n```\t\n\nI made some predesign style. You can use them via `style` property.\n\n\n![Preset color](http://ww1.sinaimg.cn/mw690/610dc034jw1efyslmn5itj20f30k074r.jpg)\n\nUse the preset style just like below:\n\n```java\n\t\u003ccom.daimajia.numberprogressbar.NumberProgressBar\n\t\tandroid:id=\"@+id/number_progress_bar\"\n\t\tstyle=\"@style/NumberProgressBar_Default\"\n\t/\u003e\n```\t\n\nIn the above picture, the style is : \n\n`NumberProgressBar_Default`\n`NumberProgressBar_Passing_Green`\n`NumberProgressBar_Relax_Blue`\n`NumberProgressBar_Grace_Yellow`\n`NumberProgressBar_Warning_Red`\n`NumberProgressBar_Funny_Orange`\n`NumberProgressBar_Beauty_Red`\n`NumberProgressBar_Twinkle_Night`\n\nYou can get more beautiful color from [kular](https://kuler.adobe.com), and you can also contribute your color style to NumberProgressBar!  \n\n### Build\n\nrun `./gradlew assembleDebug` (Mac/Linux)\n\nor\n\nrun `gradlew.bat assembleDebug` (Windows)\n\n### Attributes\n\nThere are several attributes you can set:\n\n![](http://ww2.sinaimg.cn/mw690/610dc034jw1efyttukr1zj20eg04bmx9.jpg)\n\nThe **reached area** and **unreached area**:\n\n* color\n* height \n\nThe **text area**:\n\n* color\n* text size\n* visibility\n* distance between **reached area** and **unreached area**\n\nThe **bar**:\n\n* max progress\n* current progress\n\nfor example, the default style:\n\n```java\n\t\u003ccom.daimajia.numberprogressbar.NumberProgressBar\n\t        android:layout_width=\"wrap_content\"\n\t        android:layout_height=\"wrap_content\"\n\t        \n\t        custom:progress_unreached_color=\"#CCCCCC\"\n\t        custom:progress_reached_color=\"#3498DB\"\n\t        \n\t        custom:progress_unreached_bar_height=\"0.75dp\"\n\t        custom:progress_reached_bar_height=\"1.5dp\"\n\t        \n\t        custom:progress_text_size=\"10sp\"\n\t        custom:progress_text_color=\"#3498DB\"\n\t        custom:progress_text_offset=\"1dp\"\n\t        custom:progress_text_visibility=\"visible\"\n\t        \n\t        custom:progress_max=\"100\"\n\t        custom:progress_current=\"80\"\n\t         /\u003e\n```\n\n### About me:\n\nA student in China mainland, I like Google, like Android, like open source, like doing something interesting. :)\n\nIf you have some new idea or internship opportunity, please [email me](mailto:daimajia@gmail.com) !\n","funding_links":[],"categories":["CN","Index `(light-weight pages)`","Index","Java","进度条","Libs","值的学习的五个自定义View开源项目"],"sub_categories":["[daimajia](https://github.com/daimajia)","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaimajia%2FNumberProgressBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaimajia%2FNumberProgressBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaimajia%2FNumberProgressBar/lists"}