android - Referring to multiple string resources -
is there way refer multiple resources inside another? it's easier show sample code.
<resources> <string name="app_name">appname</string> <string name="sep">--</string> <string name="action">myaction</string> <string name="action_title">@string/app_name @string/sep @string/action</string> </resources>
so @string/action_title
should appname -- myaction
however, when use seems r.java
chokes , doesn't built. missing or impossible?
edit using label broadcastreceivers
in androidmanifest.xml
doing in code doesn't seem option.
it possible long using single reference like
<string name="app_name">appname</string> <string name="sep">@string/appname</string>
but can not multiple reference wanted nor following
<string name="app_name">appname</string> <string name="sep">@string/appname --</string>
you can code
string s = getstring(r.string.app_name) + " --";
Comments
Post a Comment