{"id":13640728,"url":"https://github.com/xiprox/MarkView","last_synced_at":"2025-04-20T06:34:30.073Z","repository":{"id":31855710,"uuid":"35423010","full_name":"xiprox/MarkView","owner":"xiprox","description":"An android custom view that displays a circle with a colored arc given a mark","archived":false,"fork":false,"pushed_at":"2017-03-23T13:44:18.000Z","size":106,"stargazers_count":199,"open_issues_count":0,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-09T11:37:04.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiprox.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":"2015-05-11T12:40:23.000Z","updated_at":"2024-06-28T01:56:03.000Z","dependencies_parsed_at":"2022-08-29T13:10:42.039Z","dependency_job_id":null,"html_url":"https://github.com/xiprox/MarkView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiprox%2FMarkView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiprox%2FMarkView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiprox%2FMarkView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiprox%2FMarkView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiprox","download_url":"https://codeload.github.com/xiprox/MarkView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249859688,"owners_count":21335988,"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":[],"created_at":"2024-08-02T01:01:13.899Z","updated_at":"2025-04-20T06:34:29.799Z","avatar_url":"https://github.com/xiprox.png","language":"Java","readme":"MarkView\n=========\nAn android custom view that displays a circle with a colored arc given a mark.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"http://puu.sh/hJkWQ/7f2598cb62.png\" /\u003e\n\u003c/p\u003e\n\n# Usage\n### Add as a dependency\n```groovy\n    compile 'com.github.xiprox.markview:library:1.+'\n```\n\n### Get/Set mark\n```java\n    getMark()\n```\n```java\n    setMark(int);\n```\n```xml\n    app:mv_mark=\"integer\"\n```\n\n### Get/Set max\nMax defines the highest mark value MarkView accepts and understands. Arc degree calculation is done with regard to this maximum value too. Any given mark higher than the max will result in a `?` being displayed along with a full gray ring.\n\n```java\n    getMax()\n```\n```java\n    setMax(int)\n```\n```xml\n    app:mv_max=\"integer\"\n```\n\n### Get/Set text size\n```java\n    getTextSize()\n```\n```java\n    setTextSize(float)\n```\n```xml\n    app:mv_textSize=\"dimension\"\n```\n\n### Get/Set text color\n```java\n    getTextColor()\n```\n```java\n    setTextColor(int)\n```\n```xml\n    app:mv_textColor=\"color\"\n```\n\n### Get/Set stroke width\n```java\n    getStrokeWidth()\n```\n```java\n    setStrokeWidth(float)\n```\n```xml\n    app:mv_strokeWidth=\"dimension\"\n```\n\n### Get/Set stroke colors\nMarkView supports different colors for different marks. It works in the following way:\nAn array keeps all the colors. Ideally, one for every supported mark (satisfying `array.length == max`). If a color exists in the array for a given mark, that color is used. If not, the last color in the array is used. And if there are no colors at all, the default color (`#999999`) is used.\n\n```java\n    getStrokeColors()\n```\n```java\n    setStrokeColors(int...)\n```\n```xml\n    app:mv_strokeColors=\"reference\"\n```\n**Note:** If you use the xml attribute, you should supply a string array resource which is in the following format:\n```xml\n\u003cstring-array name=\"mv_mark_colors\"\u003e\n    \u003citem\u003e#D50000\u003c/item\u003e\n    \u003citem\u003e#FF6D00\u003c/item\u003e\n    \u003citem\u003e#FFD600\u003c/item\u003e\n    \u003citem\u003e#8BC34A\u003c/item\u003e\n    \u003citem\u003e#8BC34A\u003c/item\u003e\n    ...\n\u003c/string-array\u003e\n```\n\n### Get the current stroke color\n```java\n    getStrokeColor()\n```\n\n### Get/Set ring width\n```java\n    getRingWidth()\n```\n```java\n    setRingWidth(float)\n```\n```xml\n    app:mv_ringWidth=\"dimension\"\n```\n\n### Get/Set ring color\n```java\n    getRingColor()\n```\n```java\n   setRingColor(int)\n```\n```xml\n   app:mv_ringColor=\"color\"\n```\n\n# Sample App\n\u003ca href=\"https://play.google.com/store/apps/details?id=tr.xip.markview.sample\"\u003e\n\u003cimg alt=\"Get it on Google Play\"\nsrc=\"https://developer.android.com/images/brand/en_generic_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n(Apk file available in the \u003ca href=\"https://github.com/xiprox/MarkView/releases\"\u003ereleases tab\u003c/a\u003e.)\n\n# License\n```\nCopyright (C) 2015 Ihsan Isik\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":["进度条","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiprox%2FMarkView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiprox%2FMarkView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiprox%2FMarkView/lists"}