在没有标签的情况下在TextView中显示HTML内容

时间:2014-03-20 19:04:19

标签: java android html

我有一个字符串

<p>Speed is what defines us.</p> <p>The adrenaline starts pumping when you put your foot through the pedal and shift into top gear. It may not be viable to do the same on the road outside, but why limit the desire when the virtual world comes calling? Give birth to the speedster which lay dormant in you and leave your competition abarf.</p> <h1>Game Version</h1> <p>Need For Speed Most Wanted v1.3 English version.</p> <h1>General Rules </h1> <p>1st Round will be a time trial where every player will be given 2 laps of Campus Way.</p>

我想解析这个字符串,并在没有标签的textView中显示样式文本。

我使用了txtDisply.setText(Html.fromHtml(myString)),但这显示的是文本,即包含的标签。它没有为文本设置样式。帮助!!

enter image description here

0 个答案:

没有答案