Android中资源的连接

Android中资源的连接,android,android-resources,Android,Android Resources,我可以像以前一样在资源中的字符串中添加相同的sting吗 <string name="text_base">Same text</string> <string name="text_base_my_text">@string/text_base + and new text</string> 相同的文本 @字符串/文本\基本+和新文本 我可以在text\u base\u my\u text“相同文本和新文本”中获取字符串吗?是的,您可以在st

我可以像以前一样在资源中的字符串中添加相同的sting吗

<string name="text_base">Same text</string>
<string name="text_base_my_text">@string/text_base + and new text</string>
相同的文本
@字符串/文本\基本+和新文本
我可以在text\u base\u my\u text“相同文本和新文本”中获取字符串吗?

是的,您可以在string.xml中
@string/Cli HOLA
当您引用
@string/Hor

如果你在安卓系统中有一个文字,你就会明白一切都是文字。我的意思是:

相同
@string/text\u base+新文本
当您提到@string/other时,您将看到
@string/text\u base+新文本

但如果你说:
相同
@string/text\u base

当您参考
@string/other
时,您将看到
Same

。你这样做是不可能的。我有字符串HOLA,我想得到第二个字符串“HOLA second string”,以防“Same@string/text\u base+new text”出现错误“找不到与给定名称匹配的资源(在'other'处,值为'@string/text\u base+new text')。你能将项目发送给我吗?不,对不起。。。我在我的项目中这样做,就像我告诉你们的那样,它正在工作。。。我粘贴了一些您刚刚复制粘贴的values.xml代码,您看到@wtsang02的链接了吗?