Rounded Pictures Share corners will become black, solutions are:
1.QQ Sharing etc:
UMImage umImage = new UMImage(this, R.drawable.ic_share_left);
umImage.compressFormat = Bitmap.CompressFormat.PNG;
This method can solve the black angle problem of partially sharing png pictures.
But for WeChat circle of friends, before sharing out, there are no black corners [when editing messages there are no black corners], and there are black corners when sharing out.
2. Circle of friends, etc.
Non-white - Direct background with white jpg, also suitable for qq, WeChat will help you clip the white edge
White-
1. Change the icon to gray and use the white background to let WeChat go to the corner by itself.
2. The background color is as close to the color of circle of friends as possible. For the part of WeChat, handle it separately and use the gray basemap.
3. Do not round corners at all
new ShareAction(MainActivity.this)
.withMedia(umWeb)
.setDisplayList(getShareList())
.setShareboardclickCallback(
new ShareBoardlistener() {
@Override
public void onclick(SnsPlatform snsPlatform, SHARE_MEDIA share_media) {
switch (share_media) {
case WEIXIN_CIRCLE:
//WeChat Friends Circle does not display a title, here you can change the title
UMWeb umWeb2 = new UMWeb(url);
umWeb2.setTitle(umWeb.getDescription());
final UMImage umImage = new UMImage(this, R.drawable.xx);//Reset Gray Background Picture Here
umWeb2.setThumb(umImage);
umWeb2.setDescription(umWeb.getDescription());
new ShareAction(MainActivity.this)
.setPlatform(share_media)
.withMedia(umWeb2)
.setCallback(umCallback)
.share();
break;
case WEIXIN:
case QQ:
case SINA: {
new ShareAction(MainActivity.this)
.setPlatform(share_media)
.withMedia(umWeb)
.setCallback(umCallback)
.share();
break;
}
}
}
}
).open();