【问题标题】:How to modify strings.xml file at runtime如何在运行时修改 strings.xml 文件
【发布时间】:2011-05-18 11:47:49
【问题描述】:

我只会动态获取本地化数据。

有没有办法在 Android 运行时更新 strings.xml 文件?我们可以在运行时向文件中添加新字符串吗?

【问题讨论】:

    标签: android string localization


    【解决方案1】:

    我们可以在运行时向文件中添加新字符串吗?

    没有。您可以创建翻译数据库并维护该数据库。即时将新翻译添加到数据库并从那里读取值。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-04
    • 2016-05-06
    • 1970-01-01
    • 2010-10-17
    • 1970-01-01
    相关资源
    最近更新 更多