小编Alb*_*rto的帖子

Android:strings.xml中的html

我想显示例如这个HTML代码:

<body>
    <p><b>Hello World</b></p>
    <p>This is a test of the URL <a href="http://www.example.com"> Example</a></p>
    <p><b>This text is bold</b></p>
    <p><em>This text is emphasized</em></p>
    <p><code>This is computer output</code></p>
    <p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
Run Code Online (Sandbox Code Playgroud)

我想通过在资源中声明html来在Dialog上显示它strings.xml.我该怎么做?

html xml string android android-resources

87
推荐指数
3
解决办法
7万
查看次数

标签 统计

android ×1

android-resources ×1

html ×1

string ×1

xml ×1