1

On Android, one can use the android:letterSpacing XML attribute or the setLetterSpacing(float letterSpacing) method to change the spacing between ALL characters in a TextView.

Is there a way to change the spacing per character? For instance, for the string: 123456789 I want the TextView to display it like this:

12 3456 789

In other words, I just want to change the spacing between the 2nd and the 3rd characters and between the 6th and the 7th characters.

0 Answers0