正如標題所說,我的問題是我不知道如何/如何在string.xml中的字符串資源中使用字符串資源。我可以在string.xml中的字符串資源中使用字符串資源嗎?
<string name="projectname">Include Test</string>
<string name="about">@string/projectname is to test if you can use a String Resource in a String Resource</string>
我的問題是,如果有人知道,如果我能寫
<string name="identifier">@string/other_identifier</string>
因爲Eclispe的說
error: Error: No resource found that matches the given name (at 'other_identifier' with value '@string/other_identifier eingeben...').
這個問題是真的[此的其他問題(的副本http://stackoverflow.com/questions/3722374/android-how-to-inject-a-string-元素到另一個字符串元素在xml),並且它接受的答案似乎是th最好的方法。感謝@Brian指出這一點, – cybersam