Html.fromHtml在电子邮件中共享意图时无法在正文中使用粗体文本 [英] Html.fromHtml not working with bold text in body while share intent in email

查看:43
本文介绍了Html.fromHtml在电子邮件中共享意图时无法在正文中使用粗体文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

String mailContent = "<b>boldText:</b>"

我也在下面尝试了一下,但是没有用.

I tried below also but not working.

String mailContent = "<strong>boldText:</strong>"

电子邮件意图.

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("text/html");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, 
getResources().getString(R.string.slide3_text1));
sendIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(mailContent));
startActivity(Intent.createChooser(sendIntent, "Send Mail"));

请检查此代码在邮件中不显示粗体文本.我想显示如下.

Please check this code not showing bold text in mail. i want to display like below.

内容标题:

名称

等...

内容标题2:

名称

请对此进行研究,并让我知道我阅读了许多博客.预先感谢.

Please take look into this and let me know I read many blogs. Thanks in advance.

推荐答案

根据研发,我发现这在新的Gmail中是不可能的,因为Gmail在邮件中引入了自己的编辑器.谢谢

As per R&D, I found that this is not possible in new Gmail because Gmail introduces own editor in the mail. Thanks

这篇关于Html.fromHtml在电子邮件中共享意图时无法在正文中使用粗体文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆