{"id":37026217,"url":"https://github.com/bluesofy/avatarview","last_synced_at":"2026-01-14T03:02:42.274Z","repository":{"id":57732636,"uuid":"79324340","full_name":"bluesofy/AvatarView","owner":"bluesofy","description":"Multiple Avatar Shown View","archived":false,"fork":false,"pushed_at":"2021-05-18T10:59:45.000Z","size":506,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T20:19:26.528Z","etag":null,"topics":["avatar","avatarview","glide","multiple"],"latest_commit_sha":null,"homepage":null,"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/bluesofy.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}},"created_at":"2017-01-18T09:29:15.000Z","updated_at":"2022-10-18T16:01:30.000Z","dependencies_parsed_at":"2022-09-13T15:00:33.706Z","dependency_job_id":null,"html_url":"https://github.com/bluesofy/AvatarView","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bluesofy/AvatarView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluesofy%2FAvatarView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluesofy%2FAvatarView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluesofy%2FAvatarView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluesofy%2FAvatarView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluesofy","download_url":"https://codeload.github.com/bluesofy/AvatarView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluesofy%2FAvatarView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["avatar","avatarview","glide","multiple"],"created_at":"2026-01-14T03:02:41.492Z","updated_at":"2026-01-14T03:02:42.255Z","avatar_url":"https://github.com/bluesofy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AvatarView\n\n\n多头像显示视图，适用于普通用户头像以及群组多头像显示\n[README on GitHub](https://github.com/bluesofy/AvatarView/blob/master/README.md)\n\u003cbr\u003e\n  \n### 效果图  Preview\n![Review](https://github.com/bluesofy/AvatarView/blob/master/preview/pic.png)\n\u003cbr\u003e\n\n### 使用说明  Usage\n- 添加依赖\n- 从JCenter转移到mavenCentral，记得在主工程里添加mavenCentral()\n```gradle\nimplementation 'io.github.bluesofy:avatarview:2.0'\n\n// 第三方依赖库外部添加，版本号自由\ncompile 'com.github.bumptech.glide:glide:4.12.0'    // Glide库\n```\n- 代码非原创，在项目 [SImageView](https://github.com/suzeyu1992/SImageView) 的基础上修改，原有的使用方法请通过传送门查看\n- 修改了资源实体，配置灵活，删除了原有的缓存策略，采用 [Glide](https://github.com/bumptech/glide) 加载，新增了显示文字头像，文字和图片混合显示等方法，类似于钉钉的群组头像显示\n```java\n\n// 单张文字头像\nmSingleAvatarView.setBriefName(\"张三\", Color.WHITE, Color.parseColor(\"#7FDAD0\"));\n\n// 混合头像\nmMixAvatarView.setLayoutManager(new WeChatLayoutManager(this));\nmMixAvatarView.setDisplayShape(AvatarView.TYPE_RECT);\nmMixAvatarView.setErrPicResID(R.mipmap.ic_launcher);\nList\u003cResInfo\u003e infos = new ArrayList\u003c\u003e();\n// 文字头像        \ninfos.add(ResInfo.build()\n     .setForceText(true)\n     .setBriefText(\"李四\")\n     .setTextColor(Color.WHITE)\n     .setBgColor(Color.parseColor(\"#74CAE3\")));\n// 图片加载错误默认显示文字（如果有设置全局错误图片，则加载错误图片）\ninfos.add(ResInfo.build()\n     .setUrl(\"http://wrong\")\n     .setBriefText(\"王五\")\n     .setTextColor(Color.WHITE)\n     .setBgColor(Color.parseColor(\"#9AE897\")));\n// 加载错误强制显示文字\ninfos.add(ResInfo.build()\n     .setForceText(true)\n     .setUrl(\"http://wrong_again\")\n     .setBriefText(\"马六\")\n     .setTextColor(Color.WHITE)\n     .setBgColor(Color.parseColor(\"#9AE897\")));\n// Url下载图片\ninfos.add(ResInfo.build()\n                 .setUrl(\"http://www.3dmgame.com/uploads/allimg/141224/270_141224171322_1.jpg\"));\n\nmMixAvatarView.setMixRes(infos);\n\n```\n- 更多请查看 [Demo](https://github.com/bluesofy/AvatarView/blob/master/app/src/main/java/cn/byk/pandora/avatarview/sample/MainActivity.java)\n\u003cbr\u003e\n\n### 特别鸣谢  Tks to\n- [SImageView](https://github.com/suzeyu1992/SImageView)\n- [Glide](https://github.com/bumptech/glide)\n\u003cbr\u003e\n\n### 联系方式  Support or Contact\n- E-Mail: \u003cbluesofy@qq.com\u003e or \u003cbluesofy@live.cn\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluesofy%2Favatarview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluesofy%2Favatarview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluesofy%2Favatarview/lists"}