我面临一个奇怪的问题:
我的Html.fromHtml()源代码如下:
<strong>Terrible experience with Nikko hotel</strong><br />It was not easy to cancel booking. I called to cancel books, but they still chraged us two full days. A reason was we were late ten minutes in calling to cancel. They explained us very kindly that I can only cancel the first day. But they charged after then.\nSick."
Run Code Online (Sandbox Code Playgroud)
这是从json响应中检索的
现在,当我使用setText显示它时,如下所示:
commentbox.setText(Html.fromHtml(cmnt.getString("cmnt")));
Run Code Online (Sandbox Code Playgroud)
但我看到的输出如下:
为什么它给我斜体文字而不是粗体?
归档时间: |
|
查看次数: |
2211 次 |
最近记录: |