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?
If you are trying to give Space Between 2 string OR In String file of android then do this in your string file . Implement this before your "String name" that you want to show. \u0020\u0020 For E.g.. \u0020\u0020\u0020\u0020\u0020\u0020Payment
Insert \u0020 directly in the XML for a blank you would like to preserve.
Put
 
in string.xml file to indicate a single space in an android project.The only way I could get multiple spaces in middle of string.
This should work as well. Use quotes to maintain space
Space variants:
| SPACE | THIN SPACE | HAIR SPACE |