Just as an observation I did not test this directly with the Android SDK, but use with Xamarin and is working perfectly for me
You can declare new entities in your XML to be able to reuse texts, so it is easier to update certain values that repeat, I am using as follows
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE resources [
<!ENTITY telefone "(12) 3456 7890">
<!ENTITY site "http://www.meusite.com.br">
]>
<resources>
<string name="contato">Entre em contato com o nosso suporte pelo telefone &telefone;</string>
<string name="saibamais">Conheça mais sobre o nosso produto visitando no website &site;.</string>
</resources>
Note that in XML I declared an entity called telefone
, and she’s used as &telefone;
in XML
I tested here on Android SDK and apparently worked as expected, good technique I will pass to use it. + 1.
– Fernando Leal