setErrorEnabled

open fun setErrorEnabled(enabled: Boolean)

Whether the error functionality is enabled or not in this layout. Enabling this functionality before setting an error message via setError, will mean that this layout will not change size when an error is displayed.