How to change letter spacing in a Textview? How to change letter spacing in a Textview? android android

How to change letter spacing in a Textview?


Since API 21 there is an option set letter spacing. You can call method setLetterSpacing or set it in XML with attribute letterSpacing.


More space:

  android:letterSpacing="0.1"

Less space:

 android:letterSpacing="-0.07"


check out android:textScaleX

Depending on how much spacing you need, this might help. That's the only thing remotely related to letter-spacing in the TextView.

Edit: please see @JerabekJakub's response below for an updated, better method to do this starting with api 21 (Lollipop)