I applied a different color to certain words within some TextViews with the% TAG of%.
I was able to get to this result after an internet search. The problem is that this feature only works for newer versions of Android, in older versions the word is not even displayed.
Trying to avoid this, I thought about doing a version of <font color='#2086F3'></font>
for newer versions and one for older versions of Android.
It would look something like this:
Newer version strings.xml
:
<string name="txt_fone">Informe seu <font color='#2086F3'>telefone</font> com DDD</string>
<string name="txt_email">Informe seu <font color='#2086F3'>email</font></string>
Older version strings.xml
:
<string name="txt_fone">Informe seu telefone com DDD</string>
<string name="txt_email">Informe seu email</string>
Is it possible to load a specific XML for the Android version, or if it exists, some conditional TAG or command that opts for one or another code?