【问题标题】:titanium studio using html tags in strings.xml钛工作室在strings.xml中使用html标签
【发布时间】:2015-01-29 12:08:20
【问题描述】:

在 Titan iOS 应用程序中,我如何显示包含 html 标签的 strings.xml 中的字符串。

下面是字符串

Rashad Al Moosa\n合伙人\neZayed\n\nRashad Al Moosa拥有丰富的商业专业知识

只有当我删除粗体标签字符串时,你才会在 iOS 应用程序中看到粗体显示的内容。

钛是否支持 strings.xml 中的任何 html 标签?

【问题讨论】:

    标签: ios iphone internationalization titanium-mobile


    【解决方案1】:

    使用 iOS:

    看:enter link description here

    在安卓上:

    <string name="mr">
    <![CDATA[
    <b>Rashad Al Moosa<br/>Partner<br>eZayed<br><br></b>
    Rashad Al Moosahas a wealth of commercial expertise
    ]]>
    </string>
    

    【讨论】:

    • nope 不工作我正在使用适用于 iOS 应用程序的钛工作室。(我猜这是用于原生 android)。
    • 你说得对,它更适用于 android。您是否尝试过使用 <b>例如粗体标签?
    • 我无法让它在 SDK 4.1.0.GA 中工作...&lt;string name="description"&gt;&lt;![CDATA[dd&lt;b&gt;abc&lt;/b&gt;ff]]&gt;&lt;/string&gt;
    猜你喜欢
    • 2013-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-22
    相关资源
    最近更新 更多