i am using Eclipse 3.7.2.
I dont know why but the last line leads to an error highlightning
<string name="app_name">Test</string>
<string name="title">@string/app_name</string> <!-- works //-->
<string name="txt_text">Checkout @string/app_name this works</string> <!-- works //-->
<string name="txt_recommend">@string/app_name is not working</string> <!-- error //-->
is there a work around?
I believe you can’t mix references and text in the XML. Use formatting placeholders instead.
http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling
Instead of
this would look like
And in the code: