Stjepan Rajko wrote: > Is it possible to reference a string resource from another string > resource? I am trying to do something like: > > <string name="app_name">My App</string> > <string name="welcome">Welcome to @string/app_name</string>
This is not supported, AFAIK. You would need to assemble the "welcome" message in Java, perhaps using string formats: String.format(getString(R.string.welcome), getString(R.string.app_name)); for: <string name="welcome">Welcome to %1$s</string> -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

