setErrorEnabled

open fun setErrorEnabled(isEnabled: Boolean)

Whether the error functionality is enabled or not in this layout. Enabling this functionality before setting an error message via {@link #setError(CharSequence)}, will mean that this layout will not change size when an error is displayed.

Parameters

isEnabled

true if layout should reserve place for error message, false otherwise.