Concatenation in resources in Android -


can l add same sting string in resources it's?

<string name="text_base">same text</string> <string name="text_base_my_text">@string/text_base + , new text</string> 

can l string in text_base_my_text "same text , new text"?

yes can <string name="hor">@string/cli</string> <string name="cli">hola</string> in string.xml , can see "hola" when refer @string/hor

if literal inside android understand literal. mean:

<string name="text_base">same</string> <string name="other">@string/text_base + new text </string> see @string/text_base + new text when refer @string/other

but if put: <string name="text_base">same</string> <string name="other">@string/text_base</string> when refer @string/other see same


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -