是否有任何人知道如何引用一个定义字符串,字符串中的定义,即:安卓:如何引用字符串在列定义
<string name="string_1">I am string 1</string>
然后,
<string name="string_2">I want to refer to @string/string_1</string>
<string name="string_3">@string/string_1 need to be referred here</string>
我已经尝试了示例代码,但它不起作用!
你不能在另一个项目中引用另一个项目解决。 – JoxTraex 2013-03-11 08:08:19
最好是在代码本身做到这一点。 – QVDev 2013-03-11 08:11:08
可能[duplicate1](http://stackoverflow.com/questions/4746058/reference-one-string-from-another-string-in-strings-xml),[duplicate2](http://stackoverflow.com/questions/3722374/android-how-to-inject-a-string-element-into-another-string-element-in-xml) – SudoRahul 2013-03-11 08:14:09