i have defined some strings in the strings.xml
file. Now I need to put some extra space between some numbers in the string. When I type extra space characters t
The only way I could get multiple spaces in middle of string.
<string name="some_string">Before"      "After</string>
Before After
This should work as well. Use quotes to maintain space
<string name="spelatonertext3">"-4, 5, -5, 6, -6,"</string>
Put  
in string.xml file to indicate a single space in an android project.
You can use following as well
<string name="spelatonertext3"> "-4, 5, -5, 6, -6, "> </string>
Put anything in " "
(quotation) with space, and it should work
If the output is HTML, then in HTML multiple spaces display as a single space. To prevent this, use non-breaking spaces (xA0) instead of ordinary spaces.
xml:space="preserve"
Works like a charm.
Edit: Wrong. Actually, it only works when the content is comprised of white spaces only.
Link