{"id":13640807,"url":"https://github.com/WhiteDG/ProgressView","last_synced_at":"2025-04-20T07:30:59.825Z","repository":{"id":180884161,"uuid":"90516003","full_name":"WhiteDG/ProgressView","owner":"WhiteDG","description":"🌈 Styleable progress view","archived":false,"fork":false,"pushed_at":"2023-11-29T09:50:12.000Z","size":1076,"stargazers_count":345,"open_issues_count":2,"forks_count":52,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T07:12:54.104Z","etag":null,"topics":["android","android-library","android-ui","customview","progress-bar"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WhiteDG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-07T07:27:47.000Z","updated_at":"2025-01-28T11:05:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"d27ba22f-8a12-4cb2-b7e6-3c9422da17e2","html_url":"https://github.com/WhiteDG/ProgressView","commit_stats":null,"previous_names":["whitedg/progressview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2FProgressView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2FProgressView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2FProgressView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2FProgressView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WhiteDG","download_url":"https://codeload.github.com/WhiteDG/ProgressView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249864206,"owners_count":21336717,"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","android-library","android-ui","customview","progress-bar"],"created_at":"2024-08-02T01:01:14.572Z","updated_at":"2025-04-20T07:30:59.491Z","avatar_url":"https://github.com/WhiteDG.png","language":"Java","readme":"# ProgressView\n[中文版点我](https://github.com/WhiteDG/ProgressView/blob/master/README_CN.md)\n\nProgressView is a custom view that extends ProgressBar to implement circular and horizontal progress bars with numerical indicators.\n\n## Screenshots\n\n\u003cimg src='https://github.com/WhiteDG/ProgressView/blob/master/screenshot/demo.gif' height='600'/\u003e \u003cspan\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/span\u003e \u003cimg src='https://github.com/WhiteDG/ProgressView/blob/master/screenshot/preview.gif' height='600'/\u003e\n\n## Installation\nAdd the depedency in your build.gradle. The library is distributed via jCenter.\n```\ndependencies {\n    compile 'com.white:progressview:1.0.1'\n}\n```\n## Usage\n\n1. In the XML\n\nAdd the `ProgressView` to `layout.xml` and configure the attributes.\n```\n\u003c!-- Horizontal style --\u003e\n\u003ccom.white.progressview.HorizontalProgressView\n    android:id=\"@+id/progress100\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:padding=\"10dp\"\n    android:progress=\"100\"\n    app:progressReachColor=\"@color/colorPrimary\"\n    app:progressTextColor=\"@color/colorPrimary\"\n    app:progressTextVisible=\"true\"\n    /\u003e\n    \n\u003c!-- Circle style --\u003e\n\u003ccom.white.progressview.CircleProgressView\n      android:id=\"@+id/circle_progress_normal\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_weight=\"1\"\n      android:padding=\"10dp\"\n      android:progress=\"68\"\n      app:progressNormalSize=\"4dp\"\n      app:progressReachSize=\"4dp\"\n      app:progressStyle=\"Normal\"\n      app:radius=\"28dp\"\n      /\u003e\n```\n2. In the Activity\n\nYou can also configure attributes directly in the activity.\n```\nhorizontalProgressView.setXXXX();\n// for example:\nhorizontalProgressView.setTextVisible(false);\nhorizontalProgressView.setReachBarSize(4);\nhorizontalProgressView.setProgressPosition(HorizontalProgressView.TOP);\n...\n```\nand set progress with animation in time\n```\nHorizontalProgressView horizontalProgressView = (HorizontalProgressView) findViewById(R.id.progress100);\n// set progress 100 with anim in 2500ms \nhorizontalProgressView.setProgressInTime(100,2500);\n// set progress from 20 to 100 with anim in 2500ms \nhorizontalProgressView.setProgressInTime(0,100,2500);\n// reset current progress with anim in 2500ms \nhorizontalProgressView.runProgressAnim(2500);\n\nCircleProgressView circleProgressView = (CircleProgressView) findViewById(R.id.circle_progress_normal);\n...\n// same as HorizontalProgressView\ncircleProgressView.setProgressInTime(100,2500);\n    \n```\n\n## Attributes\n\n#### HorizontalProgressView\n\nName | Description\n:---:|:---:\nprogressNormalColor | set the normal bar color\nprogressReachColor | set the reach bar color\nprogressTextColor | set the progress text color\nprogressTextSize | set the progress text size\nprogressTextOffset | set the progress text offset\nprogressNormalSize | set the normal bar size\nprogressReachSize | set the reach bar size\nprogressTextPosition | set the progress text position(CENTER/BOTTOM/TOP)\nprogressTextVisible | is show the progress text\nprogressTextSkewX | set the progress text skewx\nprogressTextPrefix | set the progress text prefix\nprogressTextSuffix | set the progress text suffix(default '%')\n\n#### CircleProgressView\n\nName | Description\n:---:|:---:\nprogressNormalColor | set the normal bar color\nprogressReachColor | set the reach bar color\nprogressTextColor | set the progress text color\nprogressTextSize | set the progress text size\nprogressTextOffset | set the progress text offset\nprogressNormalSize | set the normal bar size\nprogressReachSize | set the reach bar size\nradius | set the circle radius\nprogressTextVisible | is show the progress text\nprogressTextSkewX |set the progress text skewx\nprogressTextPrefix | set the progress text prefix\nprogressTextSuffix | set the progress text suffix(default '%')\nprogressStartArc | set the startArc of reach area\nprogressStyle | set the style of CircleProgressView(Normal/FillInner/FillInnerArc)\nreachCapRound | set the reach bar cap round or not(only for style Normal)\ninnerBackgroundColor | set the inner background color(only for style Normal)\ninnerProgressColor | set the inner progress color(only for style FillInner)\ninnerPadding | set the padding between the inner and outer circles(only for style FillInnerArc)\nouterColor | set the outer circle color(only for style FillInnerArc)\nouterSize | set outer circle width(only for style FillInnerArc)\n\n## LICENSE\n\n```\nCopyright 2017 Wh1te\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":["进度条"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWhiteDG%2FProgressView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWhiteDG%2FProgressView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWhiteDG%2FProgressView/lists"}