I am trying to Display a text box with letters separated by spaces.
EditText wordText = (EditText) findViewById(R.id.word_text);
wordText.setPaintFlags(w
The subject of letter spacing seems to have caused quite some traffic over the years. Some preach for using textScaleX
property, but that by itself is not an acceptable solution, because it skews the letters as well. Several other solutions that were mentioned are:
textScaleX
and adding spaces between letters - it involves a custom view where textScaleX
is applied only to the spaces - so the letters remain unchanged, only the space increases-decreases. You can use the non breakable space unicode character as well. For this solution you can check out
Change text kerning or spacing in TextView?