9

I've added Why my question is not duplicate of this question in Edit Section, Please review..


We use letterSpacing attribute in EditText to define the spacing between letters like here in the picture.

But as per documentation, This was only introduced in API level 21 or above, If we try to use it in lower API level version, It shows rendering problem directly as in this picturein this picture.

Is there any alternatives for letterSpacing to use in EditText before API level 20 ?



Edit

It was marked as duplicate question but what I want to notify is android:textScaleX attribute and android:letterSpacing attribute is different.

Let's take an example by adding these two attributes in EditText

The result of adding android:letterSpacing is

result of letterSpacing

And the result of adding android:textScaleX is result2

Shree Krishna
  • 8,474
  • 6
  • 40
  • 68

1 Answers1

0

Sorry you couldn't adjust letterSpacing in Api before 21 but you can adjust it if you draw text on Canvas using 2D graphics APIs.

Salah Nour ElDin
  • 510
  • 2
  • 13