On Wed, Jan 7, 2009 at 6:05 AM, Mark Murphy <[email protected]> wrote: > > 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> >
Thank you. Stjepan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

