作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在与 gmail 共享数据时使用粗体和换行样式书写。我试过\n 或者你可以说但我无法得到结果我的代码在下面..
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("plain/text");
intent.putExtra(Intent.EXTRA_EMAIL, emailAddressList);
intent.putExtra(Intent.EXTRA_SUBJECT, emailSubject);
intent.putExtra(Intent.EXTRA_TEXT, "<b>Hi this is test app</b> <br/> your first app is this");
startActivity(Intent.createChooser(intent, "Choice App t send email:"));
但它没有以粗体和换行显示
最佳答案
尝试下面的代码它工作正常 :) 我已经测试过
Intent shareIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"+emailAddressList));
shareIntent.putExtra(Intent.EXTRA_SUBJECT, emailSubject);
shareIntent.putExtra(
Intent.EXTRA_TEXT,
Html.fromHtml(new StringBuilder()
.append("<p><b>Hi this is test app</b></p>")
.append("<small><p>Hi this is test app</small>")
.toString()));
startActivity(Intent.createChooser(shareIntent, "Choice App t send email:"));
关于android - 在共享 gmail android 中用粗体在新行中写入数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13026414/
下面是我用来制作 1px 文本描边轮廓的代码。但是如何使轮廓变粗呢?如果我只是用“5px”替换所有“1px”,结果看起来很疯狂。 HTML Hello! CSS .element { color:
我是一名优秀的程序员,十分优秀!