shehuan / combinebitmap Goto Github PK
View Code? Open in Web Editor NEWAndroid 仿钉钉、微信 群聊组合头像
License: Apache License 2.0
Android 仿钉钉、微信 群聊组合头像
License: Apache License 2.0
down下来,圆形图片没效果
9张图片的时候下标越界
To 作者
Bitmap.createScaledBitmap(bitmaps[i], subSize, subSize, true) 替换成
ThumbnailUtils.extractThumbnail(bitmaps[i], subSize, subSize);
即可生成中间位置的bitmap,图片不会失真。
可以扩展一下显示相册图片的功能吗?
博主,图像没有居中啊,怎么居中显示(垂直居中)
https://github.com/mtjsoft/GroupAvatars
借助作者的**,基于Glide开发的仿微信、钉钉多组合群头像组件库
修复了目前库中的已知问题;
新增了根据昵称生成单个头像的功能;
基于Glide处理了内存缓存和磁盘缓存;
我在布局里面设置了显示园,但不生效。包括设置圆角也不生效。
<com.othershe.library.NiceImageView android:id="@+id/siv_big_head" android:layout_width="200dp" android:layout_height="200dp" android:layout_marginLeft="140dp" app:is_circle="true" android:src="@mipmap/ic_default_head" />
DingLayoutManager第20行。固定了数组dxy为4个。那么使用DingLayoutManager的时候你传大于4的数肯定是会越界的。个人不是特别明白这的写法呢?
在ListView中使用的时候由于ImageView复用的问题导致绘制的头像错位显示,建议参考Glide为ImageView添加Tag的方式进行处理
目前合成头像和数组url顺序不符,错乱
如果都是有高瘦的图,组合完成就会被拉伸. 变形
虽然是不当操作,但是希望可以做一下保护。越做越好
目前测试是必现的,如果不是null的url,而是任意的无效url,传9个url的数组进行展示,就有这个情况。
E/AndroidRuntime: FATAL EXCEPTION: download_task#0
Process: com.netease.nical.nimuikitdemo, PID: 30829
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.next(ArrayList.java:860)
at com.othershe.combinebitmap.helper.BitmapLoader.executeUndoTasks(BitmapLoader.java:217)
at com.othershe.combinebitmap.helper.BitmapLoader.loadBitmapFromHttp(BitmapLoader.java:125)
at com.othershe.combinebitmap.helper.BitmapLoader.loadBitmap(BitmapLoader.java:100)
at com.othershe.combinebitmap.helper.BitmapLoader.access$000(BitmapLoader.java:25)
at com.othershe.combinebitmap.helper.BitmapLoader$1.run(BitmapLoader.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:784)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.