{"id":13645681,"url":"https://github.com/WangGanxin/CircleRangeView","last_synced_at":"2025-04-21T14:32:02.671Z","repository":{"id":217102700,"uuid":"85901151","full_name":"WangGanxin/CircleRangeView","owner":"WangGanxin","description":"自定义圆形仪表盘View，适合根据数值显示不同等级范围的场景 ","archived":false,"fork":false,"pushed_at":"2017-03-30T02:42:21.000Z","size":381,"stargazers_count":81,"open_issues_count":0,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T18:43:23.010Z","etag":null,"topics":["circlerangeview","dashboard"],"latest_commit_sha":null,"homepage":null,"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/WangGanxin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-23T03:06:54.000Z","updated_at":"2024-05-15T05:26:20.000Z","dependencies_parsed_at":"2024-01-14T16:06:45.380Z","dependency_job_id":"0c8af862-b2ca-4783-8bb0-e275dfc11e2e","html_url":"https://github.com/WangGanxin/CircleRangeView","commit_stats":null,"previous_names":["wangganxin/circlerangeview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangGanxin%2FCircleRangeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangGanxin%2FCircleRangeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangGanxin%2FCircleRangeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangGanxin%2FCircleRangeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WangGanxin","download_url":"https://codeload.github.com/WangGanxin/CircleRangeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070252,"owners_count":21369842,"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":["circlerangeview","dashboard"],"created_at":"2024-08-02T01:02:39.598Z","updated_at":"2025-04-21T14:32:02.303Z","avatar_url":"https://github.com/WangGanxin.png","language":"Java","funding_links":[],"categories":["其他"],"sub_categories":[],"readme":"# CircleRangeView\n自定义圆形仪表盘View，适合根据数值显示不同等级范围的场景 \n\n# Demo\n\n运行效果图：\n\n![CircleRangeView](/images/circle-range-view.gif)\n\n# Usage\n\n- 1.布局文件引入：\n\n```XML\n\n    \u003ccom.ganxin.circlerangeview.CircleRangeView\n        android:id=\"@+id/circleRangeView\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:rangeColorArray=\"@array/circlerangeview_colors\"\n        app:rangeTextArray=\"@array/circlerangeview_txts\"\n        app:rangeValueArray=\"@array/circlerangeview_values\"/\u003e\n\n```\n\n自定义属性：\n\n\u003e rangeColorArray：等级颜色数组，必填\n\u003e \n\u003e rangeValueArray：等级数值数组，数组长度同rangeColorArray保持一致，必填\n\u003e \n\u003e rangeTextArray：等级文本数组，数组长度同rangeColorArray保持一致，必填\n\u003e \n\u003e borderColor：外圆弧颜色，可选\n\u003e \n\u003e cursorColor：指示标颜色，可选\n\u003e \n\u003e extraTextColor：附加文本颜色，可选\n\u003e \n\u003e rangeTextSize：等级文本字体大小，可选\n\u003e \n\u003e extraTextSize：附加文本字体大小，可选\n\u003e \n\n\n- 2.在你的onCreate方法或者fragment的onCreateView方法中，根据id绑定该控件\n\n```Java\n\n    CircleRangeView circleRangeView= (CircleRangeView) findViewById(R.id.circleRangeView);\n\n```\n\n- 3.在合适的时机，调用方法给控件设值\n\n```Java\n\n    List\u003cString\u003e extras =new ArrayList\u003c\u003e();\n    extras.add(\"收缩压：116\");\n    extras.add(\"舒张压：85  \");\n\n    //circleRangeView.setValueWithAnim(value);\n    circleRangeView.setValueWithAnim(value,extras);\n\n```\n\n# Reference\n\n- [Android自定义仪表盘View，仿新旧两版芝麻信用分、炫酷汽车速度仪表盘](https://github.com/woxingxiao/DashboardView) \n\n# Contact Me\n\n- QQ：445253393（注明来自GitHub）\n- Email：mail@wangganxin.me\n\n# License\n   \t\tCopyright 2017 CircleRangeView of copyright 守望君\n\n   \t\tLicensed under the Apache License, Version 2.0 (the \"License\");\n   \t\tyou may not use this file except in compliance with the License.\n   \t\tYou may obtain a copy of the License at\n\n       \t\thttp://www.apache.org/licenses/LICENSE-2.0\n\n   \t\tUnless required by applicable law or agreed to in writing, software\n   \t\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n   \t\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   \t\tSee the License for the specific language governing permissions and\n   \t\tlimitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWangGanxin%2FCircleRangeView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWangGanxin%2FCircleRangeView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWangGanxin%2FCircleRangeView/lists"}