{"id":19485838,"url":"https://github.com/anoop44/avtarview","last_synced_at":"2025-04-25T18:31:36.608Z","repository":{"id":88242782,"uuid":"133172929","full_name":"anoop44/AvtarView","owner":"anoop44","description":"Easy to use highly customizable View for showing Avtars for names and contacts","archived":false,"fork":false,"pushed_at":"2018-05-19T15:48:27.000Z","size":510,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T00:51:12.858Z","etag":null,"topics":["android","custom-view","kotlin-android","library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/anoop44.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-12T18:24:46.000Z","updated_at":"2020-02-27T09:02:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"fffaef37-a24d-435d-8156-35e2293ce5aa","html_url":"https://github.com/anoop44/AvtarView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoop44%2FAvtarView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoop44%2FAvtarView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoop44%2FAvtarView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoop44%2FAvtarView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anoop44","download_url":"https://codeload.github.com/anoop44/AvtarView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250872094,"owners_count":21500765,"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","custom-view","kotlin-android","library"],"created_at":"2024-11-10T20:30:20.832Z","updated_at":"2025-04-25T18:31:36.597Z","avatar_url":"https://github.com/anoop44.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AvtarView\n\n[![](https://jitpack.io/v/anoop44/AvtarView.svg)](https://jitpack.io/#anoop44/AvtarView) [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]()\n\nEasy to use highly customizable View for showing Avtars for names and contacts\n\nAvtarView is built on top of ImageView, so incase if you want to show images for some items in a list and Avtar for others, no need to have two views. With the AvtarView you can show images as well as Avtar.\n\n![](https://github.com/anoop44/AvtarView/blob/master/screenshots/screenshot1.png?raw=true)\n\n## Adding in your project\nAdd to your root build.gradle:\n```Groovy\nallprojects {\n\trepositories {\n\t    // ...\n\t    maven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\nAdd the dependency:\n```Groovy\ndependencies {\n    compile 'com.github.anoop44:AvtarView:1.0.3'\n}\n```\n\n## Usage\n\n### AvtarView\n```xml\n\t\u003css.anoop.avtarview.AvtarView\n\t\tandroid:id=\"@+id/avtarView\"\n\t\tandroid:layout_width=\"wrap_content\"\n\t\tandroid:layout_height=\"wrap_content\"\n\t\tapp:text=\"Avtar\"\n\t\tapp:textColor=\"@android:color/white\"\n\t\tapp:strokeWidth=\"2dp\"\n\t\tapp:strokeColor=\"@android:color/white\"\n\t\tapp:useSingleLetter=\"false\"\n\t\t/\u003e\n```\n\n`AvtarView` can be modified at runtime also, setter methods are available for all the attributes\n```java\n    avtarView.setText(text);\n    avtarView.setTextColor(Color.WHITE);\n    avtarView.setStrokeWidth(2);\n    avtarView.setStrokeColor(Color.WHITE);\n    avtarView.setUseSingleLetter(false);\n```\n\n### Image\n\nIf you want to show image instead of avtars, use it as an `ImageView`. `android:src` in XML and `avtarView.setImageResource` works as normal. When you set an image resource or drawable, properties otherthan `strokeWidth` and `strokeColor` will be ignored\n\n\n## Contribution\n\nI know there is lot of room for improvement in terms of feature and the code. so feel free to suggest your ideas about it in the issues,\nor, if you found a bug and you have some free time to fix it, writing a few lines of code in __Kotlin__,\nfeel free to send me PRs.\n\n## License\n\n    MIT License\n\n    Copyright (c) 2016 Alexey Derbyshev\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 all\n    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 THE\n    SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoop44%2Favtarview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoop44%2Favtarview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoop44%2Favtarview/lists"}