How to change font size in EditText

I find the text in the EditText view is overflowing. I really would like the font size to be adjusted (as it is done on iOS), so all the text is displayed inside the view. The text does not flow to the second line, it is limited to one line, but out of sight.

thank

+5
source share
2 answers

I do not believe that Android supports automatic resizing of text within TextView(or EditText). This is sad, but true ...

In doing so, you can definitely implement this functionality yourself. Check out this post for more information on how to do this.

+2

xml:

Android: SingleLine = "" : TextSize = "18sp"

0

All Articles