Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将带有本地化的 xml 文件加载到 APK 中?例如,设备将其本地发送到服务器并获取包含所有必要字符串的文件,将其保存到 SD 中并使用它?据我了解,apk 将始终查看 res 文件夹,打包后我们无法访问它
您没有理由不能实现自己的使用下载的 XML 文件的本地化机制。但是,资源机制无法在运行时扩展,因此所有内容都必须在初始 APK 中。