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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -