{"id":3520,"url":"https://github.com/Pkmmte/CircularImageView","last_synced_at":"2025-08-03T20:32:47.192Z","repository":{"id":18483665,"uuid":"21679132","full_name":"Pkmmte/CircularImageView","owner":"Pkmmte","description":"Custom view for circular images in Android while maintaining the best draw performance","archived":false,"fork":false,"pushed_at":"2017-08-16T11:43:24.000Z","size":1931,"stargazers_count":1177,"open_issues_count":47,"forks_count":231,"subscribers_count":48,"default_branch":"master","last_synced_at":"2024-11-21T13:15:25.190Z","etag":null,"topics":[],"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/Pkmmte.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}},"created_at":"2014-07-10T04:21:48.000Z","updated_at":"2024-10-18T14:34:45.000Z","dependencies_parsed_at":"2022-09-16T11:30:34.457Z","dependency_job_id":null,"html_url":"https://github.com/Pkmmte/CircularImageView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pkmmte%2FCircularImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pkmmte%2FCircularImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pkmmte%2FCircularImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pkmmte%2FCircularImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pkmmte","download_url":"https://codeload.github.com/Pkmmte/CircularImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228567009,"owners_count":17937983,"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-01-05T20:16:43.837Z","updated_at":"2024-12-07T05:30:41.203Z","avatar_url":"https://github.com/Pkmmte.png","language":"Java","funding_links":[],"categories":["Libraries","Java","Libs","库"],"sub_categories":["GUI","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget","[](https://github.com/JStumpp/awesome-android/blob/master/readme.md#images)图片"],"readme":"CircularImageView\n=================\n\nCustom view for circular images in Android while maintaining the best draw performance\n\n\n![Imgur](http://i.imgur.com/Q33e2Zb.gif)\n\nUsage\n--------\nTo make a circular ImageView, add this CircularImageView library to your project and add CircularImageView in your layout XML. \nYou can also grab it via Gradle:\n\n```groovy\ncompile 'com.pkmmte.view:circularimageview:1.1'\n```\n\nor Maven:\n\n```xml\n\u003cdependency\u003e\n\t\t\u003cgroupId\u003ecom.pkmmte.view\u003c/groupId\u003e\n\t\t\u003cartifactId\u003ecircularimageview\u003c/artifactId\u003e\n\t\t\u003cversion\u003e1.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n###XML\n```xml\n    \u003ccom.pkmmte.view.CircularImageView\n        android:layout_width=\"250dp\"\n        android:layout_height=\"250dp\"\n        android:src=\"@drawable/image\"\n        app:border=\"true\"\n        app:border_color=\"#EEEEEE\"\n        app:border_width=\"4dp\"\n        app:shadow=\"true\" /\u003e\n```\n\nYou may use the following properties in your XML to customize your CircularImageView.\n\n#####Properties:\n\n* `app:border`       (boolean)             -\u003e default false\n* `app:border_color` (color)               -\u003e default WHITE\n* `app:border_width` (dimension)           -\u003e default 2dp\n* `app:selector`       (boolean)           -\u003e default false\n* `app:selector_color` (color)             -\u003e default TRANSPARENT\n* `app:selector_stroke_color` (color)      -\u003e default BLUE\n* `app:selector_stroke_width` (dimension)  -\u003e default 2dp\n* `app:shadow`       (boolean)             -\u003e default false\n\n###JAVA\n\n```java\n    CircularImageView circularImageView = (CircularImageView)findViewById(R.id.yourCircularImageView);\n    circularImageView.setBorderColor(getResources().getColor(R.color.GrayLight));\n    circularImageView.setBorderWidth(10);\n    circularImageView.setSelectorColor(getResources().getColor(R.color.BlueLightTransparent));\n    circularImageView.setSelectorStrokeColor(getResources().getColor(R.color.BlueDark));\n    circularImageView.setSelectorStrokeWidth(10);\n    circularImageView.addShadow();\n```\n\nDeveloped By\n--------\n\nPkmmte Xeleon - www.pkmmte.com\n\n\u003ca href=\"https://plus.google.com/102226057091361048952\"\u003e\n  \u003cimg alt=\"Follow me on Google+\"\n       src=\"http://data.pkmmte.com/temp/social_google_plus_logo.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/pub/pkmmte-xeleon/7a/409/b4b/\"\u003e\n  \u003cimg alt=\"Follow me on LinkedIn\"\n       src=\"http://data.pkmmte.com/temp/social_linkedin_logo.png\" /\u003e\n\u003c/a\u003e\n\nLicense\n--------\n\n    The MIT License (MIT)\n    \n    Copyright (c) 2014 Pkmmte Xeleon\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n\nBased on a work at https://github.com/lopspower/CircularImageView.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPkmmte%2FCircularImageView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPkmmte%2FCircularImageView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPkmmte%2FCircularImageView/lists"}