I am using basic TextInputLayout
. I am setting error when EditText
is empty. When user enters some text, I am removing error text like this.
tilPassword.isErrorEnabled = false
tilPassword.error = null
This is working fine and good. The reason for calling tilPassword.isErrorEnabled = false
is that it is helping me to remove extra space that TextInputLayout
adds to the layout when showing error texts. When user enters some text, I am removing error and also the extra space (that is added by TextInputLayout
) as well.
Error message is being removed but extra space is not getting removed in Android 9.0. How to solve this issue?