2

I have a login screen with email and password fields using TextInputEditTexts within TextInputLayouts inside a ConstraintLayout.

When an error message is set to a TextInputLayout it shiftes down all controls below it.

enter image description here

I know that this behavior is normal but how can I prevent the shift, i.e. make the distance between the TextInputEditText and the following control fixed regardless of the error status.

yaugenka
  • 2,602
  • 2
  • 22
  • 41

1 Answers1

1

A workarround is to put a space into the helperText attribute app:helperText=" "

yaugenka
  • 2,602
  • 2
  • 22
  • 41