0

As TextView has autosize property that's weird that its' child EditText has't. There should be a reason for that but I could't find any links on that topic.

dmtr
  • 214
  • 3
  • 9
  • You can see This [answer](https://stackoverflow.com/questions/47053834/autosizing-edittext) in Stack.I hope it has some good ideas. – Haileapp Feb 26 '18 at 10:18
  • @Haileapp I saw this answer. But my question is not about implementation. I want to find out the reason. Maybe this is a bad practice to resize input text size. If so there should be some links – dmtr Feb 26 '18 at 10:21

1 Answers1

0

If you refer to EditText official documentation and open Inherited XML attributes you can find that 'EditText` actually has auto-size properties:

enter image description here

Denysole
  • 3,903
  • 1
  • 20
  • 28
  • I saw this, it is available from api 26 only, though autotextsize for TextView is in support library. And as far as I know the same situation in IOS - available for text labels only. So you didn't answer my question: What is the reason for avoiding autotextsize for edit fields? – dmtr Feb 26 '18 at 12:09