android - 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?
解决方案
推荐阅读
- c# - .NET Core 中游戏开发的浮点确定性
- java - Kotlin 中的 public static void main
- java - 如何将数组链接到方法
- c# - C# - 比较 UNC 路径
- soap - 将 OnVif PullPoint 服务与 Zeep 一起使用
- python - 在 Raspberry Pi 3 上使用 PyOpenGL 获取 glReadPixels(错误:1282,描述:b'invalid operation')
- elixir - 允许 Ecto 查询在测试环境中立即运行?
- javascript - LocalStorage addClass 多值
- java - JDateChooser 无法解析为类型
- node.js - 如何使用 fs.readdir 获取标准文件夹列表