调整分享附带文案

This commit is contained in:
zlzw 2023-04-10 11:57:35 +08:00
parent 80e93f9981
commit 8ce65ced30
5 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,7 @@ public class TwitterShare extends AbsShareInterface {
try { try {
Intent sendIntent = new Intent(); Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_VIEW); sendIntent.setAction(Intent.ACTION_VIEW);
sendIntent.putExtra(Intent.EXTRA_TEXT, date.getLink()); sendIntent.putExtra(Intent.EXTRA_TEXT, date.getText());
// sendIntent.setType("text/plain"); // sendIntent.setType("text/plain");
//sendIntent.setPackage("com.twitter.composer.ComposerShareActivity"); //sendIntent.setPackage("com.twitter.composer.ComposerShareActivity");
sendIntent.setData(Uri.parse("https://twitter.com/intent/tweet?text=" +URLEncoder.encode(date.getText(),"UTF-8"))); sendIntent.setData(Uri.parse("https://twitter.com/intent/tweet?text=" +URLEncoder.encode(date.getText(),"UTF-8")));

View File

@ -136,7 +136,7 @@ public class InvitePopDialog extends AbsDialogPopupWindow {
private ShareBuilder builder(int type) { private ShareBuilder builder(int type) {
ShareBuilder builder = ShareBuilder.builder(type); ShareBuilder builder = ShareBuilder.builder(type);
builder.setText(WordUtil.getString(R.string.dialog_share_info)); builder.setText(WordUtil.getString(R.string.dialog_invite_info));
builder.setLink(url); builder.setLink(url);
builder.setUid(uid); builder.setUid(uid);
builder.setAnchorId(anchorId); builder.setAnchorId(anchorId);
@ -147,7 +147,7 @@ public class InvitePopDialog extends AbsDialogPopupWindow {
private void copyLink() { private void copyLink() {
ClipboardManager cm = (ClipboardManager) getContext().getSystemService(CLIPBOARD_SERVICE); ClipboardManager cm = (ClipboardManager) getContext().getSystemService(CLIPBOARD_SERVICE);
ClipData clipData = ClipData.newPlainText("text", url); ClipData clipData = ClipData.newPlainText("text", info.getText() + "\n" + url);
cm.setPrimaryClip(clipData); cm.setPrimaryClip(clipData);
ToastUtil.show(WordUtil.getString(com.yunbao.common.R.string.copy_success)); ToastUtil.show(WordUtil.getString(com.yunbao.common.R.string.copy_success));
} }

View File

@ -120,7 +120,7 @@ public class SharePopDialog extends AbsDialogPopupWindow {
private ShareBuilder builder(int type) { private ShareBuilder builder(int type) {
ShareBuilder builder = ShareBuilder.builder(type); ShareBuilder builder = ShareBuilder.builder(type);
// builder.setText(String.format(WordUtil.getString(R.string.dialog_share_info), StringUtil.isEmpty(anchorName) ? "" : anchorName)); builder.setText(String.format(WordUtil.getString(R.string.dialog_share_info), StringUtil.isEmpty(anchorName) ? "" : anchorName));
builder.setUid(uid); builder.setUid(uid);
builder.setAnchorId(anchorId); builder.setAnchorId(anchorId);
builder.setAnchorName(anchorName); builder.setAnchorName(anchorName);
@ -139,7 +139,7 @@ public class SharePopDialog extends AbsDialogPopupWindow {
url = ShareBuilder.createLiveShareLink(uid, anchorId, anchorName, anchorAvatar); url = ShareBuilder.createLiveShareLink(uid, anchorId, anchorName, anchorAvatar);
} }
ClipboardManager cm = (ClipboardManager) getContext().getSystemService(CLIPBOARD_SERVICE); ClipboardManager cm = (ClipboardManager) getContext().getSystemService(CLIPBOARD_SERVICE);
ClipData clipData = ClipData.newPlainText("text", url); ClipData clipData = ClipData.newPlainText("text",info.getText().toString()+"\n"+url);
cm.setPrimaryClip(clipData); cm.setPrimaryClip(clipData);
ToastUtil.show(WordUtil.getString(com.yunbao.common.R.string.copy_success)); ToastUtil.show(WordUtil.getString(com.yunbao.common.R.string.copy_success));
} }

View File

@ -76,7 +76,7 @@ public class LiveAnchorSayItemsAdapter extends RecyclerView.Adapter<LiveAnchorSa
} }
public void setData(String text, int position) { public void setData(String text, int position) {
textView.setText("已输入的\n内容已输\n入的内容\n已输入的"); // textView.setText("已输入的\n内容已输\n入的内容\n已输入的");
ImgLoader.display(mContext, text, icon); ImgLoader.display(mContext, text, icon);
if (position == click) { if (position == click) {
itemView.setBackgroundResource(R.drawable.bg_anchor_say_select); itemView.setBackgroundResource(R.drawable.bg_anchor_say_select);

View File

@ -30,7 +30,7 @@
android:gravity="center" android:gravity="center"
android:inputType="textMultiLine" android:inputType="textMultiLine"
android:maxEms="6" android:maxEms="6"
android:text="已输入的内容\n已输入的内容\n已输入的" android:text=""
android:textColor="#333333" android:textColor="#333333"
android:textSize="10sp" android:textSize="10sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"