{"id":13537682,"url":"https://github.com/MostafaGazar/CustomShapeImageView","last_synced_at":"2025-04-02T04:31:18.894Z","repository":{"id":11578844,"uuid":"14068061","full_name":"MostafaGazar/CustomShapeImageView","owner":"MostafaGazar","description":"A library for supporting custom shaped ImageView(s) using SVGs and paint shapes","archived":false,"fork":false,"pushed_at":"2021-07-18T20:54:30.000Z","size":1240,"stargazers_count":1621,"open_issues_count":17,"forks_count":424,"subscribers_count":86,"default_branch":"master","last_synced_at":"2024-11-03T02:33:08.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mostafagazar.github.io/CustomShapeImageView","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/MostafaGazar.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}},"created_at":"2013-11-02T15:08:22.000Z","updated_at":"2024-10-23T17:50:34.000Z","dependencies_parsed_at":"2022-09-26T21:51:40.241Z","dependency_job_id":null,"html_url":"https://github.com/MostafaGazar/CustomShapeImageView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaGazar%2FCustomShapeImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaGazar%2FCustomShapeImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaGazar%2FCustomShapeImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaGazar%2FCustomShapeImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MostafaGazar","download_url":"https://codeload.github.com/MostafaGazar/CustomShapeImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246757197,"owners_count":20828852,"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-01T09:01:02.030Z","updated_at":"2025-04-02T04:31:13.881Z","avatar_url":"https://github.com/MostafaGazar.png","language":"Java","readme":"CustomShapeImageView Demo ([Play Store Demo][1])\n-------------------------\n\nA library for supporting custom shaped ImageView(s) using SVGs and paint shapes\n\nYou can also use this gist https://gist.github.com/MostafaGazar/ee345987fa6c8924d61b if you do not want to add this library project to your codebase.\n\n[![Build Status](https://travis-ci.org/MostafaGazar/CustomShapeImageView.svg)](https://travis-ci.org/MostafaGazar/CustomShapeImageView)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-CustomShapeImageView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1197)\n[![Android Weekly](http://img.shields.io/badge/Android%20Weekly-%2381-2CB3E5.svg?style=flat)](http://androidweekly.net/issues/issue-81)\n[![PayPal Donations](https://img.shields.io/badge/paypal-donate-yellow.svg?style=flat)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=mmegazar%40gmail%2ecom\u0026lc=NZ\u0026item_name=Mostafa%20Gazar\u0026item_number=GitHub\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)\n[![Coverage Status](https://coveralls.io/repos/github/MostafaGazar/CustomShapeImageView/badge.svg?branch=master)](https://coveralls.io/github/MostafaGazar/CustomShapeImageView?branch=master)\n\nUsage\n-----\n```xml\n\u003ccom.meg7.widget.CustomShapeImageView\n    android:layout_width=\"64dp\"\n    android:layout_height=\"64dp\"\n    android:src=\"@drawable/sample\"\n    app:shape=\"circle\"\n    android:scaleType=\"centerCrop\" /\u003e\n\n\u003ccom.meg7.widget.CircleImageView\n    android:layout_width=\"64dp\"\n    android:layout_height=\"64dp\"\n    android:src=\"@drawable/sample\"\n    android:scaleType=\"centerCrop\" /\u003e\n\n\u003ccom.meg7.widget.RectangleImageView\n    android:layout_width=\"64dp\"\n    android:layout_height=\"64dp\"\n    android:src=\"@drawable/sample\"\n    android:scaleType=\"centerCrop\" /\u003e\n\n\u003ccom.meg7.widget.SvgImageView\n    android:layout_width=\"64dp\"\n    android:layout_height=\"64dp\"\n    android:src=\"@drawable/sample\"\n    app:svg_raw_resource=\"@raw/shape_star\"\n    android:scaleType=\"centerCrop\" /\u003e\n```\n\nDownload\n------------\nAdd the `customshapeimageview` dependency to your `build.gradle` file:\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.mostafagazar/customshapeimageview.svg)](http://search.maven.org/#search%7Cga%7C1%7Ccustomshapeimageview)\n```groovy\ndependencies {\n    ...\n    compile 'com.mostafagazar:customshapeimageview:1.0.4'\n    ...\n}\n```\n\nProguard\n------------\nIf you're using proguard for code shrinking and obfuscation, make sure to add the following:\n```proguard\n   -keep class com.meg7.widget.** { *; }\n```\n\nScreenshots\n------------\n![main](https://raw.githubusercontent.com/MostafaGazar/CustomShapeImageView/master/Screenshot_2016-01-19-09-17-37.png)\n\nLibraries used\n---------------\n* https://github.com/latemic/svg-android\n\nDeveloped by\n------------\n* Mostafa Gazar - \u003cmmegazar@gmail.com\u003e\n\nLicense\n------------\n    Copyright 2013-2016 Mostafa Gazar\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n    \nDonations\n------------\nIf you'd like to support this library, you could make a donation here:\n\n[![PayPal Donation](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=mmegazar%40gmail%2ecom\u0026lc=NZ\u0026item_name=Mostafa%20Gazar\u0026item_number=GitHub\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)\n\n\n\n[1]: https://play.google.com/store/apps/details?id=com.meg7.samples\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=mmegazar%40gmail%2ecom\u0026lc=NZ\u0026item_name=Mostafa%20Gazar\u0026item_number=GitHub\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"],"categories":["Java","ImageView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMostafaGazar%2FCustomShapeImageView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMostafaGazar%2FCustomShapeImageView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMostafaGazar%2FCustomShapeImageView/lists"}