定义在水库/价值/ string.xml字符串? [英] Defining Strings in res/values/string.xml?
本文介绍了定义在水库/价值/ string.xml字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是在 RES /价值/ string.xml
目录中定义的XML字符串的意义呢?难道不仅仅是定义字符串作为你的类中的常量更有效率? (例如:数据库表创建脚本,等等。)的
What's the point of defining strings in xml at the res/values/string.xml
directory? Is it more efficient than just defining the strings as constants within your classes? (e.g. Database table creation scripts, etc..)
它是组织的问题,或者是有在内存的Android如何处理这些对象的一些好处?
Is it a matter of organization or is there some benefit in how Android handles these objects in memory?
推荐答案
- 所以,你可以轻松地将它们翻译成不同的语言。
- 所以他们很好的组织了,你让他们都在同一个地方。
这篇关于定义在水库/价值/ string.xml字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文