今天做“分享”功能,需要将一段 特定格式的文本预置在gmail正文中(share with email采用调用Gmail形式来做),
html格式大致如下:
<stringname="email_content">
<div>
I found XXX app is very good. <br />
You can download it from the <a href="https://marketXXXXXXXXXXXXXXXXXX">Google Market </a> <br />
Send from my Android cellphone. <br />
</div>
</string>然后在代码中取出:
结果发现没有格式,只有文本,打印出来如下:
I found XXX app is very good. You can download it from the Google Market Send from my Android cellphone.
没有格式,找 了一些资料好像说是要做的比较特殊的处理。
临时解决方案:在将html文本写在代码里!