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 this is not showing on the application though.
Before:
<string name="spelatonertext3">-4, 5, -5, 6, -6,
And if I put extra space like this:
<string name="spelatonertext3">-4, 5, -5, 6, -6,
It just looks the same on the app. How can I make space characters into the XML string?
Android doesn't support keeping the spaces at the end of the string in String.xml file so if you want space after string you need to use this unicode in between the words.
It is a unicode space character.
You want to it display like "-4, 5, -5, 6, -6," (two spaces),you can add the following code to string.xml
is display one space.