首页 > 解决方案 > Error in TextInputLayout is not cleared after text change

问题描述

In the EditText widget, after calling setError("Error") and, then, typing text into the field, the error is being cleared. In TextInputLayout is not - the error stays visible even if the input changes. I know, it is possible to reset it manually by calling setError(null), but is there any way (maybe XML flag) to turn on automatic error clearing?

标签: androidandroid-textinputlayout

解决方案


推荐阅读