setError

open fun setError(@Nullable errorText: CharSequence)

Sets an error message that will be displayed below our EditText. If the error is null, the error message will be cleared.

If the error functionality has not been enabled via setErrorEnabled, then it will be automatically enabled if error is not empty.

Parameters

errorText

Error message to display, or null to clear

See also