set Error
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 {@code error} is not empty.
Parameters
error Text
Error message to display, or null to clear
See also
#getError()
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 {@code error} is not empty.
Parameters
res Id
Error messageResId to display, or null to clear
See also
#getError()