{"id":13396281,"url":"https://github.com/pungrue26/SelectableRoundedImageView","last_synced_at":"2025-03-13T22:32:02.018Z","repository":{"id":24542844,"uuid":"27949451","full_name":"pungrue26/SelectableRoundedImageView","owner":"pungrue26","description":"Android ImageView that supports different radii on each corner.","archived":false,"fork":false,"pushed_at":"2017-07-12T10:47:34.000Z","size":1214,"stargazers_count":1067,"open_issues_count":10,"forks_count":231,"subscribers_count":47,"default_branch":"master","last_synced_at":"2024-10-15T10:06:01.641Z","etag":null,"topics":["android","android-imageview"],"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/pungrue26.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-12-13T04:34:34.000Z","updated_at":"2024-09-24T09:38:33.000Z","dependencies_parsed_at":"2022-08-23T00:31:45.017Z","dependency_job_id":null,"html_url":"https://github.com/pungrue26/SelectableRoundedImageView","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/pungrue26%2FSelectableRoundedImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pungrue26%2FSelectableRoundedImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pungrue26%2FSelectableRoundedImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pungrue26%2FSelectableRoundedImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pungrue26","download_url":"https://codeload.github.com/pungrue26/SelectableRoundedImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221417370,"owners_count":16816872,"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":["android","android-imageview"],"created_at":"2024-07-30T18:00:43.735Z","updated_at":"2024-10-25T10:32:01.154Z","avatar_url":"https://github.com/pungrue26.png","language":"Java","readme":"SelectableRoundedImageView\n==========================\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SelectableRoundedImageView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1234)\n\n\n\u003cb\u003e\u003ci\u003eNote that this project is no longer maintained.\u003c/i\u003e\u003c/b\u003e\n\nAndroid \u003ccode\u003eImageView\u003c/code\u003e that supports different radii on each corner. It also \nsupports oval(and circle) shape and border. This would be especially useful for \nbeing used inside \u003ccode\u003eCardView\u003c/code\u003e which should be rounded \u003cb\u003e\u003ci\u003eonly\u003c/i\u003e\u003c/b\u003e top left and \ntop right corners(Don't forget to call \u003ccode\u003esetPreventCornerOverlap(false)\u003c/code\u003e on your cardview).\n\nI referred to the [RoundedImageView][6], developed by Vince, in developing this new one, and I really appreciate him. Also, I wrote a short article about how I made this library and my thoughts on CardView, check [my blog post][5].\n\nGet the sample app on Play Store.\u003cbr\u003e [![Play Store Image](https://camo.githubusercontent.com/dc1ffe0e4d25c2c28a69423c3c78000ef7ee96bf/68747470733a2f2f646576656c6f7065722e616e64726f69642e636f6d2f696d616765732f6272616e642f656e5f6170705f7267625f776f5f34352e706e67)](https://play.google.com/store/apps/details?id=com.joooonho)\n\n![SelectableRoundedImageView Sample Screenshots][1]\n\n\u003cb\u003eNote\u003c/b\u003e: When using with [Glide][9], be sure to add \u003ccode\u003easBitmap()\u003c/code\u003e chain, like below.\n```java\nGlide.with(context)\n    .load(src)\n    .asBitmap()\n    .listener(l)\n    .into(imageView) \n```\n\u003cb\u003eNote\u003c/b\u003e: When using with [Android-Universal-Image-Loader][7], be sure to use \u003ccode\u003eSimpleBitmapDisplayer\u003c/code\u003e or \u003ccode\u003eFadeInBitmapDisplayer\u003c/code\u003e rather than \u003ccode\u003eRoundedBitmapDisplayer\u003c/code\u003e(or \u003ccode\u003eRoundedVignetteBitmapDisplayer\u003c/code\u003e) when building \u003ccode\u003eDisplayImageOptions\u003c/code\u003e. See below code.\n\n```java\noptions = new DisplayImageOptions.Builder()\n                .showImageOnLoading(R.drawable.ic_stub)\n                .showImageForEmptyUri(R.drawable.ic_empty)\n                .showImageOnFail(R.drawable.ic_error)\n                .cacheInMemory(true)\n                .cacheOnDisk(true)\n                .considerExifParams(true)\n//              .displayer(new RoundedBitmapDisplayer(20))\n//              DO NOT USE RoundedBitmapDisplayer. Use SimpleBitmapDisplayer!\n                .displayer(new SimpleBitmapDisplayer())\n                .build();\n```\n\nUsage\n----\nDefine in xml:\n\n```xml\n\u003ccom.joooonho.SelectableRoundedImageView\n        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/image\"\n        android:src=\"@drawable/photo1\"\n        android:scaleType=\"centerCrop\"\n        app:sriv_left_top_corner_radius=\"16dip\"\n        app:sriv_right_top_corner_radius=\"0dip\"\n        app:sriv_left_bottom_corner_radius=\"48dip\"\n        app:sriv_right_bottom_corner_radius=\"16dip\"\n        app:sriv_border_width=\"2dip\"\n        app:sriv_border_color=\"#008fea\"\n        app:sriv_oval=\"true\" /\u003e\n```\n\nOr in code:\n\n```java\nSelectableRoundedImageView sriv = new SelectableRoundedImageView(context);\nsriv.setScaleType(ScaleType.CENTER_CROP);\nsriv.setCornerRadiiDP(4, 4, 0, 0);\nsriv.setBorderWidthDP(4);\nsriv.setBorderColor(Color.BLUE);\nsriv.setImageDrawable(drawable);\nsriv.setOval(true);\n```\n\nIncluding In Your Project\n-------------------------\n\nIf you are using Android Studio, SelectableRoundedImageView is available through Gradle.\n```\ndependencies {\n    compile 'com.joooonho:selectableroundedimageview:1.0.1'\n}\n```\n\nAlso SelectableRoundedImageView is presented as a [library project][3]. You can include \nthis project by [referencing it as a library project][4] in Eclipse or ant(A standalone JAR \nis not possible due to the custom attributes). \n\n\nDeveloped By\n==========================\n\n * Joonho Kim - \u003cpungrue26@gmail.com\u003e\n \nLicense\n-------------------------\n\n    Copyright 2014 Joonho Kim\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    \n\n[1]: http://i.imgur.com/iSizH82.png\n[2]: https://play.google.com/store/apps/details?id=com.joooonho\n[3]: http://developer.android.com/guide/developing/projects/projects-eclipse.html\n[4]: http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject\n[5]: http://www.joooooooooonhokim.com/?p=289\n[6]: http://github.com/vinc3m1/RoundedImageView\n[7]: https://github.com/nostra13/Android-Universal-Image-Loader\n[8]: https://github.com/square/picasso\n[9]: https://github.com/bumptech/glide\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpungrue26%2FSelectableRoundedImageView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpungrue26%2FSelectableRoundedImageView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpungrue26%2FSelectableRoundedImageView/lists"}