3

Possible Duplicate:
Enforcing spaces in string resources

This is the strings.xml file I use for my Android project.

........
........
<string name="bcount">Block Count\t\t\t: </string>
<string name="fbcount">Free Blocks\t\t\t: </string>
<string name="blsiz">Block Size\t\t\t: </string>
<string name="newvfs">New VFS</string>
<string name="mknewfold">Making new folder </string>
<string name="creating">Creating </string>
........
........

The problem with this is that whitespaces towards end of strings like "Block Count\t\t\t: "disappear. Only "Block Count\t\t\t:"is returned by java. How to fix this?

Community
  • 1
  • 1
Binoy Babu
  • 16,699
  • 17
  • 91
  • 134

1 Answers1

16

Android doesn't support keeping the spaces at the end, see this Stackoverflow Answer for more information.

The solution-slash-workaround is to use \u0020 in stead of those suffix spaces.

Community
  • 1
  • 1
Paul-Jan
  • 16,746
  • 1
  • 63
  • 95