快传优化以及增加传完继续传的功能, 增加8个默认头像(未与服务器交互)

This commit is contained in:
khy
2017-02-15 19:01:24 +08:00
parent cb54d87daf
commit 045c1e0305
59 changed files with 3215 additions and 289 deletions

View File

@ -126,11 +126,18 @@ public class ShareUtils {
contentView.addView(shareRecyclerView,rlParams);
if (!ispopupWindow) {
LinearLayout layout = (LinearLayout) view;
RelativeLayout layout = (RelativeLayout) view;
layout.addView(contentView);
arrLabel[7] = "邮件";
arrLogo[7] = R.drawable.share_email_logo;
arrLabel[6] = "邮件";
arrLogo[6] = R.drawable.share_email_logo;
arrLabel[7] = "复制链接";
arrLogo[7] = R.drawable.share_copyfont_logo;
return;
} else {
arrLabel[6] = "复制链接";
arrLogo[6] = R.drawable.share_copyfont_logo;
arrLabel[7] = "取消";
arrLogo[7] = R.drawable.share_cancel_logo;
}
contentView.setBackgroundColor(0x8c000000);
shareRecyclerView.setBackgroundColor(Color.WHITE);
@ -217,11 +224,8 @@ public class ShareUtils {
shortMessageSahre();
break;
case 6:
copyLink("推荐光环助手,绿色安全的手游加速助手:" + shareUrl);
break;
case 7:
if (ispopupWindow) {
popupWindow.dismiss();
copyLink(shareUrl);
} else {
Intent data=new Intent(Intent.ACTION_SENDTO);
data.setData(Uri.parse("mailto:"));
@ -236,6 +240,13 @@ public class ShareUtils {
context.startActivity(data);
}
break;
case 7:
if (ispopupWindow) {
popupWindow.dismiss();
} else {
copyLink("推荐光环助手,绿色安全的手游加速助手:" + shareUrl);
}
break;
}
}
});
@ -482,10 +493,10 @@ public class ShareUtils {
ClipboardManager cmb = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
cmb.setText(copyContent);
if (ispopupWindow != null && ispopupWindow) {
popupWindow.dismiss();
Utils.toast(context,"复制成功,请到微信/QQ粘贴分享");
} else {
Utils.toast(context,"复制成功");
popupWindow.dismiss();
} else {
Utils.toast(context,"复制成功,请到微信/QQ粘贴分享");
}
}