我能像它一样在资源中的字符串中添加相同的字符串吗?
<string name="text_base">Same text</string>
<string name="text_base_my_text">@string/text_base + and new text</string>
我可以在text_base_my_text"相同文本和新文本"中获取字符串吗?
是的,您可以在string.xml中<string name="Hor">@string/Cli</string> <string name="Cli">HOLA</string>
当你提到@string/Hor
时,你可以看到"HOLA"
如果你是android内部的一个字面意思,那么你就会明白一切都是字面意思。我的意思是:
<string name="text_base">Same</string>
<string name="other">@string/text_base + new text </string>
当你提到@string/other 时,你会看到@string/text_base + new text
但如果你放:<string name="text_base">Same</string>
<string name="other">@string/text_base</string>
当您参考@string/other
时,您将看到Same