{"id":19389569,"url":"https://github.com/amn-max/android-avatar","last_synced_at":"2026-06-13T12:34:22.805Z","repository":{"id":119830544,"uuid":"365158644","full_name":"amn-max/Android-Avatar","owner":"amn-max","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-11T13:13:20.000Z","size":1624,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T09:35:17.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/amn-max.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-07T08:00:17.000Z","updated_at":"2021-06-11T13:13:08.000Z","dependencies_parsed_at":"2023-06-03T07:45:22.838Z","dependency_job_id":null,"html_url":"https://github.com/amn-max/Android-Avatar","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amn-max%2FAndroid-Avatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amn-max%2FAndroid-Avatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amn-max%2FAndroid-Avatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amn-max%2FAndroid-Avatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amn-max","download_url":"https://codeload.github.com/amn-max/Android-Avatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240549430,"owners_count":19819137,"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-11-10T10:16:37.535Z","updated_at":"2026-06-13T12:34:17.783Z","avatar_url":"https://github.com/amn-max.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/RevelationCoding/Android-Avatar.svg)](https://jitpack.io/#RevelationCoding/Android-Avatar)\n\n# Avatar-Generator-Android\n\nA Material like circular avatar library for android.\nGenerate first letter avatar Image like Google Contacts and random background.\n\n[Demo Apk](https://github.com/RevelationCoding/Avatar-Generator-Android/blob/master/app/app-debug.apk?raw=true)\n\n## Preview\n\n\u003cimg src=\"https://github.com/RevelationCoding/Android-Avatar/blob/master/art/android_avatar.gif?raw=true\" width=\"207px\" height=\"500px\"/\u003e\n\n## Gradle Dependency\n\n-Add it in your root build.gradle at the end of repositories:\n\n```gradle\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\n-Add the dependency\n\n```gradle\ndependencies {\n\t        implementation 'com.github.RevelationCoding:Android-Avatar:Tag'\n\t}\n```\n\n## Usage\n\n-Xml\n\n```xml\n\n\u003c!--when random color is set true backgroundColor will be not set--\u003e\n\u003ccom.RevelationCoding.mylibrary.AndroidAvatar\n           android:layout_width=\"wrap_content\"\n           android:layout_height=\"wrap_content\"\n           android:layout_centerHorizontal=\"true\"\n           android:layout_centerVertical=\"true\"\n           app:text=\"Name\"\n           app:backgroundWidth=\"400\"\n           app:backgroundHeight=\"400\"\n           app:textSize=\"56\"\n           app:imageSrc=\"@drawable/jordan\"\n           app:randomColor=\"true\"\n           app:backgroundColor=\"@color/dark\"\n           app:textColor=\"@color/white\" /\u003e\n```\n\n-Java\n\n```java\nAndroidAvatarLib androidAvatarLib;\nandroidAvatarLib = findViewById(R.id.avatarBack_random);\n\n//to set random color on click\nandroidAvatarLib.setOnClickListener(new View.OnClickListener() {\n           @Override\n           public void onClick(View v) {\n               androidAvatarLib.setRandomColor();\n           }\n       });\n```\n\n-AndroidAvatarLib Available Methods\n\n```available methods\nsetChar(char c);\nsetTextSize(int size);\nsetRandomColor();\nsetBackColor(int color);\nsetTextColor(int color);\nsetBackgroundHeight(int height);\nsetBackgroundWidth(int width);\nsetText(String string);\nsetImageSrc(Drawable imageFile, int imageError, ImageView.ScaleType scaleType);\nsetImageUrl(String imageUrl, int imageError, ImageView.ScaleType scaleType);\n```\n\n## Contribution\n\nFeel free to submit issues and enhancement requests.\nI'm very new to coding and git so I'm absolutely open to feedback and sugggestion. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famn-max%2Fandroid-avatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famn-max%2Fandroid-avatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famn-max%2Fandroid-avatar/lists"}