Android 仿钉钉、微信 群聊组合头像
Step 1. 添加JitPack仓库
在项目根目录下的 build.gradle 中添加仓库:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}Step 2. 添加项目依赖
dependencies {
implementation 'com.github.Othershe:CombineBitmap:1.0.5'
}Step 3. 配置
…由于生成的组合Bitmap是矩形的,要实现钉钉的圆形显示效果,这里用到了一个可圆形显示的ImageView控件:NiceImageView
No open issues yet, or sync has not completed.