{"id":13644204,"url":"https://github.com/AllenCoder/AndroidCustomView","last_synced_at":"2025-04-21T07:30:30.010Z","repository":{"id":91982057,"uuid":"65723252","full_name":"AllenCoder/AndroidCustomView","owner":"AllenCoder","description":"一个简单的投票排名对比图","archived":false,"fork":false,"pushed_at":"2018-09-26T14:47:53.000Z","size":1377,"stargazers_count":149,"open_issues_count":1,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T16:44:04.429Z","etag":null,"topics":["custom-view"],"latest_commit_sha":null,"homepage":"","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/AllenCoder.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-08-15T10:08:14.000Z","updated_at":"2023-04-22T12:45:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"240bf2ea-fe08-429f-9a70-99c7a1cf927f","html_url":"https://github.com/AllenCoder/AndroidCustomView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllenCoder%2FAndroidCustomView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllenCoder%2FAndroidCustomView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllenCoder%2FAndroidCustomView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllenCoder%2FAndroidCustomView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllenCoder","download_url":"https://codeload.github.com/AllenCoder/AndroidCustomView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250014532,"owners_count":21360968,"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":["custom-view"],"created_at":"2024-08-02T01:01:59.068Z","updated_at":"2025-04-21T07:30:28.915Z","avatar_url":"https://github.com/AllenCoder.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-AndroidCustomView-green.svg?style=true)](https://android-arsenal.com/details/1/4166) \n[ ![Download](https://api.bintray.com/packages/allencoder/maven/compareindicator/images/download.svg) ](https://bintray.com/allencoder/maven/compareindicator/_latestVersion)\n# 简介(投票 ,排名对比图)\n------------------------\n\n1.  一个简单的自定义 View 可高度定制\n2.  支持设置替换 支持 ,和反对的图标\n\n\n\n3.  支持自定义线宽和支持反对线的字体颜色\n\n# 设置比分值\n**效果图**\n\n\u003cimg src=\"https://github.com/AllenCoder/AndroidCustomView/blob/master/gif/device-2016-09-08-213022.png\" width=300 /\u003e\n\n| 字段    | 属性   |   \n| ----------------- | ---------- | \n| OppositeBitmap    | 反对图标   | |\n| mApproveBitmap    | 支持图标   |    \n| approveLineColor  | 支持线颜色 |    \n| oppositeLineColor |    反对线颜色    |    \n## Dependency\n\n\nAdd dependency in your app module\n\n\n\n\n\n```\ndependencies {\n\tcompile 'com.allen.comparsechart:comparsechart:1.0.1'\n}\n```\n\n\n\n\n## Maven\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.allen.comparsechart\u003c/groupId\u003e\n  \u003cartifactId\u003ecomparsechart\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### Java\n```\n    \u003ccom.allen.comparsechart.CompareIndicator\n            android:id=\"@+id/CompareIndicator3\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginTop=\"50dp\"\n            app:approve_line_color=\"@android:color/holo_green_light\"\n            app:approve_res=\"@mipmap/approve\"\n            app:oppose_line_color=\"@android:color/holo_red_dark\"\n            app:opposite_res=\"@mipmap/opposite\"\n            /\u003e\n```\n```\nCompareIndicator1.updateView(10,90);\n```\n[股票走势图](https://github.com/AllenCoder/AndroidDevCoder)\n\n\u003cimg src=\"https://github.com/AllenCoder/AndroidDevCoder/blob/master/gif/linechart.gif\" width=300 /\u003e\n\n### [ Apk 下载地址](http://fir.im/5kvu)\n\n## License\n```\nCopyright 2016 AllenCoder\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":["RatingView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAllenCoder%2FAndroidCustomView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAllenCoder%2FAndroidCustomView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAllenCoder%2FAndroidCustomView/lists"}