Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resize font in EditText

Tags:

android

I am finding the text in an EditText view overflows off the end. I really would like the font size to readjust (the way it does on iOS) so all the text is visible inside the view. THe text is not flowing onto a second line it is restricted to one line but is going off the end out of view.

Thanks

like image 999
tech74 Avatar asked Nov 04 '22 23:11

tech74


1 Answers

I don't believe that Android supports auto-resizing text to fit within the bounds of a TextView (or an EditText). It's sad, but true...

That being said, you can definitely implement this functionality yourself. Check out this post for more information on how it can be done.

like image 191
Alex Lockwood Avatar answered Nov 09 '22 10:11

Alex Lockwood