I need to add
in strings.xml. What is the escape sequence in order to do that? The string to
The Android string.xml file is just a regular XML file, so you can use the XML escape characters:
" "
' '
< <
> >
& &
Your example would become
UPDATE:
Furthermore you can use the HTML entities of each character, a blank space is for example
, and a non-breaking space is
.
Note that I am not entirely sure whether this is officially supported by the XML standards, or that it 'just works'...